:root {
    --yellow: #ffb545;
    --orange: #fe7f14;
    --red: #fe4411;
    --lightGray: #f5f5f5;
    --mediumGray: #e5e5e5;
    --darkGray: #7f7f7f;
    --white: #ffffff;
    --black: #111111;
    --heading: "Open Sans", sans-serif;
    --body: "Open Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--black);
    background: var(--white);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2 {
    margin: 0;
    font-family: var(--heading);
    font-weight: 300;
    line-height: 1.3;
    text-wrap: balance;
}

p {
    margin: 0;
}

address {
    font-style: normal;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 5px;
    border-radius: 2px;
}

.container {
    width: min(100% - 2.5rem, 63rem);
    margin-inline: auto;
}

.site-header {
    padding-block: 1rem;
    background: var(--lightGray);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.language-switch {
    display: flex;
    gap: 0.25rem;
}

.language-switch__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-bottom: 2px solid transparent;
    color: var(--black);
}

.language-switch__link[aria-current="page"] {
    border-bottom-color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

.brand {
    width: 15.5rem;
    height: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.hero__intro {
    z-index: 1;
    grid-area: 1 / 1;
    align-self: start;
    padding-block: 2rem 5rem;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--white) 96%, transparent), color-mix(in srgb, var(--white) 88%, transparent) 65%, transparent);
}

.hero__intro .container {
    display: grid;
    gap: 1rem;
}

.hero__visual {
    grid-area: 1 / 1;
    min-height: 26rem;
    background-color: var(--mediumGray);
    background-image: url("media/banniere-accueil.jpg");
    background-position: 32% center;
    background-size: cover;
}

.hero h1 {
    max-width: 20ch;
    font-size: 2rem;
}

.hero h1 span {
    font-weight: 600;
}

.hero__intro p {
    max-width: 60ch;
    font-size: 0.875rem;
}

.hero__services {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 50rem;
    margin: -3rem auto 2rem;
    padding: 0;
    list-style: none;
    color: var(--black);
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 1.5rem 0.25rem;
}

.service--operations {
    background: var(--yellow);
}

.service--logistics {
    background: var(--orange);
}

.service--information {
    background: var(--red);
}

.service__name {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

.service__icon {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--white);
    object-fit: contain;
}

.notice {
    padding-block: 3.5rem;
    border-top: 0.625rem solid var(--white);
    background: var(--lightGray);
    text-align: center;
}

.notice__inner {
    max-width: 48rem;
}

.notice h2 {
    font-size: 1.875rem;
    font-weight: 600;
}

.notice h2::after {
    display: block;
    width: 3.5rem;
    height: 3px;
    margin: 1.5rem auto;
    background: var(--orange);
    content: "";
}

.notice p + p {
    margin-top: 1rem;
}

.contact-links {
    display: grid;
    width: fit-content;
    max-width: 100%;
    margin: 1.5rem auto 0;
    padding-left: 1rem;
    border-left: 3px solid var(--orange);
    text-align: left;
}

.contact-links__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.375rem;
}

.contact-links a,
.site-footer address a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--orange);
    font-weight: 600;
}

.partners {
    padding-block: 1.75rem;
}

.partners__inner,
.partners__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.partners h2 {
    font-size: 1.25rem;
}

.partners__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.partners__logo {
    height: 3.5rem;
    object-fit: contain;
}

.partners__logo--stiq {
    width: 6rem;
}

.partners__logo--kainexus {
    width: 9rem;
}

.site-footer {
    background: var(--mediumGray);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding-block: 2rem;
    border-top: 2px solid var(--red);
}

.site-footer__contact {
    text-align: center;
}

.site-footer h2 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.site-footer address {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer__copyright {
    padding-block: 0.75rem;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

@media (min-width: 36rem) {
    .hero__visual {
        min-height: 28rem;
        background-position: center;
    }

    .service {
        padding-block: 1.75rem;
    }

    .service__name {
        font-size: 0.875rem;
    }

    .service__icon {
        width: 6rem;
        height: 6rem;
        padding: 0.75rem;
    }

}

@media (min-width: 60rem) {
    .hero__intro {
        display: flex;
        align-items: center;
        align-self: stretch;
        padding-block: 3rem 6rem;
        background: linear-gradient(to right, transparent 20%, color-mix(in srgb, var(--white) 92%, transparent) 60%);
    }

    .hero__intro .container {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 3rem;
    }

    .hero__intro h1,
    .hero__intro p {
        grid-column: 2;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero__intro p {
        font-size: 1rem;
    }

    .service__name {
        font-size: 1rem;
    }

    .notice {
        padding-block: 4.5rem;
    }

    .notice h2 {
        font-size: 2.25rem;
    }

    .site-footer__inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .site-footer__contact,
    .site-footer address {
        text-align: left;
        align-items: flex-start;
    }
}
