@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
    --margin: 4rem;
    --primary: red;
    --secondary: orange;
    font-family: "Montserrat";
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html,
body,
main {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: .5rem;
    gap: 1rem;
}

section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--primary);
    font-family: "DM Serif Text", serif;
    /* text-transform: uppercase; */
    font-weight: normal;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2rem;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#title {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

#title img {
    max-width: 100%;
}

#title h1,
#title p,
#title .fa {
    z-index: 5;
}

#title strong {
    font-size: 3rem;
}

/* @keyframes oscillation {
    form {
        margin-bottom: calc(0 - var(--margin) / 2);
    }
    to {
        margin-bottom: calc(var(--margin) / 2);
    }
} */

#title #arrow {
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
    line-height: 3rem;
    position: absolute;
    bottom: calc(var(--margin) / 2);
    margin: auto;
    color: black;
    animation: 1s linear 0 infinite alternate oscillation;
}

#title #arrow a,
#title #arrow a:visited {
    color: black;
}

#artisanat div,
#association div {
    padding: calc(var(--margin) / 2);
    width: 35%;
    margin: 1rem auto;
    font-size: 1.1rem;
}

#artisanat {
    flex-direction: row-reverse;
}

#artisanat img,
#association img {
    object-fit: cover;
    height: 100vh;
}

#artisanat>*,
#association>* {
    width: 50%;
}

#fondateurs,
#infos-contact {
    flex-direction: column;
    align-items: space-around;
    gap: 2rem;
    justify-content: center;
}

#fondateurs h2,
#infos-contact h2 {
    text-align: center;
    margin-bottom: 0;
}

#fondateurs #membres {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: space-around;
    padding: calc(var(--margin) / 2);
}

#fondateurs .membre {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

#fondateurs .membre img {
    border-radius: 100%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

#fondateurs .membre h3 {
    color: var(--secondary);
}

#fondateurs .membre em {
    font-size: 1.25rem;
}

#infos-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--margin);
    padding: var(--margin);
    font-size: 1.25rem;

}

#infos-contact h2 {
    text-align: center;
    grid-column: 1 / span 2;
}

#infos-contact #contact,
#infos-contact #contact>div {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: start;
}

#contact input,
#contact textarea {
    border: 1px solid black;
    border-radius: 3px;
    font-size: 1.25rem;
    line-height: 1.25rem;
    padding: .25rem;
    margin-top: -.5rem;
}

#contact ul {
    color: red;
    list-style-type: none;
    padding: 0;
}

#contact #contact_submit,
#fondateurs a {
    color: white;
    background-color: var(--secondary);
    border: none;
    width: 50%;
    margin: 0 auto;
    cursor: pointer;
    padding: .5rem;
    line-height: calc(var(--margin) / 2);
    font-size: 1.125rem;
}

#fondateurs a {
    text-decoration: none;
    text-align: center;
    width: max-content;
    padding: 8px 50px;
}

#infos-contact #coordinates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    font-size: 1.25rem;
    color: black;
}

#infos-contact #coordinates .fa {
    color: var(--secondary);
}

#infos-contact a,
#infos-contact a:visited {
    color: black;
    text-decoration: none;
}

#infos-contact a.safe {
    unicode-bidi: bidi-override;
    direction: rtl;
}

#infos-contact a:hover {
    text-decoration: underline;
}

#infos-contact :first-child {
    grid-column: 1 / span 2;
}

#infos-contact #map {
    border: none;
    width: 100%;
    aspect-ratio: 8 / 5;
}

#infos-contact #social-networks {
    display: flex;
    justify-content: center;
    gap: var(--margin);
}

#infos-contact #social-networks a {
    background-color: var(--secondary);
    color: white;
    border-radius: 100%;
    width: var(--margin);
    height: var(--margin);
    line-height: var(--margin);
    font-size: 1.5rem;
    text-align: center;
    vertical-align: middle;
}

footer {
    text-align: center;
    padding: 1rem;
}

@media screen and (max-width: 768px) {

    #artisanat,
    #association {
        flex-direction: column-reverse;
    }

    #artisanat>img,
    #association>img,
    #artisanat>div,
    #association>div {
        width: 100%;
    }

    #fondateurs h2 {
        margin-top: var(--margin);
    }

    #fondateurs #membres {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--margin) / 2);
    }

    #infos-contact {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 640px) {
    #fondateurs #membres {
        grid-template-columns: repeat(1, 1fr);
    }

    #coordinates>* {
        margin: calc(var(--margin) / 8);
    }

    #infos-contact #coordinates {
        display: flex;
        flex-direction: column;
    }

    #infos-contact #social-networks {
        gap: calc(var(--margin) / 2);
    }
}