/* Tous les produits — SaaS premium */

.all-hero {
  position: relative;
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
  background: linear-gradient(165deg, #0c1117 0%, #14261c 55%, #1a3d28 100%);
  color: #fff;
  border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.all-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.all-hero__glow {
  position: absolute;
  top: -15%;
  right: -5%;
  width: min(420px, 50vw);
  height: min(420px, 50vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 191, 9, 0.22), transparent 68%);
  filter: blur(56px);
  pointer-events: none;
}

.all-hero__layout {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.all-hero .prod-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
}

.all-hero .prod-breadcrumb a:hover {
  color: #8fd99a;
}

.all-hero .ing-label {
  color: #8fd99a;
}

.all-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.all-hero__title em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: #8fd99a;
}

.all-hero__lead {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.all-hero__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.all-hero__count strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: #8fd99a;
}

.all-hero__count span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.all-hero__toolbar {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
}

.all-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.all-search svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.all-search input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #fff;
  outline: none;
}

.all-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.all-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.all-filters__btn {
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.all-filters__btn:hover,
.all-filters__btn.is-active {
  color: #fff;
  background: rgba(40, 167, 69, 0.35);
  border-color: rgba(143, 217, 154, 0.45);
}

.all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.15rem;
}

.all-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.all-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(40, 167, 69, 0.12);
}

.all-card__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--surface-alt);
}

.all-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.all-card:hover .all-card__media img {
  transform: scale(1.06);
}

.all-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 17, 23, 0.55) 100%);
  pointer-events: none;
}

.all-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.all-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
}

.all-card__cat {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
}

.all-card__body strong {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.all-card__body em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--ink-soft);
}

.all-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-600);
}

.all-empty {
  margin: 0 0 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border-radius: var(--radius-md);
}

@media (max-width: 767px) {
  .all-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .all-filters__btn {
    flex-shrink: 0;
  }
}
