/*general style*/
* {
    margin: 0;
    padding: 0;
}

:root {
    --pastel-blue: rgba(142, 196, 203, 0.2);
    --lemony-green: #BAC25F;
    --lake-water: #53ADAC;
    --ocean-blue: #2D5194;
    --not-really-white: #FCFCFC;
    --section-padding: 5vh 12vw;
    --section-mobile-padding: 3vh 5vw;
    --shadow: 1px 2px 5px #777;
}

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

body {
    font-family: "Source Sans 3", sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: "Libre Baskerville", serif;
    padding: 2vh 0;
}

h1 {
    font-size: 1.75rem;
    text-align: center;
}

h2 {
    font-size: 1.2rem;
}

h3 {
    font-size: 1rem;
}

p,
a,
li {
    font-size: 1rem;
}

.bgPastelBlue {
    background-color: var(--pastel-blue);
}

.bgLemon {
    background-color: var(--lemony-green);
    text-align: center;
}

.bgBlue {
    background-color: var(--ocean-blue);
}

.imgBTL {
    border-radius: 25% 0 0 0;
    box-shadow: var(--shadow);
}

.imgBTR {
    border-radius: 0 25% 0 0;
    box-shadow: var(--shadow);
}

.imgBD {
    border-radius: 0 25% 0 25%;
    box-shadow: var(--shadow);
}

.btn {
    background-color: var(--ocean-blue);
    color: var(--not-really-white);
    text-align: center;
    border-radius: 15px;
    padding: 5px 10px;
    width: 212px;
    cursor: pointer;
}

.btnContacter {
    background-color: var(--not-really-white);
    color: black;
    text-align: center;
    border: solid var(--ocean-blue);
    border-radius: 25px;
    padding: 5px 10px;
    width: 150px;
}

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

.centerTrick {
    display: flex;
    justify-content: center;
    text-decoration: none;
}

header,
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--section-mobile-padding);
}

.sectionImgL,
.sectionImgR {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.sectionImgT {
    flex-direction: column-reverse;
}

header img,
section img {
    width: clamp(325px, 30vw, 600px);
    height: auto;
    margin: 2.5vh 0;
}

.imgSmol {
    width: clamp(150px, 20vw, 300px);
}

section P {
    padding: 1vh 0;
}

.listeSection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.headerbis p {
    text-align: center;
}

.headerbis .btn,
.headerbis .btnContacter {
    margin: 1vh 0;
    padding: 1.25vh 1.5vw;
}

.sectionContact {
    display: block;
}

.contactForm {
    background-color: white;
    border-radius: 15px;
    width: 100%;
    height: 48px;
    padding-left: 5px;
    border: solid #E0E0E0;
}

.sectionContact textarea {
    height: 128px;
    max-width: 100%;
}

.captcha {
    width: 300px;
}

.sectionContact .btn {
    width: 80%;
}

.pictoTel {
    list-style-image: url(./img/picto/phone.svg);
}

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

.sectionMap h3,
.sectionMap p {
    text-align: center;
}

.blogGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5vh 3vw;
}

.blogCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: solid #E0E0E0;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--shadow);
    color: black;
    text-decoration: none;
    background-color: white;
    padding: 15px;
}

.cardImgContainer {
    width: 100%;
    height: 240px;
    border-radius: 7px;
    overflow: hidden;
}

.blogCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

.cardCategorie,
.cardDate {
    align-self: flex-start;
}

.cardCategorie {
    color: var(--ocean-blue);
}

.cardDate {
    color: #3A4049;
}

.infoArticle {
    font-size: 0.75rem;
    color: var(--ocean-blue);
}

.articlesCategorie {
    display: flex;
    justify-content: center;
    gap: 2vw;
}

.finArticle {
    border-bottom: solid 1px #E0E0E0;
}

.social {
    display: flex;
    justify-content: space-between;
}

.social a img {
    height: 40px;
    width: auto;
}

.pagination{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 5vh;
}

.pagination p{
    font-size: 0.75rem;    
}

.pagination p:hover{
    cursor: pointer;  
}

/*navbar style*/
nav {
    position: sticky;
    top: 0px;
    z-index: 100;
    box-shadow: var(--shadow);
    background-color: white;
    width: 100%;
}

nav a {
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav a:first-child {
    width: 230px;
}

nav ul,
nav ul li {
    list-style: none;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

nav ul li div img {
    width: 10px;
    transform: rotate(-90deg);
}

.flexUl {
    display: flex;
    border-bottom: solid var(--lemony-green) 0.5px;
    padding: 15px 10px;
    width: 230px
}

.borderBLi {
    border-bottom: solid var(--lemony-green) 0.5px;
    padding: 7.5px 10px;
    width: 210px;
}

.liDerouler {
    padding-left: 30px;
}

.liSize {
    width: 230px;
}

#quiDeroulant .liSize,
#suisjeDeroulant .liSize {
    min-width: 210px;
}

#btnBurger {
    display: block;
    position: absolute;
    top: 12px;
    right: 2vw;
    cursor: pointer;
}

#burgerDeroulant,
#quiDeroulant,
#suisjeDeroulant {
    display: none;
    cursor: pointer;
    background-color: white;
}

#burgerDeroulant {
    position: absolute;
    right: 0px;
    background-color: var(--not-really-white);
    border-radius: 0 0 20px 20px;
    width: 250px;
}

.doctoMob {
    width: 100%;
    display: flex;
    justify-content: center;
}

.doctoMob img {
    width: 175px;
    padding: 1vh 0;
}

.doctoDesk {
    display: none;
}

/*footer style*/
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: var(--section-mobile-padding);
}

footer div {
    margin-bottom: 5vh;
}

footer a {
    color: black;
}

footer ul {
    list-style: none;
    padding: 0;
}

#footerAdresse {
    margin-top: 3vh;
}

@media screen and (min-width: 850px) {

    /*general style*/
    h1 {
        font-size: 3.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.7rem;
    }

    p,
    a {
        font-size: 1.35rem;
    }

    section,
    header {
        padding: var(--section-padding);
    }

    section {
        display: block;
    }

    .sectionGrid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1vh 2vw;
    }

    .groupeBtn {
        flex-direction: row;
        justify-content: center;
        gap: 3vw;
    }

    .headerbis {
        flex-direction: row;
        justify-content: center;
        gap: 2vw;
    }

    .sectionImgL {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 5vw;
    }

    .sectionImgR {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5vw;
    }

    .sectionContact {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 5vw;
    }

    .formFlex {
        display: flex;
        justify-content: center;
        gap: 5vw;
    }

    .pictoTel {
        text-align: center;
    }

    .blogGrid {
        grid-template-columns: 1fr 1fr;
    }

    .blogCard {
        padding: 25px;
    }

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

    .pagination{
        margin-top: 10vh;
    }

    .pagination p{
        font-size: 1rem;    
    }

    /*navbar style*/
    nav a:first-child {
        width: auto;
    }

    #btnBurger {
        display: none;
    }

    #burgerDeroulant {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: auto;
    }

    nav div {
        display: flex;
        justify-content: space-between;
    }

    #burgerDeroulant,
    .doctolibNav {
        position: static;
        right: 0px;
        align-items: center;
        gap: 2vw;
    }

    .doctoMob {
        display: none;
    }

    .doctoDesk {
        display: flex;
    }

    .doctoDesk img {
        width: 190px;
        margin-right: 2vw;
        height: auto;
    }

    #navLink {
        display: flex;
        justify-content: center;
    }

    .flexUl,
    ul li {
        border-bottom: none;
        justify-content: space-around;
        width: auto;
        padding: 0;
    }

    #quiDeroulant .liSize,
    #suisjeDeroulant .liSize {
        min-width: auto;
    }

    nav li {
        padding: 0;
        width: auto;
    }

    nav ul li {
        align-items: center;
    }

    .borderBLi {
        border-bottom: none;
        width: auto;
        padding: 0;
    }

    #suisjeDeroulant,
    #quiDeroulant {
        position: absolute;
        top: 42px;
        align-items: flex-start;
        justify-content: space-between;
        border-radius: 0 0 15px 15px;
        padding: 5px;
    }

    #suisjeDeroulant li,
    #quiDeroulant li {
        margin-bottom: 10px;
    }

    /*footer style*/
    footer {
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;
        gap: 2vw;
        padding: 5vh 2.5vw;
    }

    footer h3 {
        font-size: 1.3rem;
        margin-bottom: 1em;
    }

    footer p,
    footer a {
        font-size: 1.1rem;
    }

    #footerBtn {
        order: 2;
        align-self: center;
    }

    #footerArticles {
        order: 1;
    }

    #footerAdresse {
        margin-top: 0;
    }
}