@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ═══════════════════════════════════════════════════════
   MEMPHIS-MISRAÏM — ATELIERS STYLESHEET  v1.0
═══════════════════════════════════════════════════════ */

:root {
  --mm-or:       #c8973a;
  --mm-brun:     #5c3a00;
  --mm-brun-dk:  #3b2200;
  --mm-brun-lt:  #7a5000;
  --mm-creme:    #fdf8f0;
  --mm-creme-2:  #fef5e0;
  --mm-border:   #e2c98a;
  --mm-text:     #2a1800;
  --mm-radius:   4px;
  --mm-font-d:   'Cinzel', Georgia, serif;
  --mm-font-b:   'EB Garamond', Georgia, serif;
}

.mm-wrap {
  font-family: var(--mm-font-b);
  color: var(--mm-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── TITRE DE SECTION ── */
.mm-section-title {
  font-family: var(--mm-font-d);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--mm-brun);
  margin: 3rem 0 0.4rem;
}
.mm-section-title::before,
.mm-section-title::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--mm-or);
  vertical-align: middle;
  margin: 0 1rem;
  opacity: 0.7;
}

.mm-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.5rem auto 2rem;
}
.mm-divider span {
  display: block;
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--mm-or));
}
.mm-divider span:last-child {
  background: linear-gradient(to left, transparent, var(--mm-or));
}
.mm-divider-eye {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--mm-or);
  border-radius: 50%;
  position: relative;
}
.mm-divider-eye::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px;
  background: var(--mm-or);
  border-radius: 50%;
}

.mm-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
  color: var(--mm-brun);
}

/* ══════════════════════════════════════════
   TABLEAU
══════════════════════════════════════════ */
.mm-table-wrap {
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(100,60,0,.08);
  margin-bottom: 3.5rem;
}

/* Filtres */
.mm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: var(--mm-creme);
  border-bottom: 1px solid var(--mm-border);
}
.mm-filter-btn {
  font-family: var(--mm-font-d);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--mm-or);
  border-radius: 20px;
  background: transparent;
  color: var(--mm-brun-lt);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mm-filter-btn:hover,
.mm-filter-btn.active {
  background: var(--mm-or);
  color: #fff;
}

/* Table */
table.mm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
table.mm-table thead {
  background: linear-gradient(135deg, var(--mm-brun-dk) 0%, var(--mm-brun) 100%);
}
table.mm-table thead th {
  font-family: var(--mm-font-d);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #f0d898;
  text-align: left;
  padding: 1rem 1.4rem;
  text-transform: uppercase;
}
table.mm-table thead th:last-child { text-align: center; }

table.mm-table tbody tr {
  border-bottom: 1px solid #f0e4c8;
  transition: background .18s;
}
table.mm-table tbody tr:last-child { border-bottom: none; }
table.mm-table tbody tr:nth-child(even) { background: var(--mm-creme); }
table.mm-table tbody tr:hover { background: var(--mm-creme-2); }

table.mm-table td {
  padding: 0.75rem 1.4rem;
  vertical-align: middle;
}
table.mm-table td:last-child { text-align: center; }

.mm-loge-name {
  font-family: var(--mm-font-d);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mm-brun-dk);
  letter-spacing: 0.03em;
}
.mm-loge-num {
  font-size: 0.8rem;
  color: var(--mm-brun-lt);
  margin-left: 4px;
}
.mm-orient {
  color: var(--mm-brun-lt);
  font-style: italic;
}

/* Ligne masquée par filtre */
table.mm-table tbody tr.mm-hidden { display: none; }

/* ══════════════════════════════════════════
   BADGES DE VOIE
══════════════════════════════════════════ */
.mm-badge {
  display: inline-block;
  font-family: var(--mm-font-d);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.mm-badge-mixte     { background: #e8f3e8; color: #2e6e2e; border: 1px solid #9bcc9b; }
.mm-badge-masculine { background: #e8eef8; color: #1e3e7a; border: 1px solid #8faad8; }
.mm-badge-feminine  { background: #fce8f3; color: #7a1e5a; border: 1px solid #d88fbe; }

/* ══════════════════════════════════════════
   CARDS FICHES
══════════════════════════════════════════ */
.mm-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3rem;
}
.mm-card {
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(100,60,0,.07);
  transition: box-shadow .25s, transform .25s;
  background: #fff;
}
.mm-card:hover {
  box-shadow: 0 8px 30px rgba(100,60,0,.14);
  transform: translateY(-2px);
}
.mm-card-header {
  background: linear-gradient(135deg, var(--mm-brun-dk) 0%, var(--mm-brun-lt) 100%);
  padding: 1.1rem 1.4rem;
  position: relative;
}
.mm-card-loge {
  font-family: var(--mm-font-d);
  font-size: 0.92rem;
  font-weight: 700;
  color: #f0d898;
  letter-spacing: 0.04em;
  line-height: 1.3;
  padding-right: 5rem; /* espace pour le badge */
}
.mm-card-orient {
  font-family: var(--mm-font-b);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--mm-or);
  margin-top: 0.25rem;
}
.mm-card-badge {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}
.mm-card-body {
  padding: 1.2rem 1.4rem;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--mm-text);
}
.mm-card-body p { margin: 0 0 0.8rem; }
.mm-card-body p:last-child { margin-bottom: 0; }
.mm-card-body a { color: var(--mm-brun-lt); text-decoration: underline; text-underline-offset: 2px; }
.mm-card-body em { color: var(--mm-brun); font-size: 0.9em; }
.mm-card-reunions { color: var(--mm-brun-lt); font-size: 0.9em; }
.mm-card-contact  { font-size: 0.9em; }

/* ── ORNEMENT BAS DE PAGE ── */
.mm-ornament {
  text-align: center;
  color: var(--mm-or);
  font-size: 1.4rem;
  letter-spacing: 0.5rem;
  margin: 1rem 0 2rem;
  opacity: 0.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .mm-section-title::before,
  .mm-section-title::after { width: 1rem; }
  .mm-filter-btn { font-size: 0.65rem; padding: 0.25rem 0.7rem; }
  table.mm-table td,
  table.mm-table thead th { padding: 0.6rem 0.8rem; }
  .mm-loge-name { font-size: 0.75rem; }
  .mm-cards-grid { grid-template-columns: 1fr; }
}
