:root {
  --bg: #f7f1e8;
  --paper: #fffdf9;
  --ink: #2b241f;
  --muted: #6d645d;
  --line: rgba(43, 36, 31, 0.12);
  --accent: #d96d4f;
  --accent-dark: #8f3f29;
  --accent-soft: #f3d9cf;
  --forest: #2f5c4b;
  --shadow: 0 20px 50px rgba(43, 36, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 109, 79, 0.14), transparent 30%),
    linear-gradient(180deg, #fbf6ef 0%, #f3ece2 100%);
}

main,
.site-header,
.content-panel,
.card,
.post-card,
.impact-card,
.timeline-card {
  min-width: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand strong,
.hero-copy h1,
.page-hero h1,
.content-panel h2,
.content-panel h3,
.site-footer h2,
.post-shell h1 {
  font-family: "Cormorant Garamond", serif;
}

.brand strong {
  display: block;
  font-size: 1.4rem;
}

.brand small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.site-nav a,
.header-cta,
.button,
.button-secondary {
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-nav a {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.header-cta,
.button,
.button-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.header-cta,
.button {
  background: var(--accent);
  color: white;
}

.button-secondary {
  background: rgba(47, 92, 75, 0.12);
  color: var(--forest);
}

.header-cta:hover,
.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-copy,
.hero-side,
.content-panel,
.card,
.post-card,
.impact-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 48px;
  background:
    linear-gradient(160deg, rgba(217, 109, 79, 0.08), rgba(47, 92, 75, 0.04)),
    var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.hero-copy h1,
.page-hero h1,
.post-shell h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.92;
}

.lead {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-side {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-media {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-badge {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 109, 79, 0.12), rgba(47, 92, 75, 0.08));
}

.hero-badge strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.card,
.post-card,
.impact-card {
  padding: 24px;
}

.card h2,
.impact-card h2,
.content-panel h2,
.post-card h2,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.card p,
.impact-card p,
.content-panel p,
.content-panel li,
.post-card p {
  color: var(--muted);
  line-height: 1.75;
}

.prose p,
.prose li,
.timeline-content p,
.timeline-content li,
.timeline-card a,
.content-panel a,
.post-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-title {
  margin: 0 0 16px;
  font-size: 2.4rem;
}

.content-panel {
  padding: 32px;
  margin-bottom: 24px;
}

.page-hero {
  margin-bottom: 20px;
}

.page-hero-simple {
  padding: 28px 30px 18px;
}

.prose h2 {
  margin-top: 24px;
}

.prose ul {
  padding-left: 20px;
}

.impact-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.facebook-panel {
  background:
    linear-gradient(160deg, rgba(24, 119, 242, 0.12), rgba(47, 92, 75, 0.03)),
    var(--paper);
}

.news-spotlight {
  background:
    linear-gradient(155deg, rgba(217, 109, 79, 0.14), rgba(47, 92, 75, 0.05)),
    var(--paper);
}

.news-spotlight-header {
  margin-bottom: 18px;
}

.news-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.featured-news-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-news-card img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
}

.featured-news-body {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.featured-news-body time,
.news-mini-item time {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.featured-news-body h3 {
  margin: 0;
  font-size: 2rem;
}

.news-quick-list {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  align-content: start;
  gap: 12px;
}

.news-quick-list h3 {
  margin: 0;
  font-size: 1.4rem;
}

.news-mini-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.news-mini-item h4 {
  margin: 5px 0 0;
  font-size: 1.02rem;
}

.news-mini-item a {
  text-decoration: none;
}

.news-mini-item a:hover {
  text-decoration: underline;
}

.fb-embed-wrap {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f9fbff;
}

.fb-embed {
  width: 100%;
  max-width: 100%;
  display: block;
}

.post-card {
  display: grid;
  gap: 10px;
}

.post-card time {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.post-image {
  margin-top: 20px;
  border-radius: 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 28px 30px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #efe5d7;
}

.site-footer h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.site-footer p {
  margin: 0 0 8px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-nav a {
    flex: 0 1 auto;
    white-space: normal;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero,
  .grid-3,
  .news-spotlight-grid,
  .impact-grid,
  .media-grid,
  .posts-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 24px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr;
    top: 6px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  .brand strong {
    font-size: 1.08rem;
    line-height: 1;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    justify-self: start;
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .site-header,
  .content-panel,
  .card,
  .post-card,
  .impact-card,
  .hero-side,
  .site-footer {
    border-radius: 22px;
  }

  .hero-copy h1,
  .page-hero h1,
  .post-shell h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }
}

/* ─────────────────────────────────────────────
   Grid 2 colonnes
   ───────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* ─────────────────────────────────────────────
   Journal de bord — Layout principal
   ───────────────────────────────────────────── */
.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.journal-sidebar {
  position: sticky;
  top: 80px;
}

/* ─────────────────────────────────────────────
   Timeline verticale
   ───────────────────────────────────────────── */
.journal-timeline {
  position: relative;
}

.timeline-track {
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--forest));
  border-radius: 2px;
  pointer-events: none;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.timeline-node {
  width: 20px;
  height: 20px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 109, 79, 0.15);
  justify-self: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-entry:first-child .timeline-node {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(217, 109, 79, 0.2);
}

.timeline-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.timeline-card time {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.timeline-card h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-family: "Cormorant Garamond", serif;
}

.timeline-card img {
  margin-top: 14px;
  border-radius: 14px;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.timeline-content {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}

.timeline-content p {
  margin: 0 0 0.8em;
}

.timeline-empty {
  grid-column: 1 / -1;
  padding: 36px 24px;
  border: 2px dashed var(--line);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.75;
}

.journal-permalink {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.6;
}

/* ─────────────────────────────────────────────
   Sidebar Facebook — widget compact
   ───────────────────────────────────────────── */
.fb-sidebar-widget {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  padding: 20px;
  box-shadow: var(--shadow);
}

.fb-sidebar-widget h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  font-family: "Cormorant Garamond", serif;
}

.fb-sidebar-embed {
  border-radius: 14px;
  overflow: hidden;
  background: #f0f2f5;
}

.fb-sidebar-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ─────────────────────────────────────────────
   Responsive — Journal & Grid
   ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .journal-layout {
    grid-template-columns: 1fr;
  }

  .journal-sidebar {
    position: static;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}
