/* =========================
   PORTFOLIO — GALERIES (premium, sans double header)
   ========================= */

.portfolio-cats{
  padding: 18px 0 90px;
}

/* Intro minimal (plus de gros bloc header) */
.portfolio-head{
  padding: 26px 0 10px;          /* ✅ compact */
  border: 0;                      /* ✅ supprime la barre */
  background: transparent;        /* ✅ supprime le fond */
}

.portfolio-head-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
}

.portfolio-kicker{
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: 10px;
  margin-bottom: 6px;
}

.portfolio-title{
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: .01em;
}

.portfolio-sub{
  margin: 0;
  color: rgba(255,255,255,.66);
  line-height: 1.6;
  max-width: 52ch;
  font-size: 13px;
}

.portfolio-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.portfolio-cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
  opacity: 1;
}

/* Grid galeries */
.cats-grid{
  padding-top: 12px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

/* Carte */
.cat-card{
  grid-column: span 4;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-height: 260px;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
  isolation:isolate;
}

.cat-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  transform: scale(1.02);
  transition: transform .55s ease, filter .55s ease;
  will-change: transform;
}

.cat-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.82));
  opacity: .92;
  z-index: 1;
}

.cat-content{
  position: relative;
  z-index: 2;
  height: 100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding: 16px;
}

/* Top (flèche seulement) */
.cat-top{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
}

.cat-arrow{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;

  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-size: 18px;

  transform: translateX(0);
  transition: transform .16s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
  opacity: .85;
}

/* Bottom text */
.cat-bottom{
  padding-top: 10px;
}

.cat-title{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: .01em;
}

.cat-desc{
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  font-size: 14px;
  max-width: 44ch;
}

/* Hover premium */
.cat-card:hover .cat-bg{
  transform: scale(1.08);
  filter: brightness(1.06);
}

.cat-card:hover .cat-arrow{
  transform: translateX(2px);
  border-color: rgba(138,161,89,.70);
  background: rgba(138,161,89,.12);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px){
  .portfolio-head-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .portfolio-title{
    font-size: 24px;
  }

  .cats-grid{
    padding-top: 10px;
  }

  .cat-card{
    grid-column: span 12;
    min-height: 240px;
  }
}