/* Accueil — cartes VPS / jeux (servi via /css pour fiabilité CDN) */
/* =====================================================================
   Sections VPS et jeux : cartes style catalogue jeux
   ===================================================================== */
.aish-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aish-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gs-line, #d9e3f0);
  border-radius: 20px;
  background: var(--gs-surface, #fff);
  color: var(--gs-text, #0b1b33);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.aish-tile:hover,
.aish-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgb(var(--gs-accent-rgb) / 0.45);
  box-shadow: 0 20px 44px rgb(var(--gs-accent-rgb) / 0.14);
  outline: none;
}
.aish-tile.is-out {
  opacity: 1;
}
.aish-tile.is-out .aish-tile__img {
  opacity: 0.7;
}
.aish-tile__img {
  position: relative;
  display: block;
  height: 148px;
  background-color: var(--gs-surface-2, #eef3fa);
  background-position: center;
  background-size: cover;
}
.aish-tile__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(11, 27, 51, 0.32));
}
.aish-tile__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 700;
}
.aish-tile__out {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(214, 60, 71, 0.95);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aish-tile__tag {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 27, 51, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.aish-tile__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 34px 16px 16px;
}
.aish-tile__logo {
  position: absolute;
  top: -26px;
  left: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gs-line, #d9e3f0);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 27, 51, 0.14);
}
.aish-tile__logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.aish-tile__logo--wide img {
  width: 40px;
  height: 14px;
}
.aish-tile__body > strong {
  font-family: var(--g-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.aish-tile__sub {
  color: var(--gs-text-muted, #5b6b82);
  font-size: 0.8rem;
  line-height: 1.35;
}
.aish-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.aish-tile__price {
  display: grid;
  gap: 1px;
  color: var(--gs-text, #0b1b33);
  font-weight: 700;
}
.aish-tile__price small {
  color: var(--gs-text-muted, #5b6b82);
  font-size: 0.72rem;
  font-weight: 600;
}
.aish-tile__go {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gs-surface-2, #eef3fa);
  color: var(--gs-accent-text, #1d6cf2);
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.aish-tile__go i {
  display: block;
  line-height: 1;
}
.aish-tile:hover .aish-tile__go,
.aish-tile:focus-visible .aish-tile__go,
.aish-tile.is-featured .aish-tile__go {
  background: var(--gs-accent, #1d6cf2);
  color: #fff;
}
html:is([data-theme="dark"], [data-style="dark"]) .aish-tile__logo {
  background: var(--gs-surface, #fff);
}

/* Rangée horizontale : 4 visibles, défilement manuel (pas d’auto) */
.aish-tiles-carousel {
  position: relative;
  min-width: 0;
}
.aish-tiles--scroll {
  --aish-tiles-gap: 16px;
  --aish-tiles-visible: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--aish-tiles-gap) * (var(--aish-tiles-visible) - 1))) / var(--aish-tiles-visible));
  grid-template-columns: none;
  gap: var(--aish-tiles-gap);
  margin: 0;
  padding: 4px 2px 10px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.aish-tiles--scroll::-webkit-scrollbar {
  display: none;
}
.aish-tiles--scroll > li {
  scroll-snap-align: start;
  min-width: 0;
}
.aish-tiles-carousel__btn {
  position: absolute;
  top: 42%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gs-line, #d9e3f0);
  border-radius: 999px;
  background: #fff;
  color: var(--gs-accent-text, #1d6cf2);
  box-shadow: 0 10px 24px rgba(11, 27, 51, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.aish-tiles-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.aish-tiles-carousel__btn:not(:disabled):hover {
  background: var(--gs-accent, #1d6cf2);
  color: #fff;
}
.aish-tiles-carousel__btn--prev {
  left: -8px;
}
.aish-tiles-carousel__btn--next {
  right: -8px;
}
@media (max-width: 1100px) {
  .aish-tiles--scroll {
    --aish-tiles-visible: 2;
  }
}
@media (max-width: 560px) {
  .aish-tiles--scroll {
    --aish-tiles-visible: 1;
  }
  .aish-tiles-carousel__btn--prev {
    left: 0;
  }
  .aish-tiles-carousel__btn--next {
    right: 0;
  }
}
