/* Mentions légales – styles spécifiques */

.legal-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
  min-height: 80vh;
}

.legal-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2.5rem;
}

.legal-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-dark);
  margin: 1rem 0;
}

.legal-hero p {
  color: var(--text-medium);
  max-width: 700px;
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-top: .75rem;
}

.legal-updated {
  font-size: .875rem !important;
  color: var(--text-light) !important;
  font-style: italic;
}

/* Table of contents */
.legal-toc {
  background: var(--green-pale);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.legal-toc h2 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.legal-toc ol a {
  color: var(--green-primary);
  font-size: .9375rem;
}

.legal-toc ol a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Sections */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.625rem;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}

.legal-section h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--green-primary);
  margin: 1.5rem 0 .625rem;
}

.legal-section p {
  color: var(--text-medium);
  font-size: .9375rem;
  line-height: 1.75;
  margin-bottom: .875rem;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}

.legal-section ul li {
  color: var(--text-medium);
  font-size: .9375rem;
  line-height: 1.65;
}

.legal-section a {
  color: var(--green-primary);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--green-dark);
}

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .9375rem;
}

.legal-table th,
.legal-table td {
  padding: .75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}

.legal-table th {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
  width: 35%;
}

.legal-table td {
  color: var(--text-medium);
}

.legal-table thead th {
  background: var(--green-primary);
  color: var(--white);
}

@media (max-width: 600px) {
  .legal-table th { width: 45%; }
  .legal-toc { padding: 1.25rem; }
}

/* =====================
   Page Actualités
   ===================== */
.actu-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
  min-height: 80vh;
}

.actu-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2rem;
}

.actu-back {
  display: inline-block;
  color: var(--text-light);
  font-size: .875rem;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.actu-back:hover { color: var(--green-primary); }

.actu-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-dark);
  margin: .75rem 0 .875rem;
}

.actu-hero p {
  color: var(--text-medium);
  font-size: 1.0625rem;
  max-width: 680px;
  line-height: 1.75;
}

/* Filtres */
.actu-filters {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-btn {
  padding: .425rem 1.125rem;
  border-radius: 2rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-medium);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.filter-btn.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

/* Compteur */
.actu-count {
  font-size: .875rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Grille */
.actu-grid {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.actu-loading,
.actu-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 3rem 0;
  font-size: 1rem;
}

/* Lien actif dans la nav */
.nav-link--active {
  color: var(--green-primary) !important;
  font-weight: 600;
}
.navbar:not(.scrolled) .nav-link--active {
  color: var(--white) !important;
  background: rgba(255,255,255,.15);
}
