@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&display=swap');


:root {
    --primary-color: #904AF2;
    --secondary-color: #6e6a64;
    --muted: #f5f6f8;
    --card-border: #ececec;
    --text: #222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--secondary-color);
}

main {
    .hero--section {
        margin-bottom: 80px;

        .hero--container {
            background-image: url(img/chien_heureux_en_promenade.jpg);
            height: 80vh;
            width: 100%;
            background-size: cover;
            background-position: center;
            position: relative;


            .hero--text--container {
                background-color: rgba(0, 0, 0, 0.192);
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
                display: inline-block;
                margin: auto;
                padding-top: 45vh;
                padding-left: 80px;

                p {
                    max-width: 50%;
                    font-size: 50px;
                    font-weight: 900;
                    color: #ffffff;
                    text-shadow: #333 2px 2px 4px;
                    font-family: 'Oswald', sans-serif;
                }

                a {
                    display: inline-block;
                    margin-top: 20px;
                    padding: 10px 20px;
                    background-color: var(--primary-color);
                    color: #fff;
                    text-decoration: none;
                    box-shadow: #333 2px 2px 4px;
                    font-family: 'Oswald', sans-serif;
                    font-weight: 600;
                    text-transform: uppercase;

                    &:hover {
                        background-color: #782ed6;
                    }
                }
            }
        }
    }

    .services--section {
        text-align: center;
        padding: 0 120px 80px 120px;

        h2 {
            font-size: 3rem;
            margin-bottom: 80px;
            color: #ffffff;
            text-shadow: #333 2px 2px 4px;
            text-transform: uppercase;
        }

        .services--container {
            display: flex;
            justify-content: space-around;
            gap: 40px;

            .service--item {
                background-color: #f8f9fa;
                padding: 20px;
                width: 30%;
                box-shadow: #333 2px 2px 6px 0px;

                img {
                    width: 60px;
                    height: 60px;
                    margin-bottom: 15px;
                }

                h3 {
                    margin-bottom: 15px;
                    color: #333;
                }

                p {
                    color: #666;
                }
            }
        }
        
        .services--button {
            display: inline-block;
            margin-top: 40px;
            padding: 10px 20px;
            background-color: white;
            color: #333;
            text-decoration: none;
            font-family: 'Oswald', sans-serif;
            font-weight: 600;
            text-transform: uppercase;
            box-shadow: #333 2px 2px 4px;

            &:hover {
                background-color: rgb(184, 184, 184);
                color: var(--primary-color);
            }
        }
    }
}

/* Responsive adjustments for main content, hero, services, forms and avis */
@media (max-width: 1024px) {

    .hero--section .hero--container {
        height: 60vh;
    }

    .hero--text--container {
        padding-top: 55vh !important;
        padding-left: 40px !important;
    }

    .hero--text--container p {
        font-size: 18px;
        max-width: 80% !important;
    }

    .services--section {
        padding: 0 40px 60px 40px;
    }
}

@media (max-width: 768px) {


    .hero--section .hero--container {
        height: 60vh !important;
        background-position: center top;
    }

    .hero--text--container {
        padding-top: 40vh !important;
        padding-left: 20px !important;
    }

    .hero--text--container p {
        font-size: 20px !important;
        max-width: 80% !important;
    }

    .services--container {
        flex-direction: column;
        gap: 20px;
        padding: 0 12px;
    }

    .service--item {
        width: 100% !important;
    }

    .services--section {
        padding: 0 12px 40px 12px !important;
    }

    .form--avis--section, .contact--section {
        padding: 20px !important;
    }

    .form--avis, .contact--form {
        width: 100%;
    }

    .avis--section, .form--avis--section {
        padding: 20px !important;
    }

    .avis--container {
        padding: 0 6px;
    }

    .avis--card {
        padding: 16px;
    }
}