/* ==========================================================================
   1. STYLES DE PAGE ET SECTIONS
   ========================================================================== */
.page-shell {
  min-height: 100vh;
  background: #fff;
}

.page-section-alt {
  background: var(--green-soft);
}

.page-section-dark {
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
  color: #fff;
}

.page-section-dark .section-head h2,
.page-section-dark .content-block h2 {
  color: #fff;
}

.page-section-dark .section-head p,
.page-section-dark .content-block p {
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   2. HEROS & FIL D'ARIANE
   ========================================================================== */
.page-hero .breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-hero .breadcrumb a {
  color: var(--muted);
}

.page-hero .breadcrumb span {
  color: #a2b1a9;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

/* ==========================================================================
   3. COMPOSANTS & GRILLES
   ========================================================================== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.feature-item {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.feature-item strong {
  display: block;
  font-size: 12px;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-item span {
  color: var(--muted);
  font-size: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 25px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: #cfe4d7;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  z-index: 2;
}

.timeline-content {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.timeline-content h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 5px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* Domains */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.domain-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.domain-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 12px 0 7px;
}

.domain-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

/* Documents & States */
.document-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--green-soft);
}

.document-box h3 {
  color: var(--navy);
  font-size: 18px;
}

.document-box p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.document-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 55px 25px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: var(--green-soft);
}

.empty-state strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 7px;
}

.empty-state span {
  color: var(--muted);
  font-size: 11px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 35px;
}

.pagination a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  background: #fff;
}

.pagination a.active,
.pagination a:hover {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.map-placeholder {
  min-height: 330px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ecf7f1, #dff2e7);
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 800;
  border: 1px solid var(--border);
}

/* ==========================================================================
   4. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 900px) {
  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .document-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .domain-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .page-actions,
  .document-actions {
    flex-direction: column;
    width: 100%;
  }

  .page-actions .btn,
  .document-actions .btn {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 36px 1fr;
  }

  .timeline-number {
    width: 36px;
    height: 36px;
  }

  .timeline::before {
    left: 17px;
  }
}