/* Hero Kastor — dégradé rouge centré → blanc
   (sans !important pour laisser l'image de fond d'une fiche maison prioritaires) */
.page-header.bg-section:not([style*="background-image"]),
.page-header.contact-page-header-compact:not([style*="background-image"]) {
  background: linear-gradient(90deg,
    #ffffff 0%,
    #fce8e9 8%,
    #f0a0a5 18%,
    #e0454d 32%,
    #E30613 50%,
    #e0454d 68%,
    #f0a0a5 82%,
    #fce8e9 92%,
    #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.page-header.bg-section:not([style*="background-image"])::before,
.page-header.contact-page-header-compact:not([style*="background-image"])::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,0.06) 28%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.06) 72%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.page-header .page-header-box,
.page-header .container,
.page-header h1 {
  position: relative;
  z-index: 1;
}
.page-header h1,
.page-header .page-header-box h1 {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}


/* Visite virtuelle 360° — Photo Sphere Viewer */
.kastor-360-block{
  margin-top:18px;
}
.kastor-360-viewer{
  width:100%;
  height:clamp(360px,58vw,620px);
  overflow:hidden;
  border-radius:18px;
  background:#111;
  box-shadow:0 16px 40px rgba(0,0,0,.12);
}
.kastor-360-help{
  margin:10px 2px 0;
  color:#6b7280;
  font-size:14px;
  line-height:1.55;
}
.kastor-virtual-subtitle{
  margin:26px 0 12px;
  font-size:19px;
  line-height:1.3;
}
.kastor-virtual-video.has-panorama{
  margin-top:12px;
}
.kastor-360-viewer .psv-navbar{
  background:rgba(17,17,17,.72);
}
@media (max-width:767px){
  .kastor-360-viewer{
    height:420px;
    border-radius:14px;
  }
  .kastor-360-help{
    font-size:13px;
  }
}


.kastor-360-tour{
  display:grid;
  gap:18px;
}
.kastor-360-tour__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.kastor-360-tour__eyebrow{
  margin:0 0 6px;
  color:#c50f1a;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.kastor-360-tour__title{
  margin:0;
  font-size:24px;
  line-height:1.25;
}
.kastor-360-tour__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:#fff1f2;
  color:#b60611;
  font-size:13px;
  font-weight:700;
}
.kastor-360-tour__note{
  margin:0;
  padding:14px 16px;
  border-left:4px solid #E30613;
  background:#fff8f8;
  color:#4b5563;
  border-radius:12px;
  line-height:1.6;
}
.kastor-360-tour__meta{
  display:grid;
  gap:6px;
  padding:16px 18px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
}
.kastor-360-tour__level{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:10px;
}
.kastor-360-tour__scene-title{
  display:block;
  font-size:22px;
  line-height:1.2;
  color:#111827;
}
.kastor-360-tour__scene-description{
  margin:0;
  color:#4b5563;
  line-height:1.65;
}
.kastor-360-tour__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.kastor-360-link-btn,
.kastor-360-tour__empty{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  color:#111827;
  font-weight:600;
}
.kastor-360-link-btn{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kastor-360-link-btn:hover{
  transform:translateY(-1px);
  border-color:#E30613;
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}
.kastor-360-link-btn span:first-child{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#E30613;
  color:#fff;
  font-size:15px;
  font-weight:700;
}
.kastor-360-tour__scenes{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.kastor-360-scene-btn{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-height:66px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  text-align:left;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.kastor-360-scene-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(0,0,0,.08);
  border-color:#E30613;
}
.kastor-360-scene-btn.is-active{
  background:#fff4f4;
  border-color:#E30613;
  box-shadow:0 12px 24px rgba(227,6,19,.10);
}
.kastor-360-scene-btn__step{
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#111827;
  color:#fff;
  font-size:14px;
  font-weight:700;
}
.kastor-360-scene-btn.is-active .kastor-360-scene-btn__step{
  background:#E30613;
}
.kastor-360-scene-btn__text{
  display:grid;
  gap:4px;
}
.kastor-360-scene-btn__text strong{
  color:#111827;
  font-size:15px;
  line-height:1.3;
}
.kastor-360-scene-btn__text small{
  color:#6b7280;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
@media (max-width:767px){
  .kastor-360-tour__title{
    font-size:21px;
  }
  .kastor-360-tour__scene-title{
    font-size:20px;
  }
  .kastor-360-tour__scenes{
    grid-template-columns:1fr;
  }
  .kastor-360-link-btn,
  .kastor-360-tour__empty{
    width:100%;
    justify-content:flex-start;
  }
}
