/*
Theme Name: Fluxus Child
Template: fluxus
Version: 1.0
*/

body.home,
body.page {
  background: #000 !important;
}

/* Masque le titre ACCUEIL */
body.home .entry-title,
body.home h1.entry-title,
body.home .page-title {
  display: none !important;
}

/* Supprime les marges Fluxus autour du contenu */
body.home .site,
body.home .site-content,
body.home .content,
body.home .entry-content,
body.home .page-content,
body.home article,
body.home .hentry {
  background: #000 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Grille */
body.home .str-home-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 !important;
  width: 100% !important;
}

body.home .str-home-tile {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #000 !important;
}

body.home .str-home-tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #000 !important;
}

body.home .str-home-tile span {
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 18px !important;
  font-size: clamp(18px, 2vw, 30px) !important;
  line-height: 1.05 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  max-width: calc(100% - 40px) !important;
}

/* Images */
body.home .str-home-tile img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0.82;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

body.home .str-home-tile:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* Texte sur les images */
body.home .str-home-tile span {
  position: absolute !important;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

/* Tablette */
@media (max-width: 1000px) {
  body.home .str-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home .str-home-tile {
    height: 44vw !important;
  }
}

/* Téléphone */
@media (max-width: 600px) {
  body.home .str-home-grid {
    grid-template-columns: 1fr !important;
  }

  body.home .str-home-tile {
    height: 68vw !important;
    min-height: 240px !important;
  }

  body.home .str-home-tile span {
    font-size: 20px;
  }
}

body.home .sharedaddy,
body.home .sd-sharing-enabled,
body.home .post-edit-link,
body.home .edit-link {
  display: none !important;
}

body.home #main,
body.home #content,
body.home .content,
body.home .site-content,
body.home .entry-content,
body.home .post,
body.home .page,
body.home article {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.home .str-home-tile,
body.home .str-home-tile img {
  border: 0 !important;
}

