/* ============================================================
   MEMORIAL UPC — VERSION FINALE
   Cohérente avec styles.css + boutique.css + formations.css
   ============================================================ */


/* === HERO MEMORIAL === */
.memorial-hero {
  background: var(--pierre-2, #f4f2ec);
  text-align: center;
  padding: 60px 0;
}

.memorial-hero .tag {
  background: #b00;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.memorial-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 20px 0 10px;
  color: #1b1a17;
}

.memorial-hero .lead {
  max-width: 60ch;
  margin: 0 auto;
  color: #444;
}


/* === CHEVRONS DARK === */
.chevrons.dark {
  background: #1b1a17;
  height: 40px;
}


/* === SECTION MEMORIAL SOMBRE === */
.memorial-section.dark-section {
  background: #1b1a17;
  padding: 60px 0;
}

.memorial-section.dark-section .section-head {
  margin-bottom: 40px;
}

.memorial-section.dark-section .section-head .tag {
  background: #b00;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.memorial-section.dark-section .section-head h2 {
  margin: 0;
  font-weight: 700;
  color: #f4f2ec;
}

.memorial-section.dark-section .section-head p {
  margin-top: 10px;
  color: #d6d3cd;
}


/* === GRID === */
.memorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}


/* === CARTE MEMORIAL === */
.memorial-card {
  background: #2a2926;
  color: #f4f2ec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}

.memorial-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.85);
}

.memorial-body {
  padding: 1rem 1.2rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.memorial-body h3 {
  margin: 0 0 .5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #f4f2ec;
}

.memorial-body p {
  margin: .4rem 0;
  line-height: 1.4;
  color: #d6d3cd;
}

.memorial-btn {
  margin-top: auto;
  padding: 10px 16px;
  background: #b00;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.memorial-btn:hover {
  background: #d00;
}


/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-close {
  margin-top: 20px;
  padding: 10px 16px;
  background: #b00;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-close:hover {
  background: #d00;
}
