/* Toliara Vaovao — Newsletter */

.nl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nl-hero-meta span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.35rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
}

.nl-toolbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: rgba(244, 235, 224, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-dark);
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
}

.nl-toolbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nl-tab {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ocean-deep);
  background: var(--white);
  border: 1px solid var(--sand-dark);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nl-tab:hover,
.nl-tab.active {
  background: var(--ocean-deep);
  color: var(--white);
  border-color: var(--ocean-deep);
}

.nl-updated {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.nl-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

.nl-layout--single {
  max-width: 800px;
}

.nl-main {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.nl-section {
  scroll-margin-top: calc(var(--nav-height) + 64px);
}

.nl-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ocean-deep);
}

.nl-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ocean-deep);
  line-height: 1.1;
}

.nl-section__title small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
  font-family: var(--font-body);
  margin-top: 0.25rem;
}

.nl-section__badge {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nl-section__badge--toliara { background: rgba(26, 122, 158, 0.15); color: var(--ocean-mid); }
.nl-section__badge--atsimo { background: rgba(42, 92, 66, 0.15); color: var(--mangrove); }
.nl-section__badge--madagascar { background: rgba(212, 101, 74, 0.15); color: var(--coral); }

/* ── Liste articles + tiroirs ── */

.nl-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nl-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 47, 68, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 47, 68, 0.06);
}

.nl-item__toggle {
  width: 100%;
  position: relative;
  display: block;
  padding: 1rem 2.75rem 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.2s ease;
}

.nl-item__toggle:hover {
  background: var(--sand);
}

.nl-item__toggle.is-open {
  background: rgba(26, 122, 158, 0.06);
  border-bottom: 1px solid var(--sand-dark);
}

.nl-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.nl-item__date {
  font-weight: 600;
  color: var(--ocean-mid);
}

.nl-item__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ocean-deep);
}

.nl-item__chevron {
  position: absolute;
  right: 1.25rem;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.nl-item__toggle.is-open .nl-item__chevron {
  transform: rotate(-135deg);
  top: 1.5rem;
}

.nl-item__excerpt {
  padding: 0 1.25rem 0.75rem;
  margin-top: -0.25rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.nl-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.nl-drawer.is-open {
  grid-template-rows: 1fr;
}

.nl-drawer__inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.25rem;
}

.nl-drawer.is-open .nl-drawer__inner {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--sand-dark);
  background: #faf8f5;
}

.nl-drawer__image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.nl-drawer__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1rem;
}

.nl-drawer__body p {
  margin-bottom: 1rem;
}

.nl-drawer__body h2,
.nl-drawer__body h3 {
  font-family: var(--font-display);
  color: var(--ocean-deep);
  margin: 1.25rem 0 0.5rem;
}

.nl-drawer__body a {
  color: var(--ocean-light);
}

.nl-drawer__empty {
  color: var(--ink-muted);
  font-style: italic;
}

.nl-drawer__source {
  width: 100%;
  text-align: center;
}

.nl-newsletter-block {
  margin-top: 1rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.nl-newsletter-form {
  max-width: 480px;
}

/* ── Legacy cards (unused) ── */

.nl-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.nl-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10, 47, 68, 0.08);
  border: 1px solid rgba(10, 47, 68, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10, 47, 68, 0.14);
}

.nl-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.nl-card__image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ocean-mid), var(--sand-dark));
  overflow: hidden;
}

.nl-card--featured .nl-card__image {
  aspect-ratio: auto;
  min-height: 260px;
}

.nl-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nl-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.5;
}

.nl-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.nl-card--featured .nl-card__body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nl-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.nl-card__source {
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nl-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.nl-card--featured .nl-card__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.nl-card__title a:hover {
  color: var(--ocean-light);
}

.nl-card__excerpt {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.nl-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ocean-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nl-card__link:hover {
  color: var(--coral);
}

.nl-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.nl-card__link--muted {
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.nl-card__link--muted:hover {
  color: var(--ocean-deep);
}

.nl-card__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.nl-card__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* ── Page article (lecture) ── */

.article-page {
  padding-top: var(--nav-height);
  min-height: 60vh;
}

.article-hero {
  height: clamp(220px, 40vw, 420px);
  background-size: cover;
  background-position: center;
  background-color: var(--ocean-mid);
}

.article-page__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.article-page__inner--narrow {
  max-width: 560px;
  text-align: center;
}

.article-back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ocean-mid);
  margin-bottom: 1.5rem;
}

.article-back:hover {
  color: var(--coral);
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.article-breadcrumb a:hover {
  color: var(--coral);
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sand-dark);
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.article-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ocean-deep);
}

.article-page__lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2,
.article-body h3 {
  font-family: var(--font-display);
  color: var(--ocean-deep);
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body a {
  color: var(--ocean-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--coral);
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--coral);
  background: var(--sand);
  font-style: italic;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand-dark);
}

.article-footer__note {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nl-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nl-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(10, 47, 68, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nl-list-item:hover {
  border-color: var(--ocean-light);
  background: #faf8f5;
}

.nl-list-item__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ocean-mid);
  white-space: nowrap;
  min-width: 88px;
}

.nl-list-item__title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.nl-list-item__title a:hover {
  color: var(--coral);
}

.nl-list-item__meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.nl-empty {
  padding: 2rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  color: var(--ink-muted);
  border: 1px dashed var(--sand-dark);
}

.nl-disclaimer {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.5;
  padding: 1rem;
  background: var(--sand);
  border-radius: var(--radius);
}

@media (max-width: 600px) {
  .nl-item__toggle {
    padding: 0.875rem 1rem;
  }

  .nl-item__title {
    font-size: 1rem;
  }
}
