:root {
    /** VARIABLES **/
    /* Fonts */
    --titleFont: Andale Mono, monospace;
    --mainFont: "Poppins", Helvetica, Arial, sans-serif;

    /* Couleurs */
    --black: #333333;
    --white: #faf7f6;
    --boxShadow: 0 0 5px #ababab;
    --colorPrimary: #2e5a75;
    --colorPrimaryHover: #457d9d;
    --colorPrimaryFocus: #203F52;
    --colorSecondary: #427b4b;
    --colorSecondaryHover: #569f62;
    --colorSecondaryFocus: #2F5735;

    /* Tailles */
    --titleSize: 35px;
    --textSize: 16px;
    --textSizeResponsive: 14px;

    scroll-behavior: smooth;
}
@media (min-width: 1024px) {
    :root {
        scroll-padding-top: 195px;
    }
}

body {
    color: var(--black);
    background-color: var(--white);
}
main {
    padding-top: 195px;
}

/***** HEADER *****/
header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    box-shadow: var(--boxShadow);
    z-index: 1;
    position: fixed;
    width: 100%;
    background-color: var(--white);
}

#acj-logo {
    align-self: center;
    display: flex;
    justify-content: center;
    margin: 30px;
}

#acj-logo img:last-child{
    display: none;
}

nav {
    display: flex;
    justify-content: end;
    align-self: end;
    width: 100%;
    max-width: 1320px;
    padding-right: 5%;
    background-color: var(--white);
    z-index: 10;
}
nav i::before {
    display: none;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 200px));
    text-align: center;
}

nav ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

nav ul li a{
    text-decoration: none;
    font-weight: bold;
    color: var(--black);
    transition: .2s ease-in all;
    padding: 50px;
}

nav ul li:hover a,
nav ul li:hover i::before{
    color: var(--colorSecondaryHover);
}
#acj-doctolib a,
#acj-contactInfo a{
    align-self: start;
    justify-self: end;
    text-decoration: none;
    margin: 2rem;
    color: var(--white);
    background-color: var(--colorPrimary);
    padding: 10px 20px;
    border-radius: 50px;
    transition: .2s ease-in all;
}

#acj-doctolib a:hover,
#acj-contactInfo a:hover{
    background-color: var(--colorPrimaryHover);
}

#acj-contactInfo a {
    margin: 1rem 0 0 0;
}

@media (max-width: 1500px) {
    nav {
        padding-bottom: 30px;
        padding-right: 0;
    }
}

@media (max-width: 1024px) {
    *{
        scroll-margin-top: 132px;
    }
    #acj-doctolib {
        display: none;
    }
    header {
        grid-template-columns: 1fr;
    }
    header #acj-logo img:first-child {
        display: none;
    }
    header #acj-logo img:last-child {
        display: block;
        width: 100px;
    }
    main {
        padding-top: 132px;
    }
    nav {
        position: fixed;
        bottom: 0;
        padding-bottom: 0;
        box-shadow: var(--boxShadow);
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    nav i::before{
        display: block;
    }
    nav ul li {
        padding-top: 1rem;
    }
    nav ul li a {
        padding: 10px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    body {
        padding-bottom: 85px;
    }

    nav ul {
        grid-template-columns: repeat(4, minmax(95px, 200px));
    }
}

@media (max-width: 500px) {
    nav a {
        font-size: var(--textSizeResponsive);
    }
}

/***** BODY *****/
body {
    margin: 0;
    overflow-y: scroll;
}
h1, h2 {
    font-family: var(--titleFont);
    background-color: transparent;
}
h1 {
    font-size: var(--titleSize);
    color: var(--white);
}
p, a, b, li, tr, td {
    font-family: var(--mainFont);
    font-size: var(--textSize);
    background-color: transparent;
}

a {
    color: var(--colorPrimary);
    text-decoration: none;
    transition: .2s ease-in all;
}

a:hover {
    color: var(--colorPrimaryHover);
}

a:focus {
    color: var(--colorPrimaryFocus);
}


.acj-text {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    width: 45%;
    padding: 0 3%;
}
/*** SECTION PRESENTATION ***/

section {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
}

#acj-acupunctureIntro{
    background-color: var(--colorSecondary);
}
#acj-acupunctureIntro h2,
#acj-acupunctureIntro p{
    color: var(--white);
}

#acj-presentation p,
#acj-presentation h2,
#acj-presentation h1 {
    color: var(--black);
}

#acj-presentation strong {
    color: var(--colorSecondary);
}

#acj-acupunctureConsult {
    justify-content: center;
    padding-top: 50px;
}

#acj-acupunctureIntro{
    justify-content: end;
}

section img {
    width: 45%;
}

section p {
    line-height: 30px;
}

#acj-contact {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 5%;
}

#acj-contact > div {
    max-width: 1400px;
}

#acj-contactInfo {
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
#acj-contactInfo > div {
    flex: 1 0 175px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 15px;
    color: var(--white)
}

#acj-contactInfo > div > div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#acj-contactInfo i::before {
    font-size: 30px;
}

#acj-contactInfo > div:first-child {
    background-color: var(--colorSecondaryFocus);
}
#acj-contactInfo > div:nth-child(2){
    background-color: var(--colorSecondary);
}
#acj-contactInfo > div:last-child{
    background-color: var(--colorSecondaryHover);
}

#acj-contactInfo p {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 0;
}
@media (max-width: 1024px) {
    section img {
        flex: 1 0 200px ;
    }
    #acj-acupunctureIntro{
        flex-flow: wrap-reverse;
    }
    .acj-text {
        width: 100%;
    }
}

/***** MAP *****/
#map {
    width: 100%;
    flex: 1 0 800px;
    z-index: 0;
}
#map img,
.leaflet-top.leaflet-left,
.leaflet-popup-tip-container{
    background-color: transparent;
}

footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}
/***** Pages annexes *****/

#acj-annexPages {
    display: flex;
    justify-content: center;
    align-items: center;
}

#acj-annexPages h1 {
    color: var(--black);
    align-self: center;
}
.acj-simpleText {
    max-width: 1500px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
}


/***** Card *****/
#acj-acupunctureConsult {
    gap: 20px;
}
#acj-acupunctureConsult .card {
    flex: 1 0 500px;
}
#acj-acupunctureConsult h2 {
    width: 100%;
    text-align: center;
}
.card {
    border: 2px solid var(--colorPrimary);
    border-radius: 14px;
    max-width: 300px;
    height: 350px;
}
.card p {
    color: var(--white);
    background-color: var(--colorPrimary);
    margin: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    font-weight: bold;
    text-align: center;
}

.card ul {
    list-style-type: none;
    padding: 15px;
}

.card li:not(:last-child) {
    padding-bottom: 15px;
}