/* =========================================================
   Home — vrais projets, captures réelles, pas de visuels génériques
   ========================================================= */

/* ---------- Hero : mini portfolio immédiatement visible ---------- */
body.page-home .rb-hero__visual--work{
  min-height:500px!important;
  perspective:1200px!important;
}
body.page-home .rb-hero-site{
  position:absolute!important;
  display:block!important;
  text-decoration:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.page-home .rb-hero-site--main{
  left:0!important;
  top:6px!important;
  width:94%!important;
  z-index:1!important;
  padding:14px!important;
  border-radius:30px!important;
  background:radial-gradient(circle at 82% 12%,rgba(200,80,26,.20),transparent 12rem),linear-gradient(145deg,#17110E,#2A2019)!important;
  box-shadow:0 28px 72px rgba(17,16,14,.20)!important;
  transform:rotate(-1.6deg)!important;
}
body.page-home .rb-hero-site--float{
  right:-8px!important;
  bottom:34px!important;
  width:58%!important;
  z-index:3!important;
  padding:10px!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,#FFF9EF,#E8E0D0)!important;
  border:1px solid rgba(17,16,14,.12)!important;
  box-shadow:0 24px 64px rgba(17,16,14,.22)!important;
  transform:rotate(2.2deg)!important;
}
body.page-home .rb-hero-browser{
  overflow:hidden!important;
  border-radius:17px!important;
  background:#fff!important;
  border:1px solid rgba(17,16,14,.11)!important;
  box-shadow:0 16px 34px rgba(17,16,14,.16)!important;
}
body.page-home .rb-hero-browser__bar{
  height:32px!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:0 10px!important;
  background:#F2EEE7!important;
  border-bottom:1px solid rgba(17,16,14,.08)!important;
}
body.page-home .rb-hero-browser__bar span{
  display:block!important;
  width:6px!important;
  height:6px!important;
  border-radius:50%!important;
  background:rgba(17,16,14,.20)!important;
}
body.page-home .rb-hero-browser__bar span:first-child{
  background:var(--orange)!important;
}
body.page-home .rb-hero-browser__bar em{
  margin-left:6px!important;
  color:#766A5F!important;
  -webkit-text-fill-color:#766A5F!important;
  font:700 .62rem/1 var(--body)!important;
  font-style:normal!important;
}
body.page-home .rb-hero-browser img{
  display:block!important;
  width:100%!important;
  height:310px!important;
  object-fit:cover!important;
  object-position:top center!important;
  background:#fff!important;
}
body.page-home .rb-hero-site--float .rb-hero-browser img{
  height:180px!important;
}
body.page-home .rb-hero-site>strong{
  display:inline-flex!important;
  align-items:center!important;
  min-height:32px!important;
  margin-top:10px!important;
  padding:0 11px!important;
  border-radius:999px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:rgba(255,255,255,.09)!important;
  font:800 .69rem/1 var(--body)!important;
}
body.page-home .rb-hero-site--float>strong{
  color:#2B251F!important;
  -webkit-text-fill-color:#2B251F!important;
  background:rgba(17,16,14,.06)!important;
}
body.page-home .rb-hero-work-note{
  position:absolute!important;
  z-index:4!important;
  left:18px!important;
  bottom:8px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  color:#403930!important;
  -webkit-text-fill-color:#403930!important;
  font:800 .72rem/1.2 var(--body)!important;
}
body.page-home .rb-hero-work-note>span{
  width:8px!important;
  height:8px!important;
  border-radius:50%!important;
  background:var(--orange)!important;
  box-shadow:0 0 0 6px rgba(200,80,26,.12)!important;
}

/* ---------- Réalisations de la home : 2 x 2, images dominantes ---------- */
body.page-home .rb-work-section .rb-section-head{
  align-items:end!important;
}
body.page-home .rb-projects--real{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:20px!important;
  align-items:stretch!important;
}
body.page-home .rb-projects--real .rb-project{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  overflow:hidden!important;
  border-radius:34px!important;
  background:rgba(255,253,247,.065)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 24px 58px rgba(0,0,0,.10)!important;
}
body.page-home .rb-projects--real .rb-project__media{
  position:relative!important;
  display:block!important;
  min-height:300px!important;
  padding:0!important;
  overflow:hidden!important;
  text-decoration:none!important;
  background:#241A14!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  isolation:isolate!important;
}
body.page-home .rb-projects--real .rb-project__media:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  background:linear-gradient(180deg,rgba(17,16,14,.01) 28%,rgba(17,16,14,.12) 56%,rgba(17,16,14,.78) 100%)!important;
  pointer-events:none!important;
}
body.page-home .rb-projects--real .rb-project__media img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:top center!important;
  transition:transform .35s ease,filter .35s ease!important;
}
body.page-home .rb-projects--real .rb-project__media>span{
  position:absolute!important;
  z-index:2!important;
  left:18px!important;
  bottom:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:32px!important;
  max-width:calc(100% - 36px)!important;
  padding:0 11px!important;
  border-radius:999px!important;
  background:rgba(17,16,14,.72)!important;
  border:1px solid rgba(255,255,255,.13)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font:800 .69rem/1 var(--body)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
body.page-home .rb-projects--real .rb-project__media:hover img{
  transform:scale(1.02)!important;
  filter:saturate(1.05) contrast(1.02)!important;
}
body.page-home .rb-projects--real .rb-project__body{
  display:flex!important;
  flex:1!important;
  flex-direction:column!important;
  padding:24px!important;
}
body.page-home .rb-projects--real .rb-project__body h3{
  margin:0!important;
  font-size:clamp(1.55rem,2.2vw,2.25rem)!important;
}
body.page-home .rb-projects--real .rb-project__body p{
  margin:13px 0 0!important;
  font-size:.95rem!important;
  line-height:1.58!important;
}
body.page-home .rb-projects--real .rb-project__body>a{
  margin-top:auto!important;
  padding-top:20px!important;
}
body.page-home .rb-projects-footer{
  display:flex!important;
  justify-content:center!important;
  margin-top:28px!important;
}
body.page-home .rb-btn--light-on-dark{
  background:#FFF9EF!important;
  border-color:#FFF9EF!important;
  color:#17110E!important;
  -webkit-text-fill-color:#17110E!important;
}
body.page-home .rb-btn--light-on-dark:hover{
  background:var(--orange)!important;
  border-color:var(--orange)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

@media(max-width:1180px){
  body.page-home .rb-hero__visual--work{
    min-height:480px!important;
    max-width:720px!important;
  }
  body.page-home .rb-hero-site--main{
    width:82%!important;
  }
  body.page-home .rb-hero-site--float{
    width:48%!important;
    right:5%!important;
  }
}
@media(max-width:720px){
  body.page-home .rb-hero__visual--work{
    min-height:410px!important;
    margin-top:4px!important;
  }
  body.page-home .rb-hero-site--main{
    width:94%!important;
    padding:9px!important;
    border-radius:23px!important;
    transform:rotate(-1deg)!important;
  }
  body.page-home .rb-hero-browser{
    border-radius:13px!important;
  }
  body.page-home .rb-hero-browser__bar{
    height:28px!important;
  }
  body.page-home .rb-hero-browser img{
    height:230px!important;
  }
  body.page-home .rb-hero-site--float{
    width:57%!important;
    right:0!important;
    bottom:44px!important;
    padding:7px!important;
    border-radius:18px!important;
  }
  body.page-home .rb-hero-site--float .rb-hero-browser img{
    height:125px!important;
  }
  body.page-home .rb-hero-site>strong{
    min-height:28px!important;
    margin-top:7px!important;
    font-size:.62rem!important;
  }
  body.page-home .rb-hero-work-note{
    left:10px!important;
    bottom:8px!important;
    max-width:80%!important;
    font-size:.66rem!important;
  }
  body.page-home .rb-projects--real{
    grid-template-columns:1fr!important;
  }
  body.page-home .rb-projects--real .rb-project__media{
    min-height:245px!important;
  }
  body.page-home .rb-projects--real .rb-project{
    border-radius:28px!important;
  }
  body.page-home .rb-projects--real .rb-project__body{
    padding:20px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.page-home .rb-projects--real .rb-project__media img{
    transition:none!important;
  }
}
