@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@100;300;400;900&display=swap');

.nunito {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

* {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.column {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
}

/*Menu*/

header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-style: normal;
    color: #D69A36;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

header, div {
    align-items: center;
    font-size: 1em;
}

.large {
    width: 100%;
    justify-content: space-around;
}

#titre {
    width: 65%;
    display: flex;
    flex-direction: column;
    font-size: 26px;
    align-items: center;
}

#titre, h1 strong {
    text-align: center;
}

#rdv {
    width: 15%;
}

.button {
    width: 200px;
    height: 100px;
    border-radius: 20px;
    color: #fff;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

#button1 {
    background: rgba(214,154,54,1);
    box-shadow: 0 8px rgba(214,154,54,0.5);
}

#button2 {
    background: rgba(34,107,31,0.5);
    box-shadow: 0 8px rgba(34,107,31,0.3);
}

#button1:hover {
    background: #fff;
    box-shadow: none;
    border: solid 1px;
    border-color: rgba(214,154,54,1);
    top: 3px;
    color: rgba(214,154,54,1);
}

#button2:hover {
    background: #fff;
    box-shadow: none;
    border: solid 1px;
    border-color: rgba(34,107,31,1);
    top: 3px;
    color: rgba(34,107,31,1);
}

#contact {
    width: 20%;
    padding-left: 3%;
}

.separator {
    border-radius: 20px;
    height: 2px;
    background: #D69A36;
}

#big_separator {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 80%;
}

#small_separator {
    margin-top: 20px;
    width: 30%;
}

/*Homepage*/

#contenu {
    margin-top: 230px;
    margin-left: 15%;
    width: 70%;
}

#banner {
    margin-top: 50px;
    width: 100%;
    height: 100%;
    background-image: url(./images/favicon.png);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 20px;
}

#prez {
    width: 100%;
    background: rgba(255,255,255,0.8);
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.présentation {
    padding: 10px;
}

#logo {
    margin-top: 10px;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo img {
    width: 30vh;
    height: 30vh;
    border-radius: 50%;
    border: solid #D69A36;
    background-size: cover;
    background-repeat: no-repeat;
}

#alexie {
    background-image: url(./images/alexie_colson_photo.jpg);
}

#rubans {
    background-image: url(./images/cancer.png);
}

#balance1 {
    background-image: url(./images/denutrition.png);
}

#diabete {
    background-image: url(./images/diabete.png);
}

#dyslipidemie {
    background-image: url(./images/dyslipidemie.jpg);
}

#equilibre {
    background-image: url(./images/equilibre.jpg);
}

#balance2 {
    background-image: url(./images/balance.png);
}

#troubles {
    background-image: url(./images/troubles.jpg);
}

#rhumatismes {
    background-image: url(./images/rhumatismes.png);
}

#zMetrix {
    background-image: url(./images/zMetrix.jpg);
}

img {
    width: 100%;
    height: auto;
    border-radius: 10%;
}

.grille {
    display: grid;
    margin-top: 30px;
    grid-column-gap: 2px;
    grid-row-gap: 2px;
}

.grille a, .grille2 a {
    display: flex;
    justify-content: center;
}

.grille a img, .grille2 a img {
    width: 50%;
}

#grille1 {
    width: 80%;
    grid-template-columns: repeat(auto, 12%);
    grid-template-rows: repeat(4, 7vh);
}

.grille2 {
    width: 50%;
    grid-template-columns: repeat(8, 7vh);
    grid-template-rows: repeat(8, 7vh);
}

#grille1 .element1 {
    grid-column-start: 1;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 3;
    border: none;
    background: none;
    justify-content: left;
}

#grille1 #jinko {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 3;
    grid-row-end: 5;
    background-image: url(./images/logoJinko.png);
    background-size: cover;
    background-repeat: no-repeat;
}

#grille1 #atid {
    grid-column-start: 5;
    grid-column-end: 7;
    grid-row-start: 2;
    grid-row-end: 4;
    background-image: url(./images/logoAtid.png);
    background-size: cover;
    background-repeat: no-repeat;
}

#grille1 #mairie15 {
    grid-column-start: 7;
    grid-column-end: 9;
    grid-row-start: 1;
    grid-row-end: 3;
    background-image: url(./images/logoMairie15.png);
    background-size: cover;
    background-repeat: no-repeat;
}

#grille1 #upec {
    grid-column-start: 7;
    grid-column-end: 9;
    grid-row-start: 3;
    grid-row-end: 5;
    background-image: url(./images/logoUpec.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.element {
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    border: 0.5px solid #D69A36;
    border-radius: 10px;
    height: 14vh;
}

.element:hover {
    border: 3px solid #D69A36;
    border-radius: 10px;
}

.element2 {
    width: 14vh;
    text-align: center;
    text-decoration: none;
}

.element2:hover {
    background-size: cover;
    background-repeat: no-repeat;
}

/*Grilles présentation articles & videos*/

.grille2 .element1  {
    grid-column-start: 1;
    grid-column-end: 13;
    grid-row-start: 1;
    grid-row-end: 3;
    border: none;
    background: none;
}

.grille2 #fActu {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 5;
    color: #D69A36;
}

.grille2 #fActu:hover {
    background-image: url(./images/logoFemmeActuelle.webp);
    color: transparent;
}

.grille2 #jdf {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 5;
    grid-row-end: 7;
}

.grille2 #jdf:hover {
    background-image: url(./images/logo-jdf.png);
    color: transparent;
}

.grille2 #scDirect {
    grid-column-start: 4;
    grid-column-end: 6;
    grid-row-start: 7;
    grid-row-end: 9;
}

.grille2 #scDirect:hover {
    background-image: url(./images/science-direct.jpg);
    color: transparent;
}

.grille2 #medisite {
    grid-column-start: 5;
    grid-column-end: 7;
    grid-row-start: 4;
    grid-row-end: 6;
}

.grille2 #medisite:hover {
    background-image: url(./images/medisite.png);
    color: transparent;
}

.grille2 #jdf2 {
    grid-column-start: 6;
    grid-column-end: 8;
    grid-row-start: 6;
    grid-row-end: 8;
}

.grille2 #jdf2:hover {
    background-image: url(./images/logo-jdf.png);
    color: transparent;
}

.grille2 #mieux {
    grid-column-start: 7;
    grid-column-end: 9;
    grid-row-start: 3;
    grid-row-end: 5;
}

.grille2 #mieux:hover {
    background-image: url(./images/logoMieux.png);
    color: transparent;
}

.grille2 #jinko {
    grid-column-start: 6;
    grid-column-end: 8;
    grid-row-start: 5;
    grid-row-end: 7;
}

.grille2 #jinko:hover {
    background-image: url(./images/logoJinko.png);
    color: transparent;
}

.grille2 #jinko2 {
    grid-column-start: 5;
    grid-column-end: 7;
    grid-row-start: 7;
    grid-row-end: 9;
}

.grille2 #jinko2:hover {
    background-image: url(./images/logoJinko.png);
    color: transparent;
}

.grille2 #jinko3 {
    grid-column-start: 4;
    grid-column-end: 6;
    grid-row-start: 4;
    grid-row-end: 6;
}

.grille2 #jinko3:hover {
    background-image: url(./images/logoJinko.png);
    color: transparent;
}

.grille2 #jinko4 {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 6;
    grid-row-end: 8;
}

.grille2 #jinko4:hover {
    background-image: url(./images/logoJinko.png);
    color: transparent;
}

.grille2 #jinko5 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 5;
    grid-row-end: 7;
}

.grille2 #jinko5:hover {
    background-image: url(./images/logoJinko.png);
    color: transparent;
}

h3 {
    font-weight: bold;
    font-size: 1.5em;
}

h3:hover {
    border: none;
}

a {
    font-weight: bold;
    color: #D69A36;
}

.theme {
    color: rgba(34,107,31,1);
}

footer {
    width: 100%;
    margin-top: 50px;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background: rgba(214,154,54,0.8);
    box-shadow: 0 -8px rgba(214,154,54,1);
}

.foot {
    width: 23%;
    height: auto;
    display: flex;
    flex-direction: column;
}

h4 {
    font-size: 1.2em;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
}

h5 {
    font-size: 1.2em;
    font-weight: bold;
}

.foot .text {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.foot ul  {
    font-size: 0.9em;
}

#small {
    width: 100%;
    margin: 0;
    background: rgba(214,154,54,0.7);
}

strong {
    font-weight: bold;
}

@media all and (max-width: 1200px) {

    header {
        position: relative;
    }

    #contenu {
        margin-top: 30px;
    }

    #presentation {
        border-radius: 0px;
    }

    #logo {
        display: none;
    }

    .grille2 {
        width: 50%;
        grid-template-columns: repeat(8, 5vh);
        grid-template-rows: repeat(8, 5vh);
    }

    .element {
        height: 12vh;
    }

    .element2 {
        width: 10vh;
        height: 10vh;
    }

    .tooltip {
        font-size: 10px;
    }

}

@media all and (max-width: 1000px) {

    header {
        position: relative;
    }

    header a {
        font-size: 0.8em;
    }

    #titre {
        width: 50%;
        font-size: 16px;
    }

    #button {
    width: 150px;
    height: 75px;
    font-size: 1.2em;
    }

    #contact {
    width: 35%;
    padding-left: 3%;
    font-size: 1em;
}

    #contenu {
        width: 80%;
        margin-top: 0;
        margin-left: 10%;
    }

    #presentation {
        border-radius: 0px;
    }

    #logo {
        display: none;
    }

    .grille2 {
        width: 50%;
        grid-template-columns: repeat(8, 3vh);
        grid-template-rows: repeat(8, 3vh);
    }

    .grille2 a {
        font-size: 0.5em;
    }

    .element {
        height: 10vh;
    }

    .element2 {
        width: 6vh;
        height: 6vh;
    }

    h3 {
        font-size: 1.2em;
    }

    .foot {
    width: 30%;
    }

    .tooltip {
        font-size: 10px;
    }

}

@media all and (max-width: 800px) {

    header {
        position: relative;
    }

    header a {
        font-size: 0.7em;
    }

    #titre {
        width: 50%;
        font-size: 12px;
    }

    #button {
    width: 120px;
    height: 60px;
    font-size: 1em;
    }

    #contact {
    width: 35%;
    padding-left: 3%;
    font-size: 0.8em;
    }

    #contenu {
        width: 100%;
        margin-top: 0;
        margin-left: 0;
    }

    #presentation {
        border-radius: 0px;
    }

    #logo {
        display: none;
    }

    #grille1 {
    width: 80%;
    grid-template-columns: repeat(8, 12%);
    grid-template-rows: repeat(4, 5vh);
    }

    .grille2 {
        width: 50%;
        grid-template-columns: repeat(8, 3vh);
        grid-template-rows: repeat(8, 3vh);
    }

    .grille2 a {
        font-size: 0.5em;
    }

    .element {
        height: 10vh;
    }

    .element2 {
        width: 6vh;
        height: 6vh;
    }

    h3 {
        font-size: 1em;
    }

    .foot {
    width: 30%;
    }

    .tooltip {
        font-size: 10px;
    }

}

@media all and (max-width: 680px) {

    header {
        position: relative;
    }

    header, div {
    align-items: center;
    font-size: 0.9em;
    }

    header a {
        font-size: 0.7em;
    }

    #titre {
        width: 50%;
        font-size: 12px;
    }

    #button {
        width: 100px;
        height: 50px;
        font-size: 1em;
    }

    #contact {
        width: 35%;
        padding-left: 3%;
        font-size: 1em;
    }

    #contenu {
        width: 100%;
        margin-top: 0;
        margin-left: 0;
    }

    #presentation {
        border-radius: 0px;
    }

    #logo {
        display: none;
    }

    #grille1 {
        width: 80%;
        grid-template-columns: repeat(8, 12%);
        grid-template-rows: repeat(4, 3vh);
    }

    .grille2 {
        width: 50%;
        grid-template-columns: repeat(8, 3vh);
        grid-template-rows: repeat(8, 3vh);
    }

    .grille2 a {
        font-size: 0.5em;
    }

    .element {
        height: 6vh;
    }

    .element2 {
        width: 6vh;
        height: 6vh;
    }

    h3 {
        font-size: 1em;
    }

    .foot {
        width: 30%;
    }

    .tooltip {
        font-size: 10px;
    }

}