/* Styles Globaux */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Amatic";
    src: url("./fonts/AmaticSC-Regular.ttf");
}

@font-face {
    font-family: "Amatic Bold";
    src: url("./fonts/Amatic-Bold.ttf");
}

@font-face {
    font-family: "Overlock";
    src: url("./fonts/Overlock-Regular.ttf");
}

@font-face {
    font-family: "Overlock Bold";
    src: url("./fonts/Overlock-Bold.ttf");
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    --header1: calc(2.8rem + 1vw);
    --header2: calc(3rem + 1vw);
    --header3: calc(2.6rem + 1vw);
    --header4: calc(2.2rem + 1vw);
    --text: calc(1.3rem + 1vw);
    --textsmall: calc(1.1rem + 1vw);
    --button: calc(1rem + 1vw);
    --textAmatic: calc(2.2rem + 1vw);
}

h1 {
    font-size: var(--header1);
}

li,
button,
label,
input,
a,
p {
    font-size: var(--text);
}

h2 {
    font-size: var(--header2);
}

h3 {
    font-size: var(--header3);
}

h4,
h5 {
    font-size: var(--header4);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
}

.flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body {
    animation: opening 1s ease-in-out forwards;
    font-family: "Overlock", sans-serif;
    background: rgb(83, 88, 90);
    background: -moz-linear-gradient(180deg, rgba(83, 88, 90, 1) 0%, rgba(151, 160, 163, 1) 40%, rgba(233, 236, 237, 1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(83, 88, 90, 1) 0%, rgba(151, 160, 163, 1) 40%, rgba(233, 236, 237, 1) 100%);
    background: linear-gradient(180deg, rgba(83, 88, 90, 1) 0%, rgba(151, 160, 163, 1) 40%, rgba(233, 236, 237, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#53585a", endColorstr="#e9eced", GradientType=1);
}

h1 {
    font-family: "Amatic", sans-serif;
    color: white;
}

/* Navigation */

.main-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #98b8c1;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
}

nav {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    min-height: 10vh;
    flex-wrap: wrap;
}

nav img {
    max-height: 8vh;
    margin-right: 2rem;
}

nav img:hover {
    opacity: .8;
}

nav a {
    color: white;
    font-size: var(--textAmatic);
    font-family: "Amatic bold", sans-serif;
    margin: 0rem 2rem 0rem 2rem;
}

nav ul {
    display: flex;
    flex: 1 1 40rem;
}

#logo {
    display: none;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 20rem;
}

.nav-links a:hover {
    color: whitesmoke;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Section Accueil */

.hero {
    min-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.container {
    margin: 4rem 2rem;
    max-width: 960px;
    background: whitesmoke;
    border-radius: 30px;
    box-shadow: 0px 10px 20px 10px rgb(83, 88, 90);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-introduction {
    text-align: center;
    flex: 1 1 30rem;
    margin: 2rem auto 4rem auto;
}

.hero-introduction h2 {
    font-family: "Amatic", sans-serif;
    margin: 0rem auto 2rem auto;
}

.hero-introduction h4 {
    font-family: "Amatic", sans-serif;
    font-weight: bold;
    font-style: italic;
    margin: 1rem auto 6rem auto;
}

.hero-introduction a {
    font-size: var(--button);
    border: none;
    border-radius: 30px;
    background: #53585a;
    color: white;
    padding: 1rem 3rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, .5);
}

.hero-introduction a:hover {
    color: yellowgreen;
}

.hero-image {
    flex: 1 1 30rem;
    padding: 2rem;
}

.hero-pl {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, .5);
}

/* Sectin A Propos */

.apropos {
    min-height: 100vh;
    max-width: 1200px;
    margin: 4rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
}

.apropos-text {
    margin: 3rem 2.5rem;
    padding: 3rem 2rem;
    flex: 1 1 50rem;
    background: whitesmoke;
    border-radius: 30px;
    box-shadow: 0px 10px 20px 10px rgb(83, 88, 90);
}

.osteo-text {
    text-align: center;
}

.apropos-text h3 {
    text-align: center;
    padding: 2rem;
}

.apropos-text p {
    font-size: var(--textsmall);
    line-height: 1.5;
    padding: 1rem;
}

.blanc {
    color: white;
}

.crimson {
    color: crimson;
}

/* Section Contact */

.contact {
    min-height: 80vh;
    max-width: 1200px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-info {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.contact h2 {
    font-family: "Amatic", sans-serif;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.contact h3 {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: "Amatic", sans-serif;
}

.contact-info img {
    margin: 2rem;
}

.contact-info p {
    margin: .8rem auto;
}

.contact-info a:hover {
    color: gray;
}

.rvbas {
    margin: 4rem auto;
}

.rvbas a {
    font-size: var(--button);
    border: none;
    border-radius: 30px;
    background: #53585a;
    color: white;
    padding: 1rem 3rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, .5);
}

.rvbas a:hover {
    color: yellowgreen;
}

.map {
    width: 100%;
    padding: 10px;
    text-align: center;
}

.map iframe {
    max-width: 700px;
    height: 400px;
    border: 7px solid #53585a;
    border-radius: 25px;
    margin: 1rem auto 3rem auto;
}

/* Footer */

footer {
    min-height: 6vh;
    background: #53585a;
    color: whitesmoke;
}

footer a {
    font-size: 2rem;
    color: whitesmoke;
}

footer a:hover {
    color: yellowgreen;
    text-shadow: 2px 2px rgb(0, 0, 1);
    transition: ease-in-out .1s;
}

footer p {
    font-size: 2rem;
    text-align: center;
    padding: 1rem;
}

/* Page Direction */

.direction {
    min-height: 100vh;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
}

.direction h2 {
    margin: 2rem;
    color: white;
}

.direction img {
    max-width: 95%;
    padding: 2rem;
    margin: 2rem;
    background-color: whitesmoke;
    border-radius: 2rem;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, .5);
}

/* Animations */

@keyframes opening {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Media Queries */

@media screen and (max-width: 800px) {
    nav {
        width: 90%;
        min-height: 9vh;
    }

    nav a {
        font-size: 2.5rem;
    }

    nav img {
        margin: 0;
        max-height: 6vh;
    }

    .direction img {
        max-width: 85%;
    }
}

@media screen and (max-width: 500px) {
    nav {
        width: 95%;
        min-height: 8vh;
    }

    nav a {
        font-size: 1.8rem;
    }

    nav img {
        margin: 0;
        max-height: 6vh;
    }

    .nav-links {
        display: flex;
        justify-content: flex-end;
    }

    .direction img {
        max-width: 85%;
    }
}

@media screen and (max-width: 400px) {
    nav {
        width: 100%;
        min-height: 8vh;
    }

    nav a {
        font-size: 1.6rem;
    }
}


@media screen and (min-width: 1300px) {
    html {
        --header1: 3rem;
        --header2: 3.6rem;
        --header3: 3.2rem;
        --header4: 2.8rem;
        --text: 2.4rem;
        --textsmall: 2.2rem;
        --button: 2.2rem;
        --textAmatic: 3.6rem;
    }
}