@font-face {

    font-family: "Rastanty";
    src: url("../font/rastanty-cortez.ttf");

}

:root {

    --primary: #41BAC1;
    --secondary: #FFEA09;
    --dark: #252858;
    --light: #F7F9FC;
    --site-width: min(70%, 1160px);

}

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

a:link:not(.btn),
a:visited:not(.btn) {
    color: var(--primary) !important;
}

body {

    font-family: 'Montserrat', sans-serif;
    background: white;
    color: var(--dark);

}

.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0 0 0.5rem 0;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #FFEA09;
    outline-offset: 3px;
}

.btn {
    display: inline-block;
    cursor: pointer;
    padding: 18px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 40px;
    font-weight: 600;
    transition: .3s;
    border: 0;
}

#copyNotification {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    z-index: 9999;
    pointer-events: none;
}

.secondary-text {
    color: var(--secondary);
}

header {

    width: var(--site-width);
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px 0;

}

.logo {

    font-family: "Rastanty";
    font-size: 2rem;
    color: var(--dark);

}

nav {

    display: flex;
    gap: 35px;

}

nav a {

    text-decoration: none;
    color: var(--dark) !important;
    font-weight: 500;
    transition: .3s;
}

nav a:not(.active),
nav a:link:not(.active),
nav a:visited:not(.active) {
    color: var(--dark) !important;
}

nav a:hover,
nav a.active {
    color: var(--primary) !important;
}

nav a:focus-visible {
    outline: 3px solid #FFEA09;
    outline-offset: 3px;
}

.hero {

    width: var(--site-width);
    margin: auto;

    min-height: 80vh;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;

}

.hero h1 {

    font-family: "Rastanty";
    /* font-family: "Montserrat"; */
    font-size: 3.6rem;
    line-height: 1.1;
    margin-bottom: 30px;

}

.hero h1.long {
    font-size: 2.8rem;
    line-height: 0.8;
}

.hero p {

    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 35px;

}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 300px;
    margin: auto;
}

.btn:hover {

    background: var(--dark);

}

.services {

    padding: 120px 0;

    background: var(--light);

    display: flex;

    flex-direction: column;

    align-items: center;

}

.services h2 {

    width: var(--site-width);

    text-align: center;

    font-family: "Rastanty";

    font-size: 3rem;

    margin-bottom: 70px;

}

.cards {

    width: var(--site-width);

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;

}

.cards article,
.particuliers article,
.entreprises-text article {

    background: white;

    padding: 45px;

    border-radius: 35px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.entreprises-text article {
    justify-content: center;
}

article>p {
    margin: 10px 0;
}


.cards h3 {

    margin-bottom: 20px;

}

.cards p {

    line-height: 1.8;

}

.entreprises,
.apropos,
.particuliers {

    background: var(--light);

    padding: 120px 0;

    width: 100%;

    margin: 0;

    display: flex;

    justify-content: center;

    align-items: center;
    position: relative;
}

.apropos {
    align-items: flex-start;
}

.apropos-image {

    flex: 0 0 calc(var(--site-width) / 2);

    display: flex;
    justify-content: center;
}

.apropos-text {

    flex: 0 0 calc(var(--site-width) / 2);
}

.apropos-text p {

    margin: 0 0 20px 0;
}

.remerciements {
    font-size: 0.8rem;
}

.apropos-text h2 {
    margin-top: 40px;
    font-family: "Rastanty";
    font-size: 2.4rem;
}

.apropos-text ul li {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.apropos-text ul li img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.apropos-text ul li a:first-child {
    margin-right: 8px;
}

.entreprises-text {

    flex: 0 0 var(--site-width);

    padding: 0 35px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 40px;

}

.two-columns {
    grid-column: span 2;
}

article.flex-row,
.flex-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.flex-row>* {
    margin: 0 20px 0 20px !important;
}

.article-picture img {
    width: 140px;
    height: 140px;
}

.particuliers-text {

    flex: 0 0 var(--site-width);

    padding: 0 35px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 40px;

}

.entreprises h2,
.particuliers h2 {

    font-family: "Rastanty";

    font-size: 3rem;

    margin-bottom: 30px;

}

.entreprises p {

    line-height: 1.9;

    margin-bottom: 20px;

}

.legal p span {
    margin: 0 30px;
}

.legal a:link,
.legal a:visited {
    color: white !important;
}

.legal a:hover {
    color: var(--primary) !important;
}


footer {

    padding: 40px;

    text-align: center;

    background: var(--dark);

    color: white;

}

@media(max-width:900px) {

    .two-columns {
        grid-column: span 1;
    }

    .flex-row {
        flex-direction: column;
    }

    .hero {

        grid-template-columns: 1fr;

    }

    .entreprises-text {

        grid-template-columns: 1fr;

        padding: 0 !important;
    }

    .cards {

        grid-template-columns: 1fr;

    }

    .particuliers-text {
        grid-template-columns: 1fr;
    }

    header {

        flex-direction: column;

        gap: 25px;

    }

    nav {

        flex-wrap: wrap;

        justify-content: center;

    }

    .hero h1 {

        font-size: 3rem;

    }

    footer p>* {
        display: block;
        margin: 8px 0 !important;
    }

    .hero-content .btn {
        margin-bottom: 35px;
    }

    .apropos {
        flex-direction: column;
        align-items: center;
        padding: 45px;
    }

    .apropos-image {
        margin-bottom: 45px;
    }

    .article-picture img {
        width: 100px;
        height: 100px;
    }
}