/* ============================================================
   VILLAGE.CSS — Page village (démo) Atryvia
   ============================================================ */

/* ===== HERO VILLAGE ===== */
.village-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(26, 42, 58, 0.3) 0%, rgba(26, 42, 58, 0.6) 100%),
    url('https://cdn.prod.website-files.com/69d4c1a2d2af053fb1a810c5/69fdaa4ecec06f8935df1dd4_1778231499.png') center / cover no-repeat;
  padding: 80px 0 60px;
}

.village-hero-content {
  position: relative;
  z-index: 2;
}

.village-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(196, 162, 78, 0.9);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.village-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.village-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
  margin-bottom: 24px;
  line-height: 1.6;
}

.village-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.village-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== NAVIGATION SECTIONS ===== */
.village-nav-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 28px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.village-nav-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.village-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border: none;
  font-family: inherit;
}

.village-nav-btn:hover,
.village-nav-btn.active {
  background: var(--green);
  color: white;
}

/* ===== SECTIONS ===== */
.village-section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== TIMELINE HISTOIRE ===== */
.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--green) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== MONUMENTS ===== */
.monuments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.monument-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monument-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.monument-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.monument-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 42, 58, 0.7) 100%);
}

.monument-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(196, 162, 78, 0.95);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.monument-content {
  padding: 24px;
}

.monument-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.monument-period {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.monument-description {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== FAMILLES ===== */
.families-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.family-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.family-card:hover {
  transform: translateY(-3px);
}

.family-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--cream-warm));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.family-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.family-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== ARCHIVES ===== */
.archives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.archive-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.archive-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.archive-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.archive-description {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.archive-count {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ===== BANNIÈRE CONTRIBUTION ===== */
.contribute-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  text-align: center;
  color: white;
  margin: 48px 0;
}

.contribute-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.contribute-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 60ch;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  background: white;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease;
}

.btn-white:hover {
  transform: translateY(-2px);
  color: var(--green-dark);
}

/* ===== CAPSULES ===== */
.capsules-placeholder {
  text-align: center;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.capsules-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.capsules-placeholder h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.capsules-placeholder p {
  color: var(--text-light);
  max-width: 60ch;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .monuments-grid, .archives-grid { grid-template-columns: repeat(2, 1fr); }
  .families-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .monuments-grid, .archives-grid, .families-grid { grid-template-columns: 1fr; }
  .village-nav-list { flex-direction: column; align-items: stretch; }
  .village-nav-btn { justify-content: center; }
  .contribute-banner { padding: 36px 24px; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 8px; }
  .timeline-item::before { left: -26px; }
}
