
:root {

    --main-white: #FAFAFA;
    --main-link-color: #3AAA35;
    --main-bg-color: #1D1D1B;
    --main-main-color: #575756;
    --main-secondary-color: #227C9E;
    --main-tertiary-color: #93D2E1;
}

@font-face {
    font-family: 'regular';
    src: url("../fonts/DINPro-Regular-l3O3dqf.otf");
}

@font-face {
    font-family: 'medium';
    src: url("../fonts/DINPro-Medium-6okhjGb.otf");
}


html {
    scroll-behavior: smooth; /* Surtout pour les ancres */
}

body {
    background-color: var(--main-white);
    color: var(--main-main-color);
    font-family: 'regular', serif;
    font-size: 1.2em;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0;
}


.txt-c {
    text-align: center;
}

.txt-l {
    text-align: left;
}

.txt-r {
    text-align: right;
}

a {
    color: var(--main-white);
    text-decoration: none;
    vertical-align: middle;
}

a:hover {
    text-decoration: underline;
}

footer a:hover {
    text-decoration: underline;
}

a:active, button:active {
    left: 1px;
    position: relative;
    top: 1px;
}

button {
    border: 0;
    cursor: pointer;
    font-size: 1em;
}


h2, h1 {
    font-family: 'medium', serif;
    font-weight: 200;
    text-wrap: balance;
    text-transform: uppercase;
}

main h1 {
    color: var(--main-bg-color);
    padding-left: 84px;


    a {
        font-size: 0.4em;
        vertical-align: middle;
    }
}

h2 {
    color: var(--main-secondary-color);
    display: block;
    width: 100%;
}

.btn {
    background-color: var(--main-main-color);
    border: var(--main-main-color) 2px solid;
    color: var(--main-white);
    padding: 10px;

    &.orange {
        background-color: var(--main-secondary-color);
        color: var(--main-white);
        border: 0;

        &:hover {
            background-color: var(--main-bg-color);
            color: var(--main-white);
        }
    }

    &:hover, &.active {
        background-color: var(--main-white);
        color: var(--main-bg-color);
    }
}

.br-6 {
    border-radius: 6px;
}

.mb-80 {
    margin-bottom: 80px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-100 {
    margin-top: 100px;
}

.mt-40 {
    margin-top: 40px;
}

.ml-40 {
    margin-left: 40px;
}

.pd_10 {
    padding: 10px;
}

img {
    vertical-align: middle;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.flex-jc-l {
    justify-content: left;
}

.flex-jc-c {
    justify-content: center;
}


.col-100 {
    width: 100%;
}

.col-80 {
    width: 80%;
    margin: auto;
}

header {
    height: 900px;
    z-index: 1;
    position: relative;
    padding: 0;

    h1 {
        position: relative;
        left: -50%;
        top: -20px;

        span {
            display: block;
            font-size: 0.7em;
            color: var(--main-bg-color);
            position: relative;
            left: 1%;
            top: 40px
        }
    }

    img:not(.icon-social) {
        height: 18vh;
    }

    nav {
        position: absolute;
        top: 24px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: right;
        width: 99%;

        a:not(.icon-social) {
            padding: 10px;
            margin-inline-end: 10px;

            &:hover {
                text-decoration: none;
            }
        }
    }

    .nav-toggler {
        display: none;
    }
}

header.mini {
    height: 200px;

    h1 {
        text-align: left;
        left: -540px;
        top: -40px;
        padding-left: 40px;

        span {
            display: none;
        }

        img:not(.icon-social) {
            height: 12vh;
        }
    }

    nav {
        position: relative;
        top: 80px;

    }
}
main {
    min-height: 100vh;
}

.icon-social {
    border: var(--main-main-color) 1px solid;
    height: 28px;
    padding: 8px;
    width: 28px;
    background-color: var(--main-white);
    color: var(--main-main-color);
    vertical-align: middle;

}

#map {
    box-shadow: 1px 1px 13px var(--main-main-color);
    margin-bottom: 100px;
    margin-top: 100px;
}


.card {
    background-color: var(--main-main-color);

    &.product {
        background-color: var(--main-white);
        box-shadow: 20px 5px 20px var(--main-main-color);
        width: 24%;
        margin-inline-end: 20px;
        margin-bottom: 40px;

        img {
            object-fit: cover;
            width: 100%;
        }

    }

    &.pharmacy {
       /* background-color: var(--main-main-color); *:
        /*  box-shadow: 20px 5px 15px var(--main-bg-color); */
        background-color: var(--main-white);
        flex-wrap: wrap;
        width: 24%;
        background-image: radial-gradient(#ddd 1px, transparent 0);
        background-size: 15px 15px;
        border: var(--main-link-color) 1px solid;

        &.black {
            border: var(--main-main-color) 1px solid;
        }

        p strong{
            color: var(--main-link-color);
        }

        a {
            background-color: var(--main-link-color);
            border: 1px solid var(--main-link-color);
            width: 90px;
            display: inline-block;
        }

        p.image-phy {
            height: 254px;

            img.phy {
                width: 80%;
                margin: auto;
            }

            img.phy-defaut {
                width: 26%;

            }
        }

    }

    ul {
        list-style-type: none;
        margin-top: -10px;

        li {
            padding: 5px;
        }
    }
}

.commitments {
    background-color: var(--main-white);
    min-height: 1300px;
    padding: 20px;

    .container > .flex {
        justify-content: center;
        height: 100%;
        width: 40%;

        div {
            margin-right: 60px;
        }
    }

    p {
        line-height: 1.4em;
    }

    .card {
        height: 600px;
        background-color: inherit;
    }

    p.img {
        height: 180px
    }


    div.naturel {
        width: 50%;

        img {
            width: 90%;
        }

    }

    div.contain-naturel {
        background-image: radial-gradient(#3AAA35 1px, transparent 0);
        background-size: 15px 15px;
        height: 620px;

        div.empty {
            height: 600px;
            width: 49%;

            img {
                width: 60%;
            }
        }
    }
}

img.img-black {
    box-shadow: 1px 1px 13px var(--main-bg-color);
    width: 100%;
}

.partners {
    padding-bottom: 60px;

    div.image {
        align-items: center;
        background-color: #FFF;
        border-radius: 15px;
        display: flex;
        height: 120px;
        justify-content: center;
        margin: 15px 40px;
        padding: 10px;
        text-align: center;
        width: 12%;

        img {
            object-fit: contain;
            max-height: 140px;

        }
    }
}

/*
#commitments h2, label:not([for="contact_check"]) {
    display: block;
    color: var(--main-bg-color);
    font-size: 1.1em;
    font-weight: 200;
    margin: 40px auto;
    padding: 1em 2em;
    text-align: center;
    width: 60%;

}*/

label:not([for="contact_check"]) {
    display: inline-block;
    width: 220px;
}


.card-round {
    background-color: var(--main-main-color);
    border-radius: 50%;
    box-shadow: 1px 1px 10px var(--main-bg-color);
    font-size: 1em;
    height: 220px;
    margin: 10px auto;
    padding: 30px;
    width: 220px;

    &.orange {
        background-color: var(--main-secondary-color);
    }

    &.black {
        background-color: var(--main-bg-color);
        color: var(--main-white);
    }

    img {
        width: 100px;
    }
;
}

/*
.intro {
    height: 400px;

    h1 {
        color: var(--main-bg-color);

    }
}

 */

/*
.orange {
    color: var(--main-secondary-color);
}

 */

form {
    margin: auto;
    padding: 10px;
    width: 50%;

    input:not([type=checkbox]) {
        color: var(--main-bg-color);
        border: var(--main-link-color) 1px solid;
        border-radius: 6px;
        font-size: 1em;
        height: 60px;
        padding-left: 10px;
        width: 100%;
    }

    ul {
        list-style-type: none;
        text-align: center;

        li {
            color: indianred;
        }
    }

    textarea {
        background-color: var(--main-white);
        border: var(--main-link-color) 1px solid;
        border-radius: 6px;
        font-size: 1em;
        height: 280px;
        padding: 10px;
        width: 100%;
        color: var(--main-bg-color);

        &::placeholder {
            color: var(--main-main-color);
            font-style: italic;
        }
    }

    label:not([for=contact_check]) {
        text-transform: uppercase;
        width: 30%;
    }

    label[for=contact_check] {
        display: block;
        left: -150px;
        position: relative;
        top: 0;
        width: 70%;
    }

    input#contact_check {
        width: 30px;
        height: 30px;
    }
    div{
        margin:20px auto;
    }

    div.check-contact {
        margin: 30px auto;
    }

    div > div {
        align-items: center;
        display: flex;
        margin-top: 40px;
        margin-bottom: 40px;
        justify-content: center;
    }
}

footer {
    background-color: var(--main-bg-color);
    color: var(--main-white);

    .version {
        font-style: italic;
        font-size: 0.8em;

        a {
            vertical-align: middle;
        }
    }
}

.word {
    color: var(--main-link-color);
}

@media (min-width: 1300px) and  (max-width: 1600px) {
    #commitments {
        .card {
            height: 950px;
        }
    }
}

@media (min-width: 2000px) {

    .card {
        &.product {
            margin: 10px;
        }
    }
}

@media (max-width: 768px) {
    header {
        img {
            height: 12vh;
        }

        nav {
            &.flex {
                justify-content: center;
                width: 80%;
                margin: auto;
            }

            position: fixed;
            top: 0;
            width: 100vw;
            min-height: 100%;
            display: flex;
            justify-content: center;
            flex-direction: column;
            padding: 20px 40px;
            transform: translateY(-100%);
            /*  transform: translateX(-50%);  */
            transition: transform 0.3s cubic-bezier(0.73, 0.11, 0.67, 0.84);
            z-index: 10;
            background-color: #333333;

            &.active {
                transform: translate(0);
            }

            a {
                font-size: 20px;
                display: block;
                width: 100%;
                margin-bottom: 40px;
            }
        }

        /* Button */

        .nav-toggler {
            position: fixed;
            z-index: 10;
            top: 10px;
            left: 20px;
            height: 40px;
            width: 40px;
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: transparent;


            .line {
                position: absolute;
                display: block;
                width: 100%;
                height: 2px;
                background-color: var(--main-white);
                transition: transform 0.3s ease-out, opacity 0.1s ease-out;

            }

            .l1 {
                transform: translateY(-10px);
            }

            .l3 {
                transform: translateY(+10px);
            }

            &.active .l1 {
                transform: translateY(0px) rotate(135deg);
            }

            &.active .l2 {
                opacity: 0;
            }

            &.active .l3 {
                transform: translateY(0px) rotate(-135deg);
            }
        }
    }

    main, #partners, #commitments, .intro, .pharmacies {
        width: 100%;
        height: 100%;
    }

    main h1 {
        font-size: 1.6em;

        img {
            width: 50px;
        }
    }

    .mt-40 {
        margin-top: 10px;
    }

    .intro {
        height: 1300px;

    }


    #commitments {
        height: 3800px;
        flex-wrap: wrap;

        img {
            width: 50%;
        }

        .card {
            width: 100%;
            height: 800px;

            p.img {
                height: 300px;
            }
        }

    }

    #partners {
        img {
            background-color: var(--main-white);
            border-radius: 15px;
            padding: 90px;
            margin-top: 10px;
        }

        .flex .txt-c {
            width: 100%;
            min-height: 560px;
        }
    }

    .col-80 {
        width: 90%;
    }

    form {
        width: 100%;

        div {
            width: 100%;
            flex-direction: column;
        }

        input:not([type=checkbox]), textarea {
            width: 100%;
        }

        label:not([for="contact_check"]) {
            margin-bottom: 20px;
        }

        label[for="contact_check"] {
            width: 100%;
        }

        img {
            margin: auto;
        }
    }

    .card {
        &.product, &.pharmacy {
            width: 90%;
        }
    }

    main {
        margin-left: -1px;
    }

    footer {
        flex-direction: column;

        p {
            text-align: center
        }

        .version {
            margin-top: 20px;
        }

    }

    .back {
        left: -10px;
    }

    #map {
        width: 100%;
    }
}

