/* Carrousel accueil ImmoTempo */
.home-visual.carousel-visual{isolation:isolate;background:#e4eee7}
.carousel-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.1s ease;pointer-events:none;z-index:0}
.carousel-slide.is-active{opacity:1;pointer-events:auto;z-index:1}
.carousel-slide img{width:100%;height:100%;object-fit:cover;display:block;animation:carousel-zoom 12s ease-in-out infinite alternate}
.carousel-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,rgba(5,32,26,.73) 100%);pointer-events:none}
.carousel-caption{position:absolute;left:24px;right:24px;bottom:65px;color:white;z-index:2;text-shadow:0 1px 6px #17392b66}
.carousel-caption strong{display:block;font-family:Manrope,'DM Sans',sans-serif;font-size:clamp(19px,2.1vw,27px);line-height:1.2;margin-bottom:8px}
.carousel-caption p{font-size:14px;line-height:1.45;margin:0;max-width:440px}
.carousel-visual .home-example{z-index:3;pointer-events:none}
.carousel-controls{position:absolute;left:0;right:0;bottom:14px;z-index:5;display:flex;align-items:center;justify-content:center;gap:9px}
.carousel-dot{width:10px;height:10px;border:0;border-radius:50%;background:#ffffff8c;padding:0;cursor:pointer;transition:width .2s,background .2s}
.carousel-dot.is-active{width:26px;border-radius:10px;background:#fff}
.carousel-arrow{position:absolute;top:52%;z-index:5;transform:translateY(-50%);width:36px;height:36px;border:1px solid #ffffffa0;border-radius:50%;background:#ffffffd9;color:#125d4c;cursor:pointer;font-size:26px;line-height:1}
.carousel-arrow.prev{left:10px}.carousel-arrow.next{right:10px}
.carousel-arrow:focus-visible,.carousel-dot:focus-visible{outline:3px solid #7fe3bc;outline-offset:3px}
@keyframes carousel-zoom{from{transform:scale(1)}to{transform:scale(1.045)}}
@media(max-width:600px){.carousel-caption{left:19px;right:19px;bottom:55px}.carousel-caption strong{font-size:19px}.carousel-caption p{font-size:12px}.carousel-visual .home-example{transform:scale(.84);transform-origin:top right;right:9px;top:9px}}
@media(prefers-reduced-motion:reduce){.carousel-slide,.carousel-dot{transition:none}.carousel-slide img{animation:none}}

/* ImmoTempo : affichage intégral des illustrations */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    animation: none;
}

.carousel-slide {
    background: #e4eee7;
}


/* Bandeau projet indépendant du carrousel */
.home-media-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.home-project-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e3eae5;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(20,55,40,.07);
}
.home-project-title {
    flex-basis: 100%;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #244238;
}
.home-project-values {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    flex: 1 1 245px;
}
.home-project-values div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-project-values strong {
    font-size: clamp(14px,1.4vw,18px);
    white-space: nowrap;
    color: #142824;
}
.home-project-values span {
    font-size: 11px;
    color: #69746e;
}
.home-project-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.home-project-match {
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-project-match span {
    font-size: 11px;
    font-weight: 800;
}
.home-project-match strong {
    font-size: 24px;
    color: #28735d;
}
.home-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 9px;
    background: #126b59;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.home-project-link:hover {background:#0b5143}
.home-media-column .home-visual {width:100%;flex:1;min-height:360px}
html {scroll-behavior:smooth}
#sim-title {scroll-margin-top:90px}

@media(max-width:600px) {
    .home-project-banner {padding:14px;gap:12px}
    .home-project-values {flex-basis:100%;gap:8px}
    .home-project-values strong {font-size:15px}
    .home-project-action {
        width:100%;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }
    .home-project-link {font-size:11px;padding:10px}
    .home-media-column .home-visual {min-height:330px}
}
@media(prefers-reduced-motion:reduce) {
    html {scroll-behavior:auto}
}

/* ImmoTempo - Carrousel plein cadre */
.home-media-column .home-visual.carousel-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 360px;
}

.carousel-visual .carousel-slide {
    position: absolute;
    inset: 0;
}

.carousel-visual .carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: none;
}

@media (max-width: 600px) {
    .home-media-column .home-visual.carousel-visual {
        min-height: 330px;
    }
}
