/* =========================================================
   LOUP ASSIS — feuille de style
   Palette : pin profond, crème de bouleau, mousse, écorce, ambre
   ========================================================= */

:root {
  --pine: #1B2E1F;
  --pine-2: #16241A;
  --cream: #F6F1E4;
  --cream-2: #EFE8D6;
  --moss: #6e9f5c;
  --moss-light: #a3c988;
  --bark: #8B6A45;
  --amber: #D79A3D;
  --amber-light: #F3D18C;
  --soil: #2A241E;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--soil);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--pine);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 0.85em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1.5px solid var(--amber);
  background: var(--amber);
  color: var(--pine-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--cream);
}
.btn-outline:hover { background: rgba(246, 241, 228, 0.12); color: var(--cream); }

/* ---------- root divider, evokes roots / branches ---------- */
.root-divider {
  width: 100%;
  height: 44px;
  display: block;
  color: var(--moss);
  opacity: 0.55;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 46, 31, 0.94);
  backdrop-filter: blur(6px);
  color: var(--cream);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--amber);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity 0.2s, border-color 0.2s;
}
.nav-links a:hover { opacity: 1; border-color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(246,241,228,0.4);
  border-radius: var(--radius);
  color: var(--cream);
  width: 42px;
  height: 38px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(19,31,21,0.25) 0%, rgba(19,31,21,0.55) 60%, rgba(15,24,16,0.92) 100%);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 72px;
  width: 100%;
}

.hero-content .eyebrow { color: var(--amber-light); }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--cream);
  margin-bottom: 0.3em;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 640px;
  color: var(--cream);
  opacity: 0.92;
  font-weight: 300;
  margin-bottom: 1.6em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- generic section ---------- */
section { padding: 92px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-alt {
  background: var(--pine);
  color: var(--cream);
}
.section-alt h2, .section-alt h3 { color: var(--cream); }
.section-alt .eyebrow { color: var(--amber-light); }

/* ---------- intro / chapô ---------- */
.intro-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--pine);
  line-height: 1.5;
  max-width: 760px;
}
.intro-text em { color: var(--bark); font-style: normal; }

/* ---------- video ---------- */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--soil);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--bark);
}

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--cream-2);
  border: 1px solid var(--cream-2);
}

.pillar {
  background: var(--cream);
  padding: 32px 28px;
}

.pillar-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--moss);
  margin-bottom: 0.4em;
}

.pillar p {
  font-size: 0.96rem;
  color: var(--soil);
  opacity: 0.92;
  margin-bottom: 0;
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(20,30,20,0.75), transparent);
}

.gallery-empty {
  color: var(--bark);
  font-style: italic;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 20, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: var(--radius);
}
.lightbox-caption {
  position: absolute;
  bottom: 60px;
  left: 0; right: 0;
  text-align: center;
  color: var(--cream);
  font-size: 0.95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(246,241,228,0.1);
  border: 1px solid rgba(246,241,228,0.35);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: rgba(246,241,228,0.22); }

/* ---------- news ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(139,106,69,0.25);
}
.news-item:last-child { border-bottom: 1px solid rgba(139,106,69,0.25); }

.news-date {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--bark);
  text-transform: uppercase;
  padding-top: 0.2em;
}

.news-title { margin-bottom: 0.3em; font-size: 1.15rem; }
.news-text { margin-bottom: 0; font-size: 0.96rem; }

.news-empty { color: var(--bark); font-style: italic; }

/* ---------- thanks (texte simple) ---------- */
.thanks-text {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.thanks-text p { margin-bottom: 1.2em; }
.thanks-text p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--pine-2);
  color: var(--cream);
  padding: 44px;
  border-radius: var(--radius);
}
.contact-card h2 { color: var(--cream); margin-bottom: 0.25em; }
.contact-card p { opacity: 0.85; margin-bottom: 0; max-width: 480px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--pine);
  color: rgba(246,241,228,0.75);
  padding: 46px 0 30px;
  font-size: 0.88rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-mark {
  width: 26px;
  height: 26px;
  color: var(--amber);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--pine);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 28px; border-bottom: 1px solid rgba(246,241,228,0.08); }
  .nav-toggle { display: block; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .contact-card { padding: 32px 24px; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hero { min-height: 78vh; }
}
