/* ===== Galerie - Material Styles ===== */

/* Hero simple */
.simple-hero {
  height: 70vh;
  min-height: 520px;
  max-height: 900px;
  padding-top: 115px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .simple-hero {
    height: 65vh;
    min-height: 420px;
    padding-top: 80px;
  }
}

.simple-hero > .container,
.simple-hero > .container-xxl {
  width: 100%;
}

.simple-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: simpleHeroZoom 20s ease-out forwards;
}

@keyframes simpleHeroZoom {
  from { transform: scale(1.15); }
  to   { transform: scale(1.05); }
}

.simple-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 43, 70, 0.55), rgba(11, 43, 70, 0.85));
}

.material-section.py-80 {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Cartes Material */
.material-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(11, 43, 70, 0.08), 0 8px 24px rgba(11, 43, 70, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  height: 100%;
}

.material-card.show {
  opacity: 1;
}

.material-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(11, 43, 70, 0.12), 0 16px 40px rgba(11, 43, 70, 0.10);
}

/* Carte photo */
.gallery-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-card .card-body {
  padding: 1.25rem;
}

.gallery-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0b2b46;
  margin-bottom: 0.4rem;
}

/* Icones Material petits */
.material-icons.md-18 {
  font-size: 18px;
  line-height: 1;
  vertical-align: -2px;
}

/* Cartes vidéo */
.video-card .card-body {
  padding: 1rem 1.25rem;
}

.video-thumbnail {
  overflow: hidden;
}

.video-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.video-play-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(11, 43, 70, 0.35);
  cursor: pointer;
  color: #ffffff;
  transition: background 0.3s ease;
}

.video-play-button:hover {
  background: rgba(211, 47, 47, 0.55);
}

.video-play-button .material-icons {
  font-size: 52px;
}

.play-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Vidéo embed */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive-16by9::before {
  display: block;
  content: "";
  padding-top: 56.25%;
}

.embed-responsive-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Pagination Material */
.gallery-pagination-material {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-material-text,
.btn-material-icon,
.btn-material-contained {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  min-width: 40px;
  height: 40px;
  padding: 0 0.9rem;
  color: #0b2b46;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-material-text:hover,
.btn-material-icon:hover {
  background: rgba(11, 43, 70, 0.08);
}

.btn-material-contained {
  background: #0b2b46;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 43, 70, 0.4);
}

.pagination-ellipsis {
  color: #6c757d;
  display: inline-flex;
  align-items: center;
}

.no-items-message {
  margin-top: 1rem;
}