/* gallery.css */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ===== Galerie Mod JackFrench ===== */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gallery-section {
  margin-bottom: 40px;
}

.gallery-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.8em;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Diviseur de section stylisé */
.section-divider {
  width: 100%;
  max-width: 800px;
  height: 2px;
  margin: 30px auto;
  border: none;
  background: linear-gradient(to right, transparent, #3498db, transparent);
  opacity: 0.6;
}

/* Version alternative (ligne simple) */
.section-divider.simple {
  width: 100%;
  max-width: 800px;
  height: 1px;
  margin: 30px auto;
  border: none;
  background-color: #ddd;
}

/* Style pour les images des unités */
.mod-unit-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 10px auto;
}

.mod-unit-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style pour les sections du mod */
.mod-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.mod-section-title {
  text-align: center;
  color: #2c3e50;
  font-size: 1.8em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.mod-section-description {
  text-align: center;
  color: #555;
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Style pour la galerie d'images */
.mod-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.mod-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mod-gallery a:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mod-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Style pour les diviseurs de section */
.section-divider {
  width: 100%;
  max-width: 800px;
  height: 1px;
  margin: 40px auto;
  background: linear-gradient(to right, transparent, #ddd, transparent);
}