/*
Theme Name: UnderStrap Child
Theme URI: https://understrap.com
Author: TonNom
Template: understrap
Version: 1.0
Description: Thème enfant basé sur UnderStrap
*/

/* Tu peux ajouter ton CSS custom ici */


/* Bouton burger plus carré */
.navbar-toggler {
  padding: 0.5rem;         /* réduit l’espace intérieur */
  width: 45px;             /* largeur carrée */
  height: 45px;            /* hauteur carrée */
}
/* Barres du burger plus épaisses (blanches) */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/*cacher nom page*/
.page .entry-title {
  display: none;
}

.realisation-title {
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  margin: 0;
}


/* Grille responsive, bien “justifiée” */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem; /* espace entre vignettes */
}

/* Cases uniformes */
.realisation-item { display: block; }

.realisation-link { display: block; width: 100%; text-decoration: none; }

.realisation-thumb {
  position: relative;
overflow: hidden;
width: 100%;
height: 300px; /* hauteur fixe pour toutes les vignettes */
}

/* Recadrage automatique des images */
.realisation-thumb img {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease; /* 👈 transition ajoutée */
}

/* Overlay + hover */
.realisation-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease;
}
.realisation-title { color: #fff; margin: 0; font-size: 1.1rem; text-align: center; }
.realisation-thumb:hover img {
  filter: grayscale(100%) brightness(.6);
  transform: scale(1.05); /* 👈 zoom léger */
}

.realisation-thumb:hover .realisation-overlay { opacity: 1; }

.single-realisation .realisation-single-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.realisation-single-details {
  background: #111;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}

.realisation-single-details h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.realisation-single-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.realisation-single-details li {
  margin-bottom: 0.5rem;
}

.mySwiper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 15px;
}

.mySwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbSwiper {
  width: 100%;
  height: 100px;
}

.thumbSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.thumbSwiper .swiper-slide-thumb-active img {
  opacity: 1;
}

.realisation-single-details {
  background: #111;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}
