/* ═══════════════════════════════════════════════════════════
   DANS LE VISEUR DE MORGAN — Design System
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --forest:  #1a3a10;
  --sage:    #8fb573;
  --cream:   #f7f2e8;
  --bark:    #3d2b1a;
  --mist:    rgba(26,58,16,.06);
  --shadow:  rgba(26,58,16,.14);
  --ease:    cubic-bezier(.16,1,.3,1);
  --nav-h:   64px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--bark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: contrast(1.06) saturate(1.15) brightness(1.02);
}
a { color: inherit; text-decoration: none; }

/* ── FONTS ───────────────────────────────────────────────────── */
/* Loaded via <link> in each HTML file */

/* ── NAVIGATION ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(247,242,232,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(143,181,115,.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav-logo em { font-style: italic; color: var(--sage); }
.nav-links {
  display: flex;
  gap: clamp(.8rem, 2vw, 2rem);
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--forest);
  opacity: .85;
  transition: opacity .22s, color .22s;
  padding-bottom: 3px;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  border-bottom: 2px solid var(--sage);
  font-weight: 400;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--forest);
  transition: transform .25s, opacity .25s;
}

/* ── HERO — BANNER ───────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  min-height: 480px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.06) saturate(1.15) brightness(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 25%,
    rgba(19,31,10,.5) 70%,
    rgba(19,31,10,.82) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(2rem,5vw,3.5rem) clamp(1.2rem,5vw,5vw);
  color: var(--cream);
}
.hero-kicker {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .85rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,6vw,4.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 16ch;
}
.hero-title em { font-style: italic; color: var(--sage); }
.hero-sub {
  margin-top: .85rem;
  font-size: .9rem;
  opacity: .72;
  max-width: 52ch;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.8rem;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .45;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* Page hero (sub-pages, shorter) */
.page-hero {
  margin-top: var(--nav-h);
  padding: clamp(3.5rem,8vw,6rem) clamp(1.2rem,5vw,5vw) clamp(2.5rem,5vw,4rem);
  background: linear-gradient(135deg, var(--forest) 0%, #2a5a1a 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238fb573' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero-kicker {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .8rem;
  position: relative;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem,5vw,3.6rem);
  font-weight: 300;
  line-height: 1.15;
  position: relative;
}
.page-hero h1 em { font-style: italic; color: var(--sage); }
.page-hero p {
  font-size: .92rem;
  opacity: .68;
  max-width: 56ch;
  margin-top: .8rem;
  position: relative;
}

/* ── PAGE WRAPPER ────────────────────────────────────────────── */
main { min-height: 60vh; }
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem,6vw,5rem) clamp(1.2rem,4vw,2.5rem);
}
.wrapper--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem,6vw,5rem) clamp(1.2rem,4vw,2.5rem);
}

/* ── REVEAL ANIMATION ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SECTION HEADINGS ────────────────────────────────────────── */
.section-label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .9rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem,4vw,2.6rem);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
}
.section-title em { font-style: italic; }

/* ── PHOTO GRID ──────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.photo-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--forest);
  box-shadow: 0 4px 18px var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px var(--shadow);
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .4s;
  filter: contrast(1.06) saturate(1.15) brightness(1.02);
}
.photo-card:hover img {
  transform: scale(1.04);
  filter: contrast(1.08) saturate(1.2) brightness(1.03);
}
.photo-card-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(19,31,10,.8));
  color: var(--cream);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity .3s, transform .3s;
}
.photo-card:hover .photo-card-caption { opacity: 1; transform: translateY(0); }
.photo-card-caption strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
}
.photo-card-caption em {
  font-size: .78rem;
  opacity: .7;
  font-style: italic;
}

/* ── ARTICLE CARDS (blog/observations) ──────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.post-card {
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 14px var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px var(--shadow);
}
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.post-card-label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .55rem;
}
.post-card h2, .post-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--bark);
  margin-bottom: .7rem;
}
.post-card p { font-size: .85rem; opacity: .72; margin-bottom: 1rem; }
.post-card a.read-more {
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
  transition: color .2s;
}
.post-card a.read-more:hover { color: var(--sage); }

/* ── ARTICLE / SPECIES PAGE ──────────────────────────────────── */
.article-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem,6vw,5rem) clamp(1.2rem,4vw,2.5rem);
}
.article-kicker {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.article-title em { font-style: italic; }
.article-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  border-left: 3px solid var(--sage);
  padding-left: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: .85;
}
.article-body p {
  margin-bottom: 1.5rem;
  font-size: .96rem;
}
.article-body p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: .8;
  float: left;
  margin: .1em .15em 0 0;
  color: var(--forest);
}
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--forest);
  margin: 2.5rem 0 .9rem;
}
.article-body strong { font-weight: 500; }
.article-body em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.04em;
}

/* Figure in article */
.article-figure {
  margin: 2.5rem -3vw;
}
.article-figure img {
  width: 100%;
  border-radius: 3px;
}
.article-figure figcaption {
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--bark);
  opacity: .5;
  text-align: right;
  margin-top: .55rem;
  padding-right: .5rem;
}
@media (max-width:600px) { .article-figure { margin: 2rem 0; } }

/* Species card */
.species-card {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0 1.4rem;
  margin: 2.5rem 0;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(143,181,115,.3);
  border-bottom: 1px solid rgba(143,181,115,.3);
}
.species-card::before {
  content: '';
  background: var(--sage);
  border-radius: 99px;
  align-self: stretch;
}
.species-card-label {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .4rem;
}
.species-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: .25rem;
}
.species-card h3 em { font-style: italic; font-weight: 300; }
.species-card p { font-size: .85rem; opacity: .72; margin: 0; }

/* Infobox */
.infobox {
  background: var(--forest);
  color: var(--cream);
  border-radius: 5px;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
}
.infobox-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--sage);
  margin-bottom: .9rem;
  font-weight: 400;
}
.infobox ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.infobox li {
  font-size: .85rem;
  opacity: .85;
  display: flex;
  gap: .6rem;
  align-items: baseline;
}
.infobox li::before { content: '–'; color: var(--sage); flex-shrink: 0; }

/* Pull quote */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--mist);
  border-radius: 4px;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 5.5rem;
  line-height: 0;
  color: var(--sage);
  opacity: .35;
  position: absolute;
  top: 1.4rem;
  left: 1rem;
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--forest);
  padding-left: 2.2rem;
  margin: 0;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
  opacity: .65;
  margin-bottom: 2rem;
  transition: opacity .2s;
}
.back-link:hover { opacity: 1; }
.back-link svg { width: 14px; height: 14px; }

/* ── NAV EXPLORE CARDS (index) ───────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.explore-card {
  border: 1px solid rgba(143,181,115,.35);
  border-radius: 5px;
  padding: 1.7rem 1.5rem 1.8rem;
  transition: background .25s, border-color .25s, transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.explore-card:hover {
  background: white;
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}
.explore-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--forest);
}
.explore-card p { font-size: .84rem; opacity: .7; margin: 0; }
.explore-card .cta {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .73rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ── SITES LIST ──────────────────────────────────────────────── */
.sites-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.site-item {
  border-left: 3px solid rgba(143,181,115,.4);
  padding: 1.4rem 1.6rem;
  background: white;
  border-radius: 0 4px 4px 0;
  transition: border-color .25s, box-shadow .25s;
}
.site-item:hover {
  border-left-color: var(--sage);
  box-shadow: 0 4px 18px var(--shadow);
}
.site-item h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: .35rem;
}
.site-item p { font-size: .88rem; opacity: .75; margin: 0; }

/* ── TAGS ────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 2.5rem 0 0;
}
.tag {
  padding: .32rem .9rem;
  border: 1px solid rgba(143,181,115,.5);
  border-radius: 99px;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--forest);
  transition: background .2s, border-color .2s;
}
.tag:hover { background: var(--sage); border-color: var(--sage); color: var(--cream); }

/* ── CTA BUTTON ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .72rem 1.8rem;
  border: 1.5px solid var(--forest);
  border-radius: 99px;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  transition: background .24s, color .24s;
}
.btn:hover { background: var(--forest); color: var(--cream); }
.btn svg { width: 14px; height: 14px; transition: transform .22s; }
.btn:hover svg { transform: translateX(3px); }
.btn--filled { background: var(--forest); color: var(--cream); }
.btn--filled:hover { background: #2a5a1a; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: #131f0a;
  color: #7a9a65;
  padding: clamp(2.5rem,5vw,3.5rem) clamp(1.2rem,4vw,2.5rem) 2rem;
  margin-top: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cream);
  opacity: .65;
  margin-bottom: .3rem;
}
.footer-brand em { font-style: italic; color: var(--sage); }
.footer-tagline { font-size: .76rem; opacity: .4; letter-spacing: .04em; }
.footer-copy { font-size: .72rem; opacity: .38; text-align: right; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(122,154,101,.12);
  grid-column: 1/-1;
}
.footer-nav a {
  font-size: .73rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .65;
  transition: opacity .2s;
}
.footer-nav a:hover { opacity: .9; }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 300;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--sage);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease), background .2s;
  box-shadow: 0 6px 20px rgba(26,58,16,.3);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--sage); color: var(--forest); }

/* ── MOBILE NAV ──────────────────────────────────────────────── */
@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(247,242,232,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid rgba(143,181,115,.35);
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: .75rem 2rem; font-size: .82rem; opacity: .88; }
  .nav-burger { display: flex; }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
}

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 2px;
  filter: contrast(1.06) saturate(1.15) brightness(1.02);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: rgba(247,242,232,.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
}
.lightbox-close:hover { color: var(--cream); }

/* ── SHARED SCRIPT (injected inline in each page) ─────────────── */
/* See bottom of each HTML file */
