body.project-page {
    background-image: url('assets/projets/background-projets.png');
    background-repeat: repeat;
    background-position: center;
    background-attachment: local;
    background-size: contain;
}

header {
  position: fixed;
  background: rgba(40,58,81,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.article-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 150px 50px 80px;
  background-color: rgba(255, 255, 255, 0.632);
}

.article-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #283a51;
}

.article-date {
  font-size: 12px;
  color: #283a51;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.article-tags { display: flex; gap: 6px; }
.tag {
  font-size: 11px;
  font-weight: 400;
  padding: 3px 12px;
  border-radius: 30px;
  border: 1px solid #283a51;
  color: #283a51;
}

.article-title {
  font-size: 52px;
  font-weight: 900;
  color: #283a51;
  line-height: 1.1;
  font-family: 'Fusain-regular', sans-serif;
  margin: 16px 0 10px;
}

.article-subtitle {
  font-size: 17px;
  color: #283a51;
  font-weight: 200;
  margin: 0 0 24px;
  line-height: 1.6;
}

.article-rule {
  border: none;
  border-top: 1px solid #283a51;
  margin: 0 0 36px;
}

/* COLONNES */
.article-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 170px;
}

.aside-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #283a51;
  margin-bottom: 12px;
}

.aside-index {
  list-style: none;
  padding: 0;
}

.aside-index li {
  font-size: 12px;
  color: #283a51;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.4;
}

.aside-pull {
  font-size: 14px;
  font-style: italic;
  color: #283a51;
  line-height: 1.7;
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 14px;
  margin: 60px 0 0;
}

.section-label {
  scroll-margin-top: 120px;
}
.article-gallery {
  scroll-margin-top: 100px;
}

/* Galerie cliquable */
.gallery-grid img {
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.gallery-grid img:hover { opacity: 0.85; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* CONTENU */
.article-content p {
  font-size: 16px;
  line-height: 1.9;
  color: #283a51;
  margin: 0 0 20px;
}

.section-label {
  font-size: 10px !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #283a51 !important;
  margin: 32px 0 10px !important;
}

.article-content img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin: 24px 0 8px;
}

.img-caption {
  font-size: 12px !important;
  color: #283a51 !important;
  margin: 0 0 24px !important;
}

/* GALERIE */
.article-gallery { 
    margin-top: 48px; padding-top: 24px; border-top: 1px solid #283a51; 
}
.gallery-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; 
}
.gallery-grid img { 
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; 
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .article-body { grid-template-columns: 1fr; }
  .article-aside { position: static; display: flex; flex-wrap: wrap; gap: 20px; }
  .article-title { font-size: 36px; }
  .article-wrap { padding: 100px 20px 60px; }
  .article-hero {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-top: 20px;
  }
}
