/* ============================================================
   MARCHÉS — Styles spécifiques à la page /marches
   ============================================================ */

/* ---- Hero ---- */
.markets-hero {
  margin-top: -128px;
  border-bottom: 1px solid rgba(211, 18, 36, 0.08);
  background: radial-gradient(
    ellipse 120% 80% at 50% 20%,
    #fffef9 0%,
    #faf6f2 45%,
    #f5eef5 100%
  );
}
.markets-hero-bg {
  background:
    radial-gradient(ellipse 55% 70% at 12% 35%, rgba(232, 210, 230, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 50% 65% at 88% 40%, rgba(235, 220, 200, 0.5) 0%, transparent 55%);
}

.markets-hero-shell {
  width: 100%;
  max-width: none;
  padding-top: 0.25rem;
  padding-bottom: 3.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.markets-hero-breadcrumb-shell {
  width: 100%;
  padding-top: clamp(7.5rem, 14vw, 11.5rem);
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.markets-hero-breadcrumb {
  font-size: 0.8125rem;
  color: #9b9b9b;
  margin-bottom: 1.75rem;
}
.markets-hero-breadcrumb a {
  color: #9b9b9b;
  text-decoration: none;
  transition: color 0.2s;
}
.markets-hero-breadcrumb a:hover {
  color: #4a4a4a;
}
.markets-hero-breadcrumb-sep {
  margin: 0 0.35rem;
  color: #c4c4c4;
}
.markets-hero-breadcrumb-current {
  color: #4a4a4a;
  font-weight: 700;
}

.markets-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.markets-hero-title {
  font-family: 'Neo Sans Std', 'Exo 2', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.2;
  color: #697277;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.markets-hero-title-accent {
  font-style: italic;
  font-weight: 400;
  color: #e50c2a;
}
.markets-hero-title-rest {
  font-style: italic;
  font-weight: 400;
  color: #697277;
}

.markets-hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.0625rem);
  color: #4a4a4a;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 36rem;
}
.markets-hero-subtitle strong {
  font-weight: 700;
}

/* Barre recherche : champ + bouton (pilules), pleine largeur utile */
.markets-hero-search-wrap {
  width: 100%;
  max-width: none;
  margin-bottom: 2rem;
}
.markets-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}
.markets-search-input {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 29px;
  padding: 0.95rem 1.35rem;
  font-size: 0.9375rem;
  color: #4a4a4a;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  outline: none;
  transition: box-shadow 0.2s;
}
.markets-search-input::placeholder {
  color: #9b9b9b;
}
.markets-search-input:focus {
  box-shadow: 0 4px 24px rgba(211, 18, 36, 0.12);
}
.markets-search-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 29px;
  padding: 0.95rem 5.35rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  background: linear-gradient(90deg, #d31224 0%, #f07d22 100%);
  box-shadow: 0 4px 18px rgba(211, 18, 36, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s, opacity 0.2s;
}
.markets-search-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(211, 18, 36, 0.4);
}

/* Nuage de tags (thèmes) dans le hero */
.markets-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0.65rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0.25rem;
}

.markets-hero-tags .markets-hero-tag {
  border: 2px solid transparent;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4a4a4a;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.markets-hero-tags .markets-hero-tag:hover {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Surcharge des .theme-filter dans le hero (style pilules blanches) */
.markets-hero-tags .theme-filter {
  background: #fff;
  color: #4a4a4a;
  border: 2px solid transparent;
}
.markets-hero-tags .theme-filter[data-theme=""]:not(.active):hover {
  background: #e5e7eb;
  color: #4a4a4a;
}
.markets-hero-tags .theme-filter[data-theme]:not([data-theme=""]):not(.active):hover {
  background: #fff;
  color: #4a4a4a;
}

/* Actif : pilules thème = bordure colorée ; « Tous les marchés » = plein rouge comme avant */
.markets-hero-tags .theme-filter.active {
  background: #fff;
  color: #4a4a4a;
  border-color: #d31224;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(211, 18, 36, 0.15);
}
.markets-hero-tags .theme-filter[data-theme=""].active {
  background: #e50c2a;
  color: #fff;
  border-color: #e50c2a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(229, 12, 42, 0.35);
}
.markets-hero-tags .theme-filter[data-theme=""].active:hover {
  background: #e50c2a;
  color: #fff;
  opacity: 0.92;
}
.markets-hero-tags .theme-filter[data-theme]:not([data-theme=""]).active {
  border-color: var(--theme-color, #d31224);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.markets-hero-active-filter {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
}
.markets-hero-reset-filter {
  color: #d31224;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.markets-hero-reset-filter:hover {
  text-decoration: none;
}

/* ---- Cards XD (border-radius 50px, box-shadow spec XD) ---- */
.market-card {
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 5px 3px 13px #0000001c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.market-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 24px #00000026;
}

.market-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Image — ~40% de la hauteur cible XD (538px) */
.market-card-img-wrap {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
}
.market-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.market-card:hover .market-card-img {
  transform: scale(1.05);
}
.market-card-img-placeholder {
  width: 100%;
  height: 100%;
}

/* Corps */
.market-card-body {
  padding: 1.125rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Titre + lots */
.market-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.market-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-card-lots {
  font-size: 0.6875rem;
  color: #9ca3af;
  white-space: nowrap;
  padding-top: 0.1rem;
}

/* Excerpt */
.market-card-excerpt {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 0;
}

/* Spacer */
.market-card-spacer {
  min-height: 0.75rem;
}

/* Footer */
.market-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.375rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.market-card-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.market-card-cal-icon { flex-shrink: 0; }
.market-card-date-label {
  display: block;
  font-size: 0.625rem;
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
}
.market-card-date-val {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: #697277;
  line-height: 1.25;
}
.market-card-cta {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}
.market-card-cta-inner {
  display: flex;
  flex-direction: column;
}
/* Ligne fantôme = hauteur de la ligne "Date de fin :" pour aligner le texte avec la date */
.market-card-cta-spacer {
  display: block;
  height: calc(0.625rem * 1.2);
}
.market-card-cta-text {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #697277;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.market-card:hover .market-card-cta-text { opacity: 0.75; }
.market-card-eye {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.market-card:hover .market-card-eye { transform: scale(1.08); }

/* ---- Filtres thème ---- */
.theme-filter {
  background: #f3f4f6;
  color: #6b7280;
  border: 2px solid transparent;
}
.theme-filter:hover { background: #e5e7eb; }
.theme-filter.active {
  background: #e50c2a;
  color: white;
  border-color: #e50c2a;
}
.theme-filter[data-theme]:not([data-theme=""]).active {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: white;
}

/* ================================================================
   MARKET DETAIL PAGE  (md-* prefix)
   ================================================================ */

/* ---- Hero ---- */
.md-hero {
  --master-color: #d31224;
  margin-top: -128px;
  background: radial-gradient(
    ellipse 120% 80% at 50% 20%,
    #fffef9 0%,
    #faf6f2 45%,
    #f5eef5 100%
  );
  position: relative;
  overflow: hidden;
}
.md-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 8% 40%, color-mix(in srgb, var(--master-color) 18%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 50% 65% at 92% 40%, rgba(235, 220, 200, 0.45) 0%, transparent 55%);
}
/* Breadcrumb row : pleine largeur, avant le grid 2-col */
.md-hero-breadcrumb-row {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: 0.75rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.md-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 3rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  align-items: center;
}
@media (max-width: 768px) {
  .md-hero-inner {
    grid-template-columns: 1fr;
  }
}

.md-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Breadcrumb */
.md-breadcrumb {
  font-size: 0.8125rem;
  color: #9b9b9b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.md-breadcrumb a {
  color: #9b9b9b;
  text-decoration: none;
  transition: color 0.2s;
}
.md-breadcrumb a:hover { color: #4a4a4a; }
.md-breadcrumb-sep {
  margin: 0 0.2rem;
  color: #c4c4c4;
}
.md-breadcrumb-current {
  color: #4a4a4a;
  font-weight: 600;
}

/* Master theme header */
.md-master-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.md-master-logo {
  height: 94px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.md-master-names {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.md-master-name {
  font-size: 2.5rem;
  font-weight: 900;
  color: #494d50;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}
.md-master-subtitle {
  font-size: 1.25rem;
  color: var(--master-color);
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.md-hero-excerpt {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #697277;
  line-height: 1.65;
  margin: 0;
  max-width: 32rem;
}

/* Hero image */
.md-hero-img-wrap {
  border-radius: 50px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  opacity: 1;
}
.md-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.md-hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--master-color) 8%, #f3f4f6) 0%,
    color-mix(in srgb, var(--master-color) 18%, #e5e7eb) 100%
  );
}

/* ---- Color band (translateY = décal visuel seul, cf. themes-pill) ---- */
.md-color-band-wrap {
  padding: 0 max(3rem, env(safe-area-inset-left));
  position: relative;
  z-index: 1;

  overflow: visible;
  pointer-events: none;
}
.md-color-band {
  height: 75px;
  border-radius: 210px;
  background: #d31224;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(clamp(3rem, 12vw, 7rem));
}

/* ---- Page wrap ---- */
.md-page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(1.5rem, env(safe-area-inset-left)) 4rem;
  position: relative;
  z-index: 2;
}

/* ---- Main content card
       margin-top: -80px → la card remonte sur la band ;
       border-radius: 50px → les coins laissent entrevoir la band derrière ---- */
.md-content-card {
  background: #FFFFFF;
  box-shadow: 5px 3px 13px #0000001C;
  border-radius: 50px;
  opacity: 1;
  padding: 2.5rem 2rem 3rem;
  margin-top: -14px;    /* remonte pour passer par-dessus la band */
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

/* ---- Two-column layout ---- */
.md-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .md-layout {
    grid-template-columns: 1fr;
  }
}

/* ---- Main col ---- */
.md-main-col {
  min-width: 0;
}

.md-market-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #d31224;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.md-market-excerpt {
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

/* Cover image inside content */
.md-cover-wrap {
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.md-cover-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
  border-radius: 50px;
}

/* Rich content */
.md-market-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 2rem;
}
.md-market-content h1,
.md-market-content h2,
.md-market-content h3,
.md-market-content h4,
.md-market-content h5,
.md-market-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #697277;
}
.md-market-content p { margin-bottom: 1rem; }
.md-market-content ul,
.md-market-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.md-market-content li { margin-bottom: 0.4rem; }
.md-market-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}
.md-market-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.md-market-content th,
.md-market-content td {
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.md-market-content th {
  background: #f9fafb;
  font-weight: 600;
}

/* ---- Lots section ---- */
.md-lots-section {
  margin-top: 2rem;
}
.md-lots-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #d31224;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* Aligné section agenda homepage : fond blanc, ombre XD, pilule 50px, spacer vertical */
.md-lots-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.md-lot-card {
  display: flex;
  align-items: center;
  margin: 0;
  background: #ffffff;
  box-shadow: 5px 3px 13px #0000001c;
  border-radius: 50px;
  padding: 16px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.md-lot-card:hover {
  box-shadow: 8px 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.md-lot-date-col {
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
}
.md-lot-number {
  font-size: clamp(40px, 7vw, 58px);
  font-weight: 400;
  line-height: 1;
  color: #d31224;
  letter-spacing: -0.02em;
}
.md-lot-sep {
  flex-shrink: 0;
  width: 1px;
  height: 58px;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  background-color: #e0e0e0;
  align-self: center;
}
.md-lot-body {
  flex: 1 1 auto;
  min-width: 0;
}
.md-lot-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #363636;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.md-lot-partner {
  font-size: 11px;
  line-height: 1.4;
  color: #697277;
  font-style: italic;
  margin: 0 0 0.35rem;
}
.md-lot-title-text {
  font-size: 11px;
  line-height: 1.45;
  color: #697277;
  font-style: italic;
  margin: 0 0 0.25rem;
}
.md-lot-desc {
  font-size: 11px;
  line-height: 1.45;
  color: #697277;
  font-style: italic;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.md-lot-icon {
  flex-shrink: 0;
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d31224;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .md-lot-card {
    padding: 14px 18px;
    border-radius: 40px;
  }
  .md-lot-sep {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    height: 48px;
  }
  .md-lot-icon {
    margin-left: 0.75rem;
  }
  .md-lot-icon svg {
    width: 32px;
    height: 32px;
  }
}

/* ---- FAQ (hors md-content-card, carte XD) ---- */
.md-faq-outer {
  margin-top: 0;
  margin-bottom: 2rem;
}

.md-faq-card {
  background: #fff;
  border-radius: 50px;
  box-shadow: 5px 3px 13px #0000001C;
  border: 1px solid #f0f0f0;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
}

.md-faq-card-title {
  font-size: clamp(1.35rem, 2.64vw, 1.65rem);
  font-weight: 500;
  color: #697277;
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.md-faq-accordion {
  display: flex;
  flex-direction: column;
}

.md-faq-acc-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.15rem 1rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #697277;
  list-style: none;
  border-bottom: 1px solid #eeeeee;
}

.md-faq-acc-item:last-child .md-faq-acc-summary {
  border-bottom: none;
}

.md-faq-acc-summary::-webkit-details-marker {
  display: none;
}

.md-faq-acc-summary::marker {
  content: "";
}

.md-faq-acc-q {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.md-faq-acc-icon {
  flex-shrink: 0;
  color: #9b9b9b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.md-faq-acc-item[open] .md-faq-acc-icon {
  transform: rotate(180deg);
}

.md-faq-acc-panel {
  background: #f6f6f6 0% 0% no-repeat padding-box;
  border-radius: 0 0 40px 40px;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 0.35rem;
  padding: 1.25rem clamp(1rem, 2vw, 1.5rem) 1.5rem;
}

.md-faq-acc-item:last-child .md-faq-acc-panel {
  margin-bottom: 0;
}

.md-faq-acc-answer {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b6b6b;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}

/* ---- Sidebar ---- */
.md-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}

/* Informations Clés */
.md-info-card {
  background: #fff;
  border-radius: 50px;
  box-shadow: 5px 3px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  padding: 2.5rem 2.5rem 2.75rem;
}
.md-info-title {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.625rem;
}
.md-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.md-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.md-info-icon { flex-shrink: 0; }
.md-info-label {
  display: block;
  font-size: 0.6875rem;
  color: #9ca3af;
  line-height: 1.3;
}
.md-info-val {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

/* Master theme article card */
.md-article-card {
  background: #fff;
  border-radius: 50px;
  box-shadow: 5px 3px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.md-article-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.md-article-body {
  padding: 1.5rem 2.25rem 1.875rem;
}
.md-article-title {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.375rem;
}
.md-article-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.md-article-link {
  font-size: 0.75rem;
  color: #9b9b9b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.md-article-link:hover { color: #d31224; }

/* CTA button */
.md-cta-btn {
  display: block;
  text-align: center;
  padding: 0.875rem 1.25rem;
  border-radius: 50px;
  background: linear-gradient(90deg, #d31224 0%, #f07d22 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(211, 18, 36, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s, opacity 0.2s;
}
.md-cta-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(211, 18, 36, 0.42);
}

/* Documents cards */
.md-docs-card {
  background: #fff;
  border-radius: 50px;
  box-shadow: 5px 3px 18px rgba(0, 0, 0, 0.07);
  border: 1px solid #f0f0f0;
  padding: 2.25rem 2.5rem 2.5rem;
}
.md-docs-card--adherent {
  background: #fffbeb;
  border-color: #fef3c7;
}
.md-docs-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a4a4a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}
.md-docs-list { display: flex; flex-direction: column; gap: 0.375rem; }
.md-doc-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 10px;
  background: #f9fafb;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.md-doc-row:hover { background: #f3f4f6; }
.md-doc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
}
.md-docs-card--adherent .md-doc-icon {
  background: #fef3c7;
  color: #d97706;
}
.md-doc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.md-doc-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a2e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.md-doc-type {
  font-size: 0.6875rem;
  color: #9ca3af;
}
.md-doc-dl { color: #9ca3af; flex-shrink: 0; transition: color 0.15s; }
.md-doc-row:hover .md-doc-dl { color: #3b82f6; }

/* Partner card */
.md-partner-card,
.md-contacts-card {
  background: #fff;
  border-radius: 50px;
  box-shadow: 5px 3px 18px rgba(0, 0, 0, 0.07);
  border: 1px solid #f0f0f0;
  padding: 2.25rem 2.5rem 2.5rem;
}
.md-partner-title,
.md-contacts-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}
.md-partner-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.md-partner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}
.md-partner-org {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.125rem;
}
.md-partner-link {
  font-size: 0.75rem;
  color: #3b82f6;
  text-decoration: none;
}
.md-partner-link:hover { text-decoration: underline; }
.md-partner-info {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0.625rem 0 0;
  line-height: 1.55;
}

/* Contacts card */
.md-contacts-list { display: flex; flex-direction: column; gap: 0.75rem; }
.md-contact-item { font-size: 0.8125rem; }
.md-contact-name { font-weight: 600; color: #1a1a2e; margin: 0 0 0.1rem; }
.md-contact-function { color: #6b7280; margin: 0 0 0.1rem; }
.md-contact-email {
  color: #3b82f6;
  text-decoration: none;
  display: block;
}
.md-contact-email:hover { text-decoration: underline; }
.md-contact-phone { color: #4b5563; margin: 0.1rem 0 0; }

/* Locked card (non members) */
.md-locked-card {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border-radius: 50px;
  border: 2px solid #bfdbfe;
  padding: 2.5rem 2.5rem 2.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.md-locked-icon {
  width: 52px;
  height: 52px;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}
.md-locked-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.md-locked-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}
.md-locked-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.625rem 1.5rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.md-locked-cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* ---- État vide ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 24px;
  border: 2px dashed #e5e7eb;
}
.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}
.empty-description {
  font-size: 1.125rem;
  color: #6b7280;
}
