@font-face {
    font-display: swap;
    font-family: "Tinos";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/tinos-v24-latin-regular.woff2") format("woff2");
}

/************** Global **************/

:root {
    --orange: #ff8210;
    --light-blue: #11809b;
    --white: #ffffff;
    --black: #000000;
    --light-grey: #eceff1;

    --txt: var(--black);
    --bg: var(--white);
    --bg-second: var(--light-grey);
}

body {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
        sans-serif;
    font-size: clamp(1rem, 0.9143rem + 0.4286vw, 1.2rem);
    line-height: 1.625;
    font-weight: 400;
    font-style: normal;
    color: var(--txt);
    background-color: var(--bg);
    text-align: center;
    min-height: 100vh;
    position: relative;
}

/* @media screen and (max-width: 35.99em) {
    body {
        text-align: center;
    }
} */

/************** Fonts **************/

:is(h1, h2, h3, h4, .h1, .h2, .h3, .h4) {
    font-weight: 900;
    color: var(--light-blue);
}

h1,
.h1 {
    font-family: Tinos, serif;
    font-size: clamp(2.5rem, 1.796rem + 3.005vw, 3rem);
    line-height: 1.2;
    letter-spacing: 0.5rem;
}

h2,
.h2 {
    font-size: clamp(1.5rem, 1.2143rem + 1.4286vw, 1.8rem);
    line-height: 1.2;
    font-weight: 700;
}

h3,
.h3 {
    color: var(--orange);
    font-size: clamp(1.3rem, 1.3571rem + 0.7143vw, 1.5rem);
}

a {
    color: var(--light-blue);
    /* text-decoration: none; */
}

.bold-links {
    color: var(--light-blue);
    font-weight: 700;
    text-decoration: underline;
}

.bold-links:hover {
    color: var(--orange);
}

.title-sp {
    letter-spacing: 0.3rem;
    padding-block-start: 1rem;
}

.orange {
    color: var(--orange);
}

.subtitle {
    color: var(--orange);
    font-style: italic;
}

.txt-bold {
    font-weight: 600;
}

.subtitle-bold {
    font-weight: 700;
}

/************** Layout **************/

.container {
    margin-inline: auto;
    width: calc(100% - 1.5rem - 1.5rem);
}

@media screen and (min-width: 36em) {
    /* eq 576px */
    .container {
        max-width: 33.75rem; /* équivalent 540px */
    }
}

@media screen and (min-width: 48em) {
    /* eq 768px */
    .container {
        max-width: 45rem; /* eq 720px */
    }
    .container-content-sp {
        padding-inline: 4rem;
    }
}

@media screen and (min-width: 62em) {
    /* eq 992px */
    .container {
        max-width: 60rem; /* eq 960px */
    }
    .container-content-sp {
        padding-inline: 8rem;
    }
}

@media screen and (min-width: 75em) {
    /* eq 1200px */
    .container {
        max-width: 71.25rem; /* eq 1140px */
    }
}

@media screen and (min-width: 90em) {
    /* eq 1440px */
    .container {
        max-width: 80rem; /* eq 1280px */
    }
    .container-content-sp {
        padding-inline: 14rem;
    }
}

main {
    display: grid;
    gap: 2rem;
}
/************** Components **************/
/************** Button **************/
.btn {
    background-color: var(--white);
    border: 0.0625rem solid var(--orange);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    transition: 0.5s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.btn:is(:hover, :focus) {
    background-color: var(--light-grey);
    transition: 0.5s ease-in-out;
}

.btn a {
    font-weight: 700;
    text-decoration: none;
}

/************** Back to top  **************/
.back2top {
    background-color: var(--bg-second);
}

.back2top .container {
    display: flex;
    justify-content: right;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
}

.back2top a {
    color: var(--orange);
    text-decoration: 1px underline var(--light-blue);
}

.back2top a:hover {
    color: var(--light-blue);
}

/************** Skip links **************/

.skip-links a {
    position: absolute;
    top: -100vh;
    left: 50%;
    display: inline-block;
    padding: 1rem;
    color: var(--bg);
    background-color: var(--txt);
    transform: translateX(-50%);
}

.skip-links a:focus {
    top: 0;
}

/************** Header **************/

.main-header {
    position: sticky;
    background-color: var(--light-grey);
    border-bottom: 0.125rem solid var(--orange);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 1rem;
    width: calc(100% - 1.5rem);
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    max-width: 25%;
}

.logo a {
    font-size: 2rem;
    text-transform: uppercase;
    text-decoration: none;
    font-family: Tinos, serif;
}

.logo span {
    color: var(--orange);
}

/************** Navigation **************/

.border {
    height: 0.125rem;
    width: 100%;
    background-color: #ff8210;
}

@media screen and (min-width: 62em) {
    .toggle-menu {
        display: none;
    }

    .main-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        transition: 0.3s;
    }

    .main-nav-link {
        /*font-weight: 700;*/
        text-transform: uppercase;
        display: flex;
        flex-direction: column;
    }

    .main-nav-link {
        text-decoration: none;
    }

    .main-nav-link:hover {
        color: var(--orange);
    }
}

/************** Banner section  **************/

.banner {
    min-height: 40vh;
    background-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.4) 100%
        ),
        url(../img/home3.avif);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.banner h1 {
    color: whitesmoke;
}

@media screen and (min-width: 62em) {
    .banner {
        min-height: calc(100vh - 6.9375rem);
    }
}
/************** About section  **************/

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

.about-content {
    display: grid;
    gap: 1rem;
}

@media screen and (min-width: 62em) {
    .about .container {
        gap: 2rem;
    }
}

@media screen and (min-width: 90em) {
    /* eq 1440px */
    .about .container {
        gap: 3rem;
    }

    .about-content {
        gap: 2rem;
    }
}

/************** Banner contact section **************/

.banner-contact {
    background-color: var(--light-grey);
}

.banner-contact .container {
    padding-block: 2rem;
    display: grid;
    gap: 2rem;
}

.banner-contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media screen and (min-width: 48em) {
    .banner-contact .banner-contact-links {
        gap: 2rem;
    }
}

@media screen and (min-width: 62em) {
    .banner-contact .banner-contact-links {
        gap: 3rem;
    }
}

.banner-contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/************** Services section  **************/

.services .container {
    padding-block-end: 2rem;
}

.services-list {
    padding-block-start: 2rem;
    display: grid;
    gap: 1rem;
}

.services-list-item {
    display: grid;
    gap: 1rem;
    border-bottom: 1px solid var(--light-blue);
    padding-block-end: 2rem;
}

.services-list-item:first-child {
    padding-block-start: 0;
}
.services-list-item:last-child {
    border-bottom: 0;
    padding-block-end: 0rem;
}

.service-img {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (min-width: 48em) {
    .services-list {
        gap: 3rem;
    }

    .services-list-item {
        padding-block-end: 2rem;
    }
}

@media screen and (min-width: 62em) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        padding-block: 3rem;
    }

    .services-list-item {
        border-bottom: 0;
        padding-block-end: 0rem;
    }

    .services-list-item:last-child {
        padding-block-end: 0;
    }

    .services-list-item p {
        text-align: start;
        font-size: 1.1rem;
    }
    .footer-contact {
        width: 100%;
        bottom: 0;
    }
}

/************** Footer  **************/
footer {
    border-top: 0.125rem solid var(--orange);
    background-color: var(--light-grey);
}

footer .container {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.8rem;
}

.socials-list {
    display: flex;
    gap: 2rem;
}

.socials-list-item:hover svg > path {
    fill: var(--orange);
}

@media screen and (min-width: 48em) {
    footer .container {
        padding: 1.2rem;
    }
}

.italic {
    font-style: italic;
}

/* TEST NAV */

@media screen and (max-width: 61.99em) {
    .toggle-menu {
        display: grid;
        padding: 0.5rem;
        border: 0;
        background-color: transparent;
    }

    .toggle-menu rect {
        transition: 0.3s;
    }

    .toggle-menu[aria-expanded="true"] rect:first-child {
        transform-origin: center;
        transform: rotate(45deg) translateY(0.375rem);
    }

    .toggle-menu[aria-expanded="true"] rect:nth-child(2) {
        opacity: 0;
    }

    .toggle-menu[aria-expanded="true"] rect:last-child {
        transform-origin: center;
        transform: rotate(-45deg) translateY(-0.375rem);
    }

    .main-nav-list-burger[hidden] {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: scaleY(0);
        transition: 0.3s;
    }

    .main-nav-list-burger {
        z-index: 1000;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: grid;
        align-content: start;
        gap: 2rem;
        background-color: var(--bg-second);
        height: calc(100dvh);
        transition: 0.5s;
        transform-origin: top;
        padding-inline-start: 1rem;
    }

    .main-nav-link {
        font-family: Fraunces, serif;
        font-size: 1.5rem;
        line-height: calc(32 / 24);
        font-weight: 900;
        color: var(--light-blue);
        text-decoration: none;
        transition: 0.3s;
    }
}
