:root {
    --g1: linear-gradient(35deg, orange, rgb(255, 136, 0));
}

/* =========================
   RESET
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================
   TITRES
========================= */

h2 {
    margin-top: 5vh;
    text-align: center;
    font-size: clamp(2rem, 5vw, 4rem);
}

/* =========================
   GRID
========================= */

.grid {
    margin-top: 3vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-inline: 15px;
}

/* =========================
   TAGS
========================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 2vh;
    padding: 10px;

    border-radius: 8px;

    background: linear-gradient(35deg, #222425, #434546);
}

.tags span {
    font-size: 0.75rem;
    font-weight: 300;
    color: white;
    text-shadow: none;

    padding: 4px 8px;
    border-radius: 5px;
}

.tags .green {
    border: 2px solid green;
    background: rgba(0, 93, 0, 0.2);
}

.tags .red {
    border: 2px solid rgb(128, 0, 0);
    background: rgba(93, 0, 0, 0.2);
}

/* =========================
   SERVICE CARD
========================= */

.service {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: clamp(20px, 5vw, 50px);
    border: 1px solid var(--c1);
    border-bottom-right-radius: 25%;

    text-shadow: 2px 0 5px rgb(0, 0, 0);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service::before {
    content: "";

    position: absolute;
    top: -15px;

    width: 30px;
    height: 30px;

    background: var(--c1);

    transform: rotate(45deg);
}

.service .content {
    width: min(100%, 500px);

    min-height: 300px;
    height: auto;

    padding: clamp(20px, 4vw, 60px) 15px;

    border-radius: 10px;

    backdrop-filter: blur(5px);

    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.big {
    padding: clamp(40px, 8vw, 100px) 15px !important;
}

.service .content p {
    color: white;
    text-shadow: 2px 0 5px var(--c1);
}

/* =========================
   TITRES / ICONES
========================= */

h3 {
    margin-top: 2vh;

    color: white;
    text-shadow: 2px 0 5px var(--c1);

    font-size: clamp(1.2rem, 3vw, 2rem);
}

.service i {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* =========================
   BUTTON
========================= */

.service button {
    margin-top: 1vh;

    padding: 10px 20px;

    border-radius: 5px;
    border: 2px solid var(--c1);

    background: var(--c1);

    color: white;

    text-shadow: 2px 0 5px rgb(0, 0, 0);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

/* =========================
   LINKS
========================= */

.links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 20px;

    margin-top: 2vh;
}

.links a {
    text-decoration: none;
}

.part {
    display: flex;
    flex-direction: column;
    align-items: center;

    transition: 0.2s ease;
}

.part i {
    font-size: 1.3rem;
}

.part span {
    color: white;
    font-style: italic;
    font-size: 0.8rem;
}

/* =========================
   BACKGROUNDS
========================= */

.service1 {
    background: url("./service1.png") center/cover no-repeat;
}

.service2 {
    background: url("./service2.png") bottom/cover no-repeat;
}

.service3 {
    background: url("./service3.jpeg") center/cover no-repeat;
}

.service4 {
    background: url("./service4.jpg") center/cover no-repeat;
}

.service5 {
    background: url("./service5.jpg") center/cover no-repeat;
}

.service6 {
    background: url("./service6.jpg") center/cover no-repeat;
}

.service7 {
    background: url("./service3.jpeg") center/cover no-repeat;
}

.service8 {
    background: url("./favicon.png") center/cover no-repeat;
}

.service9 {
    background: url("./service9.png") center/cover no-repeat;
}

.service10 {
    background: url("./service10.png") center/cover no-repeat;
}

.service11 {
    background: url("./service11.jpeg") center/cover no-repeat;
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: auto;

    padding: 15px;

    text-align: center;

    background: var(--c1);
    color: white;
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1000px) {

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding-inline: 40px;
    }

    .service:hover {
        transform: scale(1.02);

        box-shadow: 0 0 25px var(--c1);
    }

    .service button {
        background: transparent;
    }

    .service button:hover {
        background: var(--c1);
        cursor: pointer;
    }

    .part:hover {
        transform: translateY(-3px);

        text-shadow: 2px 0 2px white;
    }

    .service::before {
        top: -10px;
    }
}   