:root {
    --white: #fff;
    --grey: #252525;
    --greyFaded: #25252526;
    --yellow: #ffd26f;
    --purple: #d0a4d0;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

h1 {
    font-size: min(4em, max(8vw, 2.75em));
}

h1.may-big {
    font-size: min(6.25em, max(5vw, 2.75em));
}

h2 {
    font-size: 3em;
}

h3 {
    font-size: min(2em, max(2.5vw, 1.75em));
}

h4 {
    font-size: 1.625em;
}

p,
a,
h6 {
    font-size: min(1.125em, max(1.4vw, 1em));
}

a {
    text-decoration: inherit;
    color: inherit;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro';
    color: var(--grey);
}

html {
    overflow-x: hidden;
}

.may-pContainer > p:first-of-type {
    margin-top: 0;
}

.may-pContainer > p:last-of-type {
    margin-bottom: 0;
}

.may-pContainer > p {
    text-align: justify;
}

#accueil main > section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 6vh;
}

#accueil .may-logoContainer {
    max-width: 90%;
    width: 30vw;
    min-width: 24em;
}

#accueil .may-logoContainer > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#accueil #services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6em;
    margin-top: 6vh;
    padding-bottom: 6vh;
}

.may-nWidth {
    width: 90%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

#accueil #services > .may-element img {
    width: 24vh;
    object-fit: contain;
    display: block;
    max-width: 50%;
}

#accueil #services > .may-element > h3 {
    text-align: center;
}

#accueil #services > .may-element > .may-pContainer {
    margin-top: 2em;
    margin-bottom: 2em;
}

.may-button {
    text-decoration: none;
    color: inherit;
    background-color: var(--yellow);
    padding: 8px 20px;
    border-radius: 5px;
    transition: transform 0.5s;
    font-smoothing: antialiased !important;
    backface-visibility: hidden;
    text-align: center;
}

#accueil #services > .may-element {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#accueil #services > .may-element > .may-button {
    margin-top: auto;
}

.may-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -10;
}

#accueil .may-bg > img {
    position: absolute;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

#accueil > main {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding-top: 0;
}

@media (max-width:1199px) {
    #accueil #services {
        margin-top: 4vh;
    }
}

@media (max-width:799px) {
    #accueil #services {
        grid-template-columns: 1fr;
    }
}

@media (max-width:479px) {
    #accueil .may-logoContainer {
        width: 90%;
        max-width: 24em;
        min-width: initial;
    }
}

#title > h1 {
    text-align: center;
    margin-top: 0;
    padding-top: 0.8em;
}

section#features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2em;
}

#features > .may-element > img {
    width: 100%;
    object-fit: contain;
    height: 10em;
    object-position: center bottom;
}

section#features > .may-element {
    padding: 16px;
    border-color: var(--greyFaded);
    border-style: solid;
    border-width: 1px;
    border-radius: 14px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

#features > .may-element > h5 {
    text-align: center;
    position: relative;
}

.may-encart {
    background-color: var(--yellow);
    padding: 4em 6em;
    box-sizing: border-box;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16em;
    position: relative;
    margin-bottom: 16em;
}

.may-encart > h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.may-encart > .may-pContainer {
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
    margin-bottom: 2em;
}

.may-button.may-dark {
    background-color: var(--grey);
    color: var(--white);
}

.may-encart > img {
    position: absolute;
}

body#websites section#tarifs > img {
    max-width: 770px;
    width: 100%;
}

body#websites section#tarifs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3em;
    margin-top: 16em;
    margin-bottom: 16em;
}

body#websites section#tarifs > h3 {
    margin: 0;
    text-align: center;
}

.may-grid {
    display: grid;
}

body#websites section#realisations > .may-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em;
    margin: 3em 0;
}

body#websites section#realisations > .may-grid > .may-element > .may-imgContainer {
    overflow: hidden;
    position: relative;
    border-bottom-color: var(--greyFaded);
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

body#websites section#realisations > .may-grid > .may-element > .may-imgContainer img {
    width: 100%;
    position: absolute;
    transition: transform 2s;
    max-height: none;
    display: block;
}

body#websites section#realisations > .may-grid > .may-element:hover > .may-imgContainer img {
    transform: translateY(calc(-100%));
}

body#websites section#realisations > .may-grid > .may-element:hover > .may-imgContainer .may-wrapper {
    transform: translateY(calc(100%));
}

body#websites section#realisations > .may-grid > .may-element {
    border-color: var(--greyFaded);
    border-style: solid;
    border-width: 1px;
    border-radius: 14px;
    overflow: hidden;
    font-size: 1em;
}

body#websites section#realisations > .may-grid > .may-element > .may-imgContainer > .may-spacer {
    padding-top: 56.25%;
    position: relative;
}

body#websites section#realisations > .may-grid > .may-element > .may-imgContainer .may-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 2s;
}

body#websites section#realisations .may-grid > .may-element > h6 {
    text-align: center;
    margin: 16px;
    margin-bottom: 8px;
}

body#websites section#realisations .may-grid > .may-element > p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 16px;
}

section#realisations > h3 {
    text-align: center;
}

section#realisations > a.may-button {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
    display: none;
}

body#websites section#avis {
    margin-top: 16em;
    margin-bottom: 16em;
    display: none;
}

section#avis > h3 {
    text-align: center;
}

section#avis > .may-grid {
    grid-template-columns: 1fr 3.5fr;
    align-items: center;
    gap: 3em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

section#avis > .may-grid > img {
    width: 100%;
    object-fit: contain;
}

section#avis .may-slider > .may-element {
    grid-area: 1 / 1 / 1 / 1;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section#avis .may-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
}

section#avis .may-slider--selector {
    flex-direction: row;
    justify-content: center;
    gap: 3em;
    display: flex;
}

section#avis .may-slider--selector > a {
    height: 0.5em;
    width: 0.5em;
    border-radius: 100%;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

section#avis .may-slider--selector > a > div {
    background-color: var(--grey);
    border-radius: 100%;
    height: 80%;
    width: 80%;
}

section#avis .may-slider--selector > a.may-active {
    border-color: var(--grey);
}

section#avis .may-slider > .may-element.may-active {
    opacity: 1;
}

section#avis .may-slider--selector:empty {
    display: none;
}

mark {
    background-color: var(--yellow);
}

#mainmenu--desktop nav {
    padding-top: 1em;
    padding-bottom: 1em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 50;
    align-items: stretch;
}

#mainmenu--desktop .may-logo {
    height: 3em;
}

#mainmenu--desktop .may-logo > img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

h5 {
    font-size: min(1.35em, max(4vw, 1.125em));
}

#footer--desktop h6 {
    margin: 0;
    width: 100%;
    text-align: center;
}

footer > #footer--desktop {
    color: var(--white);
    background-color: var(--grey);
    padding-top: 2em;
    margin-top: 16em;
    padding-bottom: 2em;
}

footer > #footer--desktop img.may-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer > #footer--desktop > .may-logoContainer {
    height: 3.5em;
}

footer > #footer--desktop > .may-credits > p {
    text-align: center;
    margin: 0;
    font-size: 0.9em;
}

#websites-tarifs .may-tarifsTable {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    position: relative;
}

.may-tarifsTable > div {
    text-align: center;
    border-color: var(--greyFaded);
    border-style: solid;
    border-bottom-width: 1px;
    border-right-width: 0px;
    border-top-width: 0px;
    border-left-width: 1px;
    padding: 16px;
}

.may-tarifsTable > .may-tarifsTable--price {
    background-color: var(--yellow);
}

.may-tarifsTable > div.may-placeholder {
    border-width: 0px;
}

.may-tarifsTable > div:nth-of-type(5n) {
    border-right-width: 1px;
}

.may-tarifsTable > div.may-tarifsTable--title {
    border-top-width: 1px;
}

.may-tarifsTable--title > h4 {
    text-transform: uppercase;
    margin: 0;
}

.may-tarifsTable > div > h6 {
    margin: 0;
}

.may-tarifsTable--price > h4 {
    margin: 0;
}

.may-tarifsTable > div:nth-of-type(2) {
    border-top-left-radius: 14px;
}

.may-tarifsTable > div:nth-of-type(5) {
    border-top-right-radius: 14px;
}

.may-tarifsTable > div:nth-of-type(6) {
    border-top-left-radius: 14px;
    border-top-width: 1px;
}

.may-tarifsTable > div:nth-last-of-type(1) {
    border-bottom-right-radius: 14px;
}

.may-tarifsTable > div:nth-last-of-type(4) {
    border-bottom-left-radius: 14px;
}

.may-tarifsTable > div:nth-last-of-type(10) {
    border-bottom-left-radius: 14px;
}

.may-tarifsTable > .may-tarifsTable--price > h4 > span {
    font-size: 0.75em;
}

#websites #surmesure > img {
    width: min(12em, max(14vw, 7em));
    bottom: -4%;
    right: -3%;
    transform: scaleX(-100%);
}

#websites-tarifs .may-encart > img {
    width: min(16em, max(20vw, 9em));
    right: -5%;
    bottom: -3%;
}

body#design section#realisations > .may-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    gap: 4em;
    margin-top: 3em;
    margin-bottom: 3em;
}

body#design section#realisations > .may-grid > .may-element > img {
    width: 100%;
    object-fit: contain;
    object-position: center;
    height: 14em;
    margin-bottom: 1.5em;
}

body#design section#realisations > .may-grid > .may-element > h5 {
    text-align: center;
    margin: 0;
}

body#design section#realisations > .may-grid > .may-element > h6 {
    text-align: center;
    margin: 0.5em 0;
}

body#design section#realisations > .may-grid > .may-element > .may-pContainer > p {
    text-align: justify;
}

body#design section#realisations {
    margin-top: 16em;
    display: none;
}

.may-featureSection {
    display: grid;
    grid-template-areas: "title image" "text image";
    grid-template-columns: 1fr 1fr;
    gap: 0 7em;
    grid-template-rows: min-content 1fr;
    margin-top: 12em;
    margin-bottom: 12em;
}

.may-featureSection > img {
    grid-area: image;
    width: 90%;
    height: 100%;
    object-fit: contain;
    justify-self: center;
}

.may-featureSection > h3 {
    grid-area: title;
    margin-top: 0;
}

.may-featureSection > .may-pContainer {
    grid-area: text;
}

.may-featureSection.may-reversed {
    grid-template-areas: "image title" "image text";
}

#features > a.may-element {
    font-size: initial;
}

a.may-linkWrapper {
    display: contents;
    font-size: initial;
}

.may-button:hover {
    transform: scale(1.08);
}

.may-fullWidth {
    width: 100%;
}

#mainmenu--desktop {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background-color: var(--white);
    border-bottom-color: var(--greyFaded);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    z-index: 1000;
}

#mainmenu--desktop nav .may-menu {
    display: flex;
    align-items: stretch;
    gap: 4em;
}

#mainmenu--desktop .may-menu .may-topMenuItem {
    position: relative;
    display: flex;
    flex-direction: column;
}

#mainmenu--desktop .may-menu .may-topMenuItem > .may-subMenu {
    position: absolute;
    top: 100%;
    opacity: 0;
    pointer-events: none;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-duration: 500ms;
    transition-property: opacity,transform;
    transform: scale(0.99) translateY(-0.7em);
    transform-origin: top;
    font-size: 0.9em;
}

#mainmenu--desktop .may-menu .may-subMenu .may-subMenuItem {
    display: grid;
    grid-template-areas: "image titre" "image soustitre";
    gap: 0 1em;
    justify-content: start;
    font-size: 1em;
}

#mainmenu--desktop .may-menu .may-subMenu .may-subMenuItem > h6 {
    grid-area: titre;
    margin: 0;
    align-self: end;
}

#mainmenu--desktop .may-menu .may-subMenu .may-subMenuItem > img {
    grid-area: image;
    height: 3.5em;
    align-self: center;
}

#mainmenu--desktop .may-menu .may-subMenu .may-subMenuItem > p {
    grid-area: soustitre;
    margin: 0;
    align-self: start;
}

#mainmenu--desktop .may-menu .may-topMenuItem > a {
    font-weight: bold;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#mainmenu--desktop .may-menu .may-topMenuItem:hover .may-subMenu {
    pointer-events: auto;
    transform: scale(1) translateY(0);
    opacity: 1;
}

#mainmenu--desktop .may-menu .may-topMenuItem:last-of-type {
    align-items: flex-end;
}

#mainmenu--desktop .may-menu .may-topMenuItem:nth-last-of-type(2) {
    align-items: center;
}

#mainmenu--desktop .may-menu .may-topMenuItem .may-subMenu .may-inner {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-color: var(--greyFaded);
    border-style: solid;
    border-width: 1px;
    border-radius: 14px;
    width: max-content;
    padding: 2em;
    gap: 2em;
    margin-top: 1.75em;
}

main {
    padding-top: 5.5em;
}

#features > .may-element > .may-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--white);
    display: flex;
    overflow: hidden;
    transition: height 0.5s;
    border-radius: 14px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

#features .may-element > .may-overlay > .may-pContainer {
    margin: 1em;
    opacity: 0;
    transition: opacity 0.5s;
}

#features .may-element:hover > .may-overlay {
    height: 100%;
}

#features .may-element:hover .may-overlay > .may-pContainer {
    opacity: 1;
}

#features > .may-element > .may-overlay > .may-pContainer > p {
    text-align: center;
}

#features > .may-element > .may-overlay > .may-fakeButton {
    background-color: var(--yellow);

    /* color: var(--white) */
    width: 100%;
    text-align: center;
    padding: 1em 0;
    transform: translateY(100%);
    transition: transform 0.3s 0.3s;
}

#features > .may-element:hover > .may-overlay > .may-fakeButton {
    transform: translateY(0);
}

.may-modulesList > .may-wrapper > .may-element {
    padding: 16px;
    border-color: var(--greyFaded);
    border-style: solid;
    border-width: 1px;
    border-radius: 14px;
    padding-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.may-modulesList > .may-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 2em;
}

.may-modulesList > .may-wrapper > .may-element > img {
    width: 60%;
}

.may-modulesList > .may-wrapper > .may-element > h6 {
    text-align: center;
    margin: 1em 0;
}

.may-modulesList {
    margin-top: 12em;
    margin-bottom: 12em;
}

.may-modulesList > h3 {
    text-align: center;
}

.may-modulesList > h6 {
    margin-bottom: 1.5em;
}

.may-infoBar > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-color: var(--greyFaded);
    border-style: solid;
    border-width: 1px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    margin-top: 2em;
    gap: 1em;
}

.may-infoBar h5 {
    margin: 0;
}

.may-attention {
    background-color: var(--yellow);
    border-radius: 14px;
    padding: 3em 5em;
    box-sizing: border-box;
}

@media (max-width:1049px) {
    section#features {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width:799px) {
    section#features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:599px) {
    section#features {
        grid-template-columns: 1fr;
        max-width: fit-content;
        margin-top: 4em;
    }

    #features > a.may-element {
        border-width: 0px;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2em;
        width: fit-content;
    }

    #features > .may-element > img {
        height: 5em;
        width: 5em;
        object-position: center center;
    }

    #features > .may-element > h5 {
        margin: 0;
        text-align: left;
    }
}

@media (max-width:799px) {
    #mainmenu--desktop {
        display: none;
    }

    footer > section#footer--desktop > div.may-nav > .may-wrapper {
        display: none;
    }

    footer > section#footer--desktop > div.may-nav > .may-wrapper:last-of-type {
        display: inherit;
    }

    footer > section#footer--desktop > div.may-nav {
        grid-template-columns: 1fr;
    }

    #features > .may-element > .may-overlay {
        display: none;
    }
}

.may-underline {
    position: absolute;
    bottom: -0.3em;
    width: 100%;
    height: 1px;
    background-color: var(--greyFaded);
}

@media (min-width:600px) {
    #features > .may-element > h5 > .may-underline {
        display: none;
    }
}

@media (max-width:799px) {
    main {
        padding-top: 0;
    }
}

@media (max-width:599px) {
    .may-encart {
        padding: 3em 2em;
    }

    #websites #surmesure > img {
        display: none;
    }

    section#avis > .may-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    section#avis > .may-grid > img {
        height: 10em;
    }
}

@media (max-width:799px) {
    body#websites section#realisations > .may-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:599px) {
    body#websites section#realisations > .may-grid {
        grid-template-columns: 1fr;
    }
}

#design #motivations > img {
    width: min(12em, max(14vw, 7em));
    bottom: -4%;
    right: -3%;
}

@media (max-width:599px) {
    #design #motivations > img {
        display: none;
    }
}

@media (max-width:1049px) {
    .may-featureSection {
        gap: 0 3em;
    }
}

@media (max-width:799px) {
    .may-featureSection {
        grid-template-areas: "title" "image" "text";
        grid-template-columns: 1fr;
        gap: 2em;
        margin-top: 8em;
        margin-bottom: 12em;
    }

    .may-featureSection.may-reversed {
        grid-template-areas: "title" "image" "text";
    }

    .may-featureSection > h3 {
        margin: 0;
    }

    .may-featureSection > img {
        max-height: 12em;
        width: 100%;
    }
}

@media (max-width:599px) {
    .may-attention {
        padding: 2em;
    }
}

.may-infoBar .may-button {
    white-space: nowrap;
}

@media (max-width:1049px) {
    .may-infoBar > div {
        flex-direction: column;
    }

    .may-infoBar h5 {
        text-align: center;
    }
}

@media (max-width:599px) {
    .may-infoBar > div {
        margin-top: 4em;
    }
}

footer div.may-infos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-top: 3em;
    margin-bottom: 3em;
}

body#design section#avis {
    display: none;
}

header > #mainmenu--mobile {
    display: none;
    position: fixed;
    z-index: 1000;
    height: 3.5em;
    width: 3.5em;
    margin-left: 1em;
    margin-top: 1em;
    background-color: var(--white);
    border-radius: 100%;
    border-color: var(--greyFaded);
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

@media (max-width:799px) {
    header > #mainmenu--mobile {
        display: flex;
    }
}

#mainmenu--mobile > img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    object-position: center;
    object-size: 50%;
}

@media (max-width:599px) {
    footer div.may-infos {
        flex-direction: column;
        gap: 1em;
    }
}

@media (max-width:1049px) {
    .may-modulesList > .may-wrapper {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width:799px) {
    .may-modulesList > .may-wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width:599px) {
    .may-modulesList > .may-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:479px) {
    .may-modulesList > .may-wrapper {
        gap: 1em;
    }
}

@media (max-width:599px) {
    #websites-tarifs .may-encart > img {
        display: none;
    }
}

@media (max-width:799px) {
    #websites-tarifs .may-tarifsTable {
        display: none;
    }
}

#websites-tarifs .may-tarifsTable--mobile {
    grid-template-columns: 1fr 1fr;
    gap: 6em 2em;
    display: none;
}

#websites-tarifs .may-tarifsTable--mobile > .may-element {
    display: grid;
    grid-template-columns: 1fr;
}

#websites-tarifs .may-tarifsTable--mobile > .may-element > div {
    text-align: center;
    border-color: var(--greyFaded);
    border-style: solid;
    border-bottom-width: 1px;
    border-right-width: 1px;
    border-top-width: 0px;
    border-left-width: 1px;
    padding: 16px;
}

#websites-tarifs .may-tarifsTable--mobile > .may-element > div.may-tarifsTable--title {
    border-top-width: 1px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

#websites-tarifs .may-tarifsTable--mobile > .may-element > div.may-tarifsTable--price {
    background-color: var(--yellow);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.may-tarifsTable--mobile h6 {
    margin: 0;
}

@media (max-width:799px) {
    #websites-tarifs .may-tarifsTable--mobile {
        display: grid;
    }
}

@media (max-width:599px) {
    #websites-tarifs .may-tarifsTable--mobile {
        grid-template-columns: 1fr;
    }
}