* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

nav {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav a {
  color: #111;
  text-decoration: none;
  margin-right: 1.5rem;
}

nav a:hover {
  color: #666;
}

h1 {
  font-size: 1.4rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

ul {
  list-style: none;
}

li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}

a {
  color: #111;
  text-decoration: none;
}

a:hover {
  color: #666;
}

article ul {
  margin-top: 1rem;
}

article li {
  display: flex;
  gap: 1rem;
}

article li strong {
  min-width: 100px;
  color: #666;
  font-weight: normal;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
article img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin-bottom: 2rem;
  border: 1px solid #eee;
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.archive-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.archive-list .entry-title {
  flex: 1;
}

.archive-list .entry-meta {
  flex-shrink: 0;
  font-size: 0.88rem;
  color: #888;
  white-space: nowrap;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.video-wrapper {
  margin-top: 1.5rem;
}

.video-wrapper iframe {
  max-width: 100%;
  border: 1px solid #eee;
}
.banner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  background: #000;
  padding: 4px;
  margin-bottom: 2rem;
}

.banner img {
  height: 140px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}

.wip-banner {
  background: #1a1a1a;
  color: #f5f5f5;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.catalogue-item {
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
}

.catalogue-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid #eee;
  display: block;
}

.no-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 1.5rem;
}

.catalogue-caption {
  padding: 0.5rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.catalogue-num {
  font-size: 0.75rem;
  color: #999;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.catalogue-titre {
  font-size: 0.85rem;
  line-height: 1.3;
}

.catalogue-annee {
  font-size: 0.75rem;
  color: #888;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.catalogue-item:hover img {
  border-color: #999;
}
.fiche-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

.fiche-nav-prev { text-align: left; }
.fiche-nav-next { text-align: right; }

/* ── Responsive mobile ── */
@media (max-width: 768px) {

  /* Conteneur principal */
  body {
    padding: 0 1rem;
  }

  /* Navigation principale */
  nav, .site-nav {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  /* Images des fiches */
  article img {
    width: 100%;
    height: auto;
  }

  /* Grille catalogue */
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Navigation précédent/suivant */
  .fiche-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .fiche-nav-next {
    text-align: left;
  }

  /* Tableaux */
  table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
  }

  /* Titres */
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Menu hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .site-nav {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid #eee;
  }
}

/* ── Diaporama ── */
.diaporama {
  margin: 2rem 0;
  text-align: center;
}

.diapo-inner img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: none;
}

.diapo-controls {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.diapo-controls button {
  background: none;
  border: 1px solid #ccc;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.diapo-controls button:hover {
  background: #f0f0f0;
}

.diapo-counter {
  font-size: 0.9rem;
  color: #666;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1rem; right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.diapo-expand {
  margin-top: 0.5rem;
  background: none;
  border: 1px solid #ccc;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #444;
}

.diapo-expand:hover {
  background: #f0f0f0;
}

/* ── Section Trélazé page d'accueil ── */
.accueil-trelaze {
  background: #f9f7f4;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid #ccc;
}

.accueil-trelaze-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.accueil-trelaze-inner img {
  width: 100px;
  flex-shrink: 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .accueil-trelaze-inner {
    flex-direction: column;
  }
  .accueil-trelaze-inner img {
    width: 100%;
    max-width: 200px;
  }
}
/* dans ton fichier CSS principal, ex. static/css/style.css */
.content p {
  margin-bottom: 1.5em;
}
.content img {
  margin-top: 1.5em;
}
.content p.muted {
  margin-bottom: 2em;
}