/* ===========================
   Homepage Izy - PRESENTATION
   =========================== */

.izy-home{
  padding: 0px 0px 0px;
}

/* Header */
.izy-home__header{
  margin-bottom: 18px;
}

/* Header top : titre + panier */
.izy-home__header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Panier */
.izy-home__cart {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #0a7a3f;
  font-size: 16px;
  padding: 6px 10px;
  border: 2px solid #0a7a3f;
  border-radius: 8px;
  background: #eaf7ef;
  transition: all 0.2s ease;
}

.izy-home__cart:hover {
  background: #d6f0d6;
  transform: translateY(-2px);
}

.izy-home__cart svg {
  display: block;
}

.izy-home__cart-count {
  font-weight: 900;
  margin-left: 4px;
  font-size: 16px;
}

.izy-home__title{
  font-weight: 900;
  color: #0a7a3f;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 28px;
  margin: 0 0 8px;
}

.izy-home__rule_half{
  height: 2px;
  background: rgba(10, 122, 63, .6);
  width: 30%;
  margin: 0 0 18px;
}

.izy-home__headline{
  margin: 0 0 10px;
  text-align: center;
  font-style: italic;
  color: #0a7a3f;
  font-size: 18px;
}

.izy-home__lead{
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  color: rgba(10, 122, 63, .82);
  font-size: 13px;
  line-height: 1.5;
}

.izy-home__lead_apropos{
  max-width: 840px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.5;
  text-align: justify;
}

/* Grid */
.izy-home__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 18px;
  width: 80%;
  margin: auto;
}

/* Blocks */
.izy-home__block{
  text-align: center;
}

/* Media container */
.izy-home__media{
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

/* Images (base) */
.izy-home__img{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Grande image : affichage complet */
.izy-home__img--contain{
  object-fit: contain;
  background: #fff;
}

/* ===========================
   Galerie : image + miniatures
   =========================== */

.izy-home__media--gallery{
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 12px;
  align-items: start;
}

.izy-home__main{
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.izy-home__thumbs{
  display: grid;
  grid-auto-rows: 92px;
  gap: 12px;
}

.izy-home__thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.izy-home__thumb:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  border-color: rgba(10, 122, 63, .45);
}

/* ===========================
   Vidéo (lecture directe)
   =========================== */

.izy-home__media--video{
  position: relative;
}

.izy-home__video{
  width: 100%;
  height: 320px;      /* ✅ même hauteur que la galerie */
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

/* Le player remplit la zone */
.izy-home__video-player{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  background: #fff;       /* ✅ plus de noir */
  object-fit: contain;    /* vidéo entière */
}

/* Label sous bloc */
.izy-home__label{
  margin-top: 12px;
  font-weight: 900;
  color: #0a7a3f;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 14px;
}

/* Values */
.izy-home__values{
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 80px;
}

.izy-home__value{
  font-weight: 900;
  color: #0a7a3f;
  text-transform: uppercase;
  font-size: 22px;
  text-decoration: underline;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 991.98px){

  .izy-home__grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .izy-home__media--gallery{
    grid-template-columns: 1fr;
  }

  .izy-home__main{
    height: 260px;
  }

  .izy-home__video{
    height: 260px;
  }

  .izy-home__thumbs{
    grid-auto-flow: column;
    grid-auto-columns: 88px;
    grid-auto-rows: 88px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .izy-home__values{
    gap: 24px;
    flex-wrap: wrap;
  }

  .izy-home__value{
    font-size: 18px;
  }
}

/* ============================= */
/* BOUTONS CAROUSEL BOOTSTRAP */
/* ============================= */

/* Position générale */
.carousel-control-prev,
.carousel-control-next {
  width: 55px;
  height: 55px;
  background-color: #0a7a3f;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Espacement gauche / droite */
.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

/* Hover effet */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #055a2c;
  transform: translateY(-50%) scale(1.1);
}

/* ============================= */
/* ICÔNES FLÈCHES PERSONNALISÉES */
/* ============================= */

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 25px;
  height: 25px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Flèche gauche */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 2L4.5 8L10.5 14' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Flèche droite */
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 2L11.5 8L5.5 14' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ============================= */
/* RESPONSIVE MOBILE */
/* ============================= */

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }
}