:root {
  --ink: #1a1118;
  --plum: #2a2028;
  --plum-deep: #271f26;
  --foam: #f7f3ef;
  --paper: #fffdf9;
  --accent: #da191b;
  --muted: #6b5f66;
  --line: rgba(42, 32, 40, 0.12);
  --serif: "Noto Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); }
a:hover { color: var(--accent); }

.site-header {
  background: linear-gradient(180deg, var(--plum-deep), #1f171e);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.site-nav > ul > li { position: relative; }
.site-nav a {
  color: #f4f0ec;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  display: block;
  font-size: 0.92rem;
}
.site-nav li.active > a,
.site-nav a:hover { color: #fff; }
.site-nav .has-sub > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: var(--plum);
  padding: 0.4rem 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.site-nav .has-sub:hover > ul { display: block; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
}

.site-main { min-height: 60vh; }

/* Hero — fond fixe + 3 PNG animés (scrollReveal, comme le site d'origine) */
body.home {
  background: transparent url("../assets/images/bg-frontpage.jpg") top center / cover no-repeat fixed;
}
body.home .site-header {
  background: rgba(0, 0, 0, 0.28);
  box-shadow: none;
}
.hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}
.insettimg {
  width: min(640px, 92vw);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.insettimg img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 1 !important;
}
.insettimg .inset-mid {
  margin: 2% 0;
}
.insettimg [data-sr] {
  width: 100%;
  display: flex;
  justify-content: center;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
body.home .site-main > .section {
  position: relative;
  max-width: none;
  background: var(--foam);
  padding: 3rem 1.25rem;
}
body.home .site-main > .section > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
body.home .site-main > .section > .feature-grid {
  margin-top: 2rem;
}
.section h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: var(--plum);
}
.lead { color: var(--muted); max-width: 40rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.feature img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.feature-body { padding: 1.1rem 1.2rem 1.4rem; }
.feature h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.feature a.more {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(42,32,40,0.12);
  color: inherit;
}
.card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: #ddd;
}
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card h3 { margin: 0; font-size: 1.05rem; }

.page-hero {
  background: var(--plum-deep);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero p { margin: 0.5rem 0 0; color: #ddd; max-width: 40rem; }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  background: transparent;
}
.article .content img {
  margin: 1.2rem 0;
  border: 1px solid var(--line);
}
.article .content p { margin: 0 0 1rem; }
.article .content h2, .article .content h3 { color: var(--plum); }
.back-link {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.back-link:hover { color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.contact-card h2 { margin-top: 0; }
.contact-card p { margin: 0.4rem 0; }

.video-list {
  display: grid;
  gap: 1rem;
}
.video-list a {
  display: block;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
}
.video-list a:hover { border-color: var(--accent); }

.site-footer {
  background: var(--plum-deep);
  color: #ddd;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  margin-top: 2rem;
}
.footer-copy { margin: 1rem 0 0.4rem; font-size: 0.92rem; }
.footer-social a { color: #f1ebe7; }
.elevator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}
.elevator:hover { opacity: 0.7; }
.elevator-icon {
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.note-dead {
  background: #fff6e8;
  border: 1px solid #e7d2a8;
  padding: 1rem 1.2rem;
  color: #5a4a2e;
  margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
  body.home {
    background-attachment: scroll;
    background-size: cover;
  }
  .hero {
    min-height: 70vh;
    padding: 3rem 1rem 2.5rem;
  }
  .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--plum);
    padding: 0.5rem 1rem 1rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .has-sub > ul {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    padding-left: 0.8rem;
  }
  .header-inner { position: relative; flex-wrap: wrap; }
}


.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(42,32,40,0.12);
  color: inherit;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #1a1118;
}
.video-card-title {
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--plum);
}
