/* Accueil. Complète style.css et realisations.css (boutons, bandeau final). Palette : #4fa9d3, #0F2454, #F3F7FA. */

/* ---------- Slider : voile plus lisible sur les vraies photos ---------- */
.home-3 .hero-single::before {
    background: linear-gradient(180deg, rgb(15 36 84 / 64%) 0%, rgb(15 36 84 / 38%) 100%);
    opacity: 1;
}

.home-3 .hero-single .hero-content .hero-btn {
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Services : photos de formats variés, cadrées pareil ---------- */
.home-3 .service-img img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Avis : on rapproche la section du bandeau final */
.home-3 .gr-area {
    padding-bottom: 40px;
}

/* ---------- Mosaïque "Nos réalisations" ---------- */
.hm-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 20px;
}

.hm-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgb(15 36 84 / 14%);
}

.hm-tile.is-large {
    grid-column: span 2;
    grid-row: span 2;
}

.hm-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.hm-tile:hover img {
    transform: scale(1.07);
}

.hm-tile-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 44px 20px 16px;
    background: linear-gradient(to top, rgb(15 36 84 / 85%), rgb(15 36 84 / 0%));
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- Étapes ---------- */
.hm-process {
    background:
        radial-gradient(circle at 90% 10%, rgb(79 169 211 / 28%) 0%, rgb(79 169 211 / 0%) 45%),
        linear-gradient(120deg, #0F2454 0%, #153a73 100%);
}

.hm-process .site-title.hm-light {
    color: #ffffff;
}

.hm-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hm-step {
    padding: 34px 26px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 20px;
    background: rgb(255 255 255 / 7%);
    transition: transform .35s ease, background .35s ease, border-color .35s ease;
}

.hm-step:hover {
    transform: translateY(-6px);
    border-color: #4fa9d3;
    background: rgb(255 255 255 / 11%);
}

.hm-step-num {
    display: block;
    margin-bottom: 14px;
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    color: #4fa9d3;
}

.hm-step h3 {
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.hm-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgb(255 255 255 / 82%);
}

/* ---------- Adaptation écrans ---------- */
@media (max-width: 991px) {
    .hm-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .hm-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .hm-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
    }

    .hm-tile.is-large {
        grid-column: auto;
        grid-row: span 1;
    }

    .hm-steps {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-tile img,
    .hm-step {
        transition: none;
    }

    .hm-tile:hover img,
    .hm-step:hover {
        transform: none;
    }
}
