/* =========================================================
   Portfolio 2026 — cartes clients visuelles, alignées home V8
   ========================================================= */
body.rb-theme-portfolio .rb-inner-hero{padding-bottom:clamp(2.6rem,4vw,4rem)!important}
body.rb-theme-portfolio .rb-inner-panel{background:radial-gradient(circle at 78% 12%,rgba(200,80,26,.24),transparent 12rem),linear-gradient(145deg,#17110E,#241A14)!important}
body.rb-theme-portfolio .rb-inner-content{gap:34px!important}
body.rb-theme-portfolio .portfolio-cases-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  padding:clamp(1.45rem,2.6vw,2.6rem)!important;
}
body.rb-theme-portfolio .portfolio-case{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:30px!important;
  border:1px solid rgba(17,16,14,.12)!important;
  background:rgba(255,253,247,.70)!important;
  box-shadow:0 22px 62px rgba(17,16,14,.07)!important;
}
body.rb-theme-portfolio .portfolio-case:before{display:none!important;content:none!important}
body.rb-theme-portfolio .portfolio-case:nth-child(-n+3){
  grid-column:span 1!important;
  background:linear-gradient(180deg,rgba(255,253,247,.82),rgba(255,249,239,.64))!important;
}
body.rb-theme-portfolio .portfolio-shot{
  position:relative!important;
  display:flex!important;
  align-items:flex-end!important;
  min-height:clamp(210px,17vw,285px)!important;
  padding:18px!important;
  overflow:hidden!important;
  text-decoration:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background-color:#17110E!important;
  background-size:cover!important;
  background-position:center!important;
  border-bottom:1px solid rgba(17,16,14,.10)!important;
  isolation:isolate!important;
}
body.rb-theme-portfolio .portfolio-shot:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-1!important;
  background:linear-gradient(180deg,rgba(17,16,14,.03) 0%,rgba(17,16,14,.18) 48%,rgba(17,16,14,.78) 100%)!important;
}
body.rb-theme-portfolio .portfolio-shot:after{
  content:""!important;
  position:absolute!important;
  top:18px!important;
  right:18px!important;
  width:50px!important;
  height:50px!important;
  border-radius:999px!important;
  background:rgba(255,249,239,.14)!important;
  border:1px solid rgba(255,255,255,.13)!important;
}
body.rb-theme-portfolio .portfolio-shot span{
  position:relative!important;
  z-index:2!important;
  display:inline-flex!important;
  min-height:34px!important;
  align-items:center!important;
  padding:0 12px!important;
  border-radius:999px!important;
  background:rgba(17,16,14,.64)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font:800 .74rem/1 var(--body)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
body.rb-theme-portfolio .portfolio-case .meta{margin:22px 24px 13px!important;align-self:flex-start!important}
body.rb-theme-portfolio .portfolio-case h3{margin:0 24px 14px!important;font-size:clamp(1.35rem,1.8vw,1.85rem)!important;line-height:1.02!important;letter-spacing:-.055em!important}
body.rb-theme-portfolio .portfolio-case p{margin:0 24px 14px!important;font-size:.96rem!important;line-height:1.58!important;color:#4D453D!important;-webkit-text-fill-color:#4D453D!important}
body.rb-theme-portfolio .portfolio-case p:last-child{margin-bottom:24px!important}
body.rb-theme-portfolio .portfolio-case strong{color:#17110E!important;-webkit-text-fill-color:#17110E!important}
body.rb-theme-portfolio .portfolio-case a:not(.portfolio-shot){color:inherit!important;-webkit-text-fill-color:inherit!important;text-decoration:none!important}
body.rb-theme-portfolio .portfolio-case:hover{transform:translateY(-3px)!important;transition:transform .18s ease!important}
body.rb-theme-portfolio .portfolio-case:hover .portfolio-shot{filter:saturate(1.05) contrast(1.02)!important}

/* Visuels créés en local pour les projets principaux, captures dynamiques seulement en renfort pour le reste. */
body.rb-theme-portfolio .portfolio-case:nth-child(1) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.62)),url('/assets/img/home/openlang.svg')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(2) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.62)),url('/assets/img/home/collector-briques.svg')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(3) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Fmouluparfait.fr%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(4) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.62)),url('/assets/img/home/lesensdelafete.svg')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(5) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Fcybereva.com%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(6) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Favocat-alencon.fr%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(7) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Fwww.depannetonterrain.fr%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(8) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Fnds-expertise.fr%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(9) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Fpreciousplastictouraine.fr%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(10) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Femtyconsulting.fr%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(11) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Faf-esprit-deco.fr%2F?w=1200')!important}
body.rb-theme-portfolio .portfolio-case:nth-child(12) .portfolio-shot{background-image:linear-gradient(180deg,rgba(17,16,14,.02),rgba(17,16,14,.72)),url('https://s.wordpress.com/mshots/v1/https%3A%2F%2Ffdvconseil.com%2F?w=1200')!important}

body.rb-theme-portfolio .section-block:first-child{background:rgba(255,249,239,.74)!important;box-shadow:0 26px 72px rgba(17,16,14,.07)!important}
body.rb-theme-portfolio .section-block:first-child .block-head h2{max-width:780px!important}
body.rb-theme-portfolio .section-block:first-child .block-head h2 .accent-text{display:inline!important;color:var(--orange)!important;-webkit-text-fill-color:var(--orange)!important}
body.rb-theme-portfolio .section-cta{margin-top:8px!important;background:radial-gradient(circle at 88% 18%,rgba(200,80,26,.24),transparent 18rem),linear-gradient(145deg,#17110E,#241A14)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body.rb-theme-portfolio .section-cta .cta-h,
body.rb-theme-portfolio .section-cta h2,
body.rb-theme-portfolio .section-cta .cta-h *{
  color:#FFF9EF!important;
  -webkit-text-fill-color:#FFF9EF!important;
  opacity:1!important;
}
body.rb-theme-portfolio .section-cta .cta-h em,
body.rb-theme-portfolio .section-cta h2 em{
  color:#E77735!important;
  -webkit-text-fill-color:#E77735!important;
  font-style:normal!important;
}
body.rb-theme-portfolio .section-cta .cta-right,
body.rb-theme-portfolio .section-cta .cta-right p{
  color:rgba(255,249,239,.82)!important;
  -webkit-text-fill-color:rgba(255,249,239,.82)!important;
  opacity:1!important;
}
@media(max-width:1180px){
  body.rb-theme-portfolio .portfolio-cases-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  body.rb-theme-portfolio .portfolio-cases-grid{grid-template-columns:1fr!important;padding:1.25rem!important}
  body.rb-theme-portfolio .portfolio-shot{min-height:230px!important}
  body.rb-theme-portfolio .portfolio-case .meta{margin:20px 20px 12px!important}
  body.rb-theme-portfolio .portfolio-case h3,body.rb-theme-portfolio .portfolio-case p{margin-left:20px!important;margin-right:20px!important}
}
