/*================ RÉGLAGES GLOBAUX =================*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Satoshi", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

/*================================ HERO ================================*/
.services-hero {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 75vh;
    padding: 100px max(5%, calc((100% - 1400px) / 2));
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 5vw, 70px);
    overflow: hidden;
    background: #f5f8f9;
}

.services-hero::before,
.services-hero::after,
.hero-image::before {
    display: none;
}

/*================ CONTENU DU HERO =================*/
.hero-content,
.hero-image {
    min-width: 0;
    flex: 1 1 0;
    position: relative;
    z-index: 2;
}

.hero-tag {
    color: #5bbc82;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 650px;
    margin: 25px 0;
    color: #114051;
    font-size: clamp(42px, 4.5vw, 58px);
    font-weight: 400;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.hero-content h1 span {
    color: #5bbc82;
}

.hero-content p {
    max-width: 650px;
    margin: 0;
    color: #45556c;
    font-size: 20px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/*================ BOUTONS DU HERO =================*/
.hero-buttons {
    display: flex;
    margin-top: 45px;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons a {
    display: inline-flex;
    max-width: 100%;
    padding: 18px 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: #5bbc82;
    color: #fff;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .35s, transform .35s;
}

.hero-buttons a:hover {
    background: #49a86f;
    transform: translateY(-4px);
}

.hero-buttons a:focus-visible,
.btn-service:focus-visible,
.service-arrow:focus-visible,
.cta-btn:focus-visible,
.service-left ul li a:focus-visible {
    outline: 3px solid rgba(91, 188, 130, .45);
    outline-offset: 4px;
}

/*================ IMAGE DU HERO =================*/
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    box-shadow: none;
}

/*================ SERVICES =================*/
.service-category {
    display: grid;
    width: min(90%, 1200px);
    margin: 40px auto;
    padding: 2px;
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
    gap: clamp(40px, 6vw, 70px);
    align-items: start;
    border-radius: 25px;
    background: #fff;
    box-shadow: none;
}

.service-left,
.service-right {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
}

.service-left h2 {
    margin: 0 0 15px;
    color: #114051;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.service-left ul {
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.service-left li {
    margin: 24px 0;
    color: #45556c;
    font-size: 14px;
}

.service-left li::before {
    margin-right: 12px;
    color: #5bbc82;
    font-weight: 700;
}

.service-left ul li a {
    position: relative;
    display: inline-block;
    max-width: 100%;
    color: #45556c;
    font-size: 16px;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .3s;
}

.service-left ul li a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5bbc82;
    transition: width .4s;
}

.service-left ul li a:hover {
    color: #5bbc82;
}

.service-left ul li a:hover::after {
    width: 100%;
}

#service-description {
    transition: opacity .4s ease;
}

.btn-service {
    display: inline-flex;
    max-width: 100%;
    margin-top: 40px;
    padding: 16px 35px;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    border-radius: 50px;
    background: #5bbc82;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .3s;
}

.btn-service:hover {
    background: #114051;
}

.service-right > p {
    margin: 0 0 40px;
    color: #45556c;
    font-size: 19px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.service-gallery {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.service-gallery img {
    width: 100%;
    height: 220px;
    min-width: 0;
    object-fit: contain;
    background: #fff;
}

/*================ DESCRIPTION ET FLÈCHE =================*/
.service-content {
    display: flex;
    min-width: 0;
    margin-bottom: 40px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.service-description {
    min-width: 0;
    margin: 0;
    flex: 1 1 auto;
    color: #45556c;
    font-size: 19px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.service-arrow {
    display: flex;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    border: 2px solid #114051;
    border-radius: 50%;
    background: #fff;
    color: #114051;
    text-decoration: none;
    transition: background-color .3s, color .3s, border-color .3s;
}

.service-arrow i {
    color: inherit;
    font-size: 22px;
    transform: rotate(45deg);
}

.service-arrow:hover {
    border-color: #114051;
    background: #114051;
    color: #fff;
}

.service-arrow.hidden {
    display: none;
}

/*================ CTA =================*/
.cta {
    width: min(calc(100% - 30px), 1200px);

    margin-top: 100px;
    margin-right: auto;
    margin-bottom: 80px;
    margin-left: auto;

    padding: 50px 60px;

    border-radius: 20px;

    background: #114051;
}

.cta-content {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta h2 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cta-btn {
    display: inline-flex;
    max-width: 100%;
    padding: 15px 35px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50px;
    background: #fff;
    color: #114051;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .3s, color .3s, transform .3s;
}

.cta-btn:hover {
    background: #114051;
    color: #fff;
    transform: translateY(-3px);
}

/*================ SÉPARATEURS =================*/
.footer-divider,
.footer-dividerx {
    width: min(90%, 1200px);
    height: 1px;
    margin-right: auto;
    margin-left: auto;
    background: #000;
}

.footer-divider {
    margin-top: 40px;
    margin-bottom: 80px;
}

.footer-dividerx {
    margin-top: 45px;
    margin-bottom: 45px;
}




/* Desktop */
.service-left ul li a:hover{
    color:#5BBC82;
}

.service-left ul li a:hover::after{
    width:100%;
}


/* Mobile / tactile */
.service-left ul li a:active,
.service-left ul li a:focus{
    color:#5BBC82;
}

.service-left ul li a:active::after,
.service-left ul li a:focus::after{
    width:100%;
}



/*================ GRANDE TABLETTE =================*/
@media (max-width: 1200px) {
    .services-hero {
        padding: 80px 5%;
        gap: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .service-category {
        grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
        gap: 40px;
    }
}

/*================ TABLETTE =================*/
@media (max-width: 992px) {
    .services-hero {
        min-height: auto;
        padding: 70px 5%;
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        flex: none;
    }

    .hero-content h1 {
        max-width: 760px;
        margin-right: auto;
        margin-left: auto;
        font-size: 42px;
    }

    .hero-content p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        max-width: 550px;
    }

    .service-category {
        width: 90%;
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .service-left {
        text-align: center;
    }

    .btn-service {
        align-self: center;
    }

    .service-right > p {
        font-size: 17px;
    }

    .service-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*================ MOBILE =================*/
@media (max-width: 768px) {
    .services-hero {
        padding: 50px 20px;
        gap: 30px;
    }

    .hero-tag {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero-content h1 {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 32px;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-buttons {
        margin-top: 30px;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons a {
        width: 100%;
        padding: 15px 20px;
    }

    .hero-image img {
        border-radius: 15px;
    }

    .service-category {
        display: flex;
        width: calc(100% - 40px);
        margin: 40px auto;
        padding: 0;
        flex-direction: column;
    }

    .service-left,
    .service-right {
        width: 100%;
    }

    .service-left h2 {
        font-size: 30px;
    }

    .service-left li {
        margin: 18px 0;
    }

    .service-left ul li a {
        font-size: 15px;
    }

    .btn-service {
        width: 100%;
        padding: 15px 20px;
    }

    .service-content {
        flex-direction: column;
        gap: 25px;
    }

    .service-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .service-arrow {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

.service-gallery{

        display:grid;

        grid-template-columns:repeat(3, minmax(0, 1fr));

        gap:8px;

        width:100%;

    }


    .service-gallery img{

        width:100%;

        height:130px;

        min-width:0;

        object-fit:contain;

        background:#FFFFFF;

    }

    .cta {
        width: calc(100% - 30px);
        margin: 40px auto;
        padding: 35px 20px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta h2 {
        font-size: 24px;
    }

    .cta-btn {
        width: 100%;
        padding: 15px 20px;
    }

    .footer-divider,
    .footer-dividerx {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

/* Évite des blocs trop hauts sur les téléphones en mode paysage. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .services-hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-image img {
        max-height: 65vh;
    }
}

/*================ PETITS MOBILES =================*/
@media (max-width: 400px) {
    .services-hero {
        padding-right: 15px;
        padding-left: 15px;
    }

    .hero-content h1 {
        font-size: 27px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .service-category {
        width: calc(100% - 30px);
    }

    .service-left h2 {
        font-size: 26px;
    }

    .service-right > p {
        font-size: 14px;
    }

    .service-gallery{

        grid-template-columns:repeat(3, minmax(0, 1fr));

        gap:5px;

    }


    .service-gallery img{

        height:90px;

        object-fit:contain;

    }

    .cta h2 {
        font-size: 21px;
    }
}

/* Les effets de survol ne doivent pas rester bloqués sur écran tactile. */
@media (hover:none){

    .service-left ul li a:hover::after{
        width:0;
    }

    .service-left ul li a:active::after,
    .service-left ul li a:focus::after{
        width:100%;
    }

    .service-left ul li a:active,
    .service-left ul li a:focus{
        color:#5BBC82;
    }

}

/* Réduit les animations si l'utilisateur le demande. */
@media (prefers-reduced-motion: reduce) {
    .hero-buttons a,
    .service-left ul li a,
    .service-left ul li a::after,
    #service-description,
    .btn-service,
    .service-arrow,
    .cta-btn {
        transition: none;
    }
}
