/* FONT */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Josefin+Sans:wght@400;500;600;700&display=swap');

/*
font-family: 'Dancing Script', cursive;
font-family: 'Josefin Sans', sans-serif;

*/

/* PALETTE */

/*
    noir: #160B10
    blanc: #F7EBF0

    jaune: #FFF378

    bleu clair: #3D92A6
    bleu foncer: #254F59

    mauve clair: #A64E6E
    mauve foncer: #592136
*/

/* Text Verticalité */

html{
    width: 100%;
}

body{
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.5;
    font-weight: 500;
    font-size: 1.13em;
    color: #160B10;
    background-color: #F7EBF0;
    padding: 0;
    margin: 0;
    width: 100%;
}

h1, h2, h3{
    font-family: 'Dancing Script', cursive;
    margin-left: 18px;
}

h1{
    font-size: 3.5em;
    margin: 54px auto 108px;
    text-align: center;
}

h2{
    font-size: 2.6em;
    margin-top: 54px;
    margin-bottom: 54px;
}

h3{
    font-size: 1.5em;
    margin-top: 27px;
    margin-bottom: 18px;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
}

h3 span:nth-of-type(2){
    text-align: right;
}

p{
    margin: 1.13em;
    max-width: 500px;
}

p strong{
    font-size: 1.9em;
    font-weight: 700;
    max-width: 80vw;
}

figcaption{
    font-size: 0.8em;
}

button, input[type='submit']{
    font-size: 1.5em;
    background-color: #3D92A6;
    padding: 18px;
    font-weight: 600;
    margin-top: 27px;
    margin-bottom: 72px;
    border-radius: 9px;
    border: none;
    box-shadow: -3px 3px 10px #160B10;
    align-self: flex-end;
}

button span{
    margin-left: 18px;
}

a{
    text-decoration: none;
    color: #254F59;
}

a:focus, a:hover{
    color: #592136;
}

button{
    transition: all ease 0.3s;
    color: #160B10;
    text-decoration: none;
}

button:hover{
    transform-origin: center;
    transform: scale(1.1);
}

.alerte{
    color: #592136;
    margin-top: 144px;
}


/* Images */

ul li a img, footer ul li a img{
    height: 2.2em;
}

ul:nth-of-type(2):first-child li a img.facbook{
    height: 2.6em;
}

header figure img{
    height: 180px;
}

#accueil:first-child figure img{
    height: 216px;
}

nav figure{
    margin: 54px auto;

}

nav figure img{
    height: 55px;
}

section#accueil figure{
    margin: 54px auto 108px;
}

figure{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

ul li:hover a img, ul li:focus a img{
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    transform: scale(1.1);
}


section#contact ul li a img{
    margin-left: 1.13em;
    border-radius: 0;
}

section#contact ul.txt2 li a img{
    height: 1.13em;
    margin: 0.55em 0 0 1.13em;
}

section ul li figure img{
    height: 180px;
}

figure img{
    border-radius: 18px;
    max-width: 80vw;
}

.figure__mimi{
    margin: auto;
    height: 270px;
    display: flex;
    justify-content: center;
}

.figure__mimi img{
    height: 270px;
    margin: auto;
}


/* Google map */

iframe{
    height: 270px;
    max-width: 80vw;
    display: flex;
    justify-content: center;
    margin: 54px auto;
}

/* Formulaire */

form{
    max-width: 80%;
    margin: 72px auto;
}

fieldset{
    display: flex;
    flex-direction: column;
    margin-top: 54px;
}

legend{
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.9em;
}

input, label{
    font-size: 1.5em;
}

fieldset div{
    display: flex;
    align-items: start;
    align-self: start;
}

input[type='submit']{
    align-self: center;
}

input[type='checkbox']{
    margin-top: 63px;
    margin-right: 1.13em;
    height: 1.13em;
    transform: scale(2);
}

label{
    margin-top: 2.25em;
}

/* Navigation */

header{
    position: relative;
}

nav ul{
    background-color: #160B10;
    width: 63px;
    height: 108px;
    padding: 9px;
    border-radius: 0px 9px 9px 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

nav ul{
    width: 80%;
    justify-content: space-around;
}

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

nav{
    background-color: #160B10;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

nav ul li a{
    text-decoration: none;
    color: #F7EBF0;
    margin: 1.13em;
}

nav ul li a:hover, nav ul li a:focus{
    color: #FFF378;
}

nav ul{
    height: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav--hiden{
    position: fixed;
    top: 0;
    left: 100%;
}

.nav__btn{
    background-image: url('../images/menu-open.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-indent: 1500%;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    height: 2.25em;
    width: 2.25em;
    border-radius: 150%;
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 20;
}

.nav__btn--open{
    background-image: url('../images/menu_close.svg');
}

.nav--open{
    transform: translateX(-100%);
}

/* Section */

header, main{
    margin: 72px 18px;
    max-width: 80%;
}

#contact p img{
    height: 1.13em;
    margin-left: 1.13em;
}

section ul{
    margin: 72px auto;
}


.soin__element{
    opacity: 0;
    transform: scaleY(0);
    height: 0;
    transition: all 0.3s ease;
}

.soin__element--open{
    opacity: 1;
    height: auto;
    transform: scaleY(1);
}

.btn--desc{
    display: flex;
    align-items: center;
    margin: 27px auto 72px;
}

.btn__arrow{
    transition: all 0.3s ease;
    height: 1.13em;
}

.btn__arrow--open{
    transform: rotate(90deg);
}

/* Contact */


section#contact div ul{
    display: flex;
}

section#contact div p{
    margin-left: 0;
}

/* Footer */

footer ul li a figure img, #contact p a figure img{
    height: 1.13em;
    border-radius: 0;
}

footer{
    position: relative;
    background-color: #160B10;
    color: #F7EBF0;
    padding: 54px 0px 54px;
    margin-top: 73px;
}

footer ul{
    margin: 0 1.13em;
}

footer ul:nth-child(2){
    display: flex;
    position: absolute;
    right: 1.13em;
    top: 2.26em;
}

footer ul:nth-child(2) li{
    margin-right: 2.26em;
}

footer a{
    color: #F7EBF0;
}

footer a:hover, footer a:focus{
    color: #FFF378;
}

footer ul li a{
    display: flex;
    align-items: center;
    height: 54px;
}

footer ul li a figure{
    height: 1.13em;
    margin-left: 1.13em;
}

footer:last-child{
    display: block;
}

footer p span{
    font-size: 0.88em;
    position: absolute;
    right: 1.13em;
    bottom: 1.13em;
}

/* Réseau */

.reseaux{
    position: fixed;
    left: 18px;
    top: 36px;
    z-index: 20;
}

.facebook{
    height: 2.6em;
    position: relative;
    left: -0.2em;
}

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

    h3{
        justify-content: space-around;
    }

}



/* TABLETTE */

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

    header, main{
        margin: 72px auto;
        max-width: 90%;
    }


    header figure img{
        height: 270px;
    }

    .nav__btn{
        top: 1.13em;
        bottom: inherit;
    }

    iframe{
        padding-bottom: 2.23em;
    }

    section{
        width: 100%;
        margin: 0 auto;
    }

    section h2{
        text-align: center;
    }

    section ul{
        width: 100%;
        margin: 72px auto;
    }

    section ul li p{
        width: 100%;
    }

    section ul li figure{
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    section ul li figure img{
        max-width: 100%;
        height: 136px;
    }


    h3{
        font-size: 1.5em;
    }

    .txt3{
        margin-left: 2.26em;
    }

    .facebook{
        height: 2.6em;
    }


    /* Section */

    section h2{
        text-align: center;
    }

    /* Grid */


    section ul li{
        display: flex;
        flex-direction: column;
        margin: 18px 36px;
        justify-content: space-between;
    }
    /* grid accueil */

    header#accueil{
        display: grid;
        grid-template-areas: 
            "alr alr"
            "logo logo"
            "h1 h1"
            "p1 f1"
            "p2 p2";
    }

    header#accueil p.alerte{
        grid-area: alr;
        margin: 18px auto;
        width: 100%;
    }

    header#accueil figure:nth-of-type(1){
        grid-area: logo;
    }

    h1{
        grid-area: h1;
    }

    header#accueil p.intro{
        grid-area: p1;
        align-self: center;
    }

    header#accueil figure.figure__mimi{
        grid-area: f1;
    }

    .figure__mimi img{
        height: 360px;
    }

    header#accueil p.accueil__strong{
        grid-area: p2;
        margin: 18px auto;
        width: 100%;
    }


    /* grid epilation */


    h2{
        margin-left: auto;
        margin-right: auto;
    }

    section#epilation ul{
        display: grid;
        grid-template-areas: 
            "one two"
            "tree for"
            "five six"
            "sev hit"
            "nine ten"
            "elf no";
    }


    section#epilation ul li.list__element--one{
        grid-area: one;
    }

    section#epilation ul li.list__element--two{
        grid-area: two;
    }

    section#epilation ul li.list__element--tree{
        grid-area: tree;
    }

    section#epilation ul li.list__element--for{
        grid-area: for;
    }

    section#epilation ul li.list__element--five{
        grid-area: five;
    }

    section#epilation ul li.list__element--six{
        grid-area: six;
    }

    section#epilation ul li.list__element--sev{
        grid-area: sev;
    }

    section#epilation ul li.list__element--hit{
        grid-area: hit;
    }

    section#epilation ul li.list__element--nine{
        grid-area: nine;
    }

    section#epilation ul li.list__element--ten{
        grid-area: ten;
    }

    section#epilation ul li.list__element--elf{
        grid-area: elf;
    }

    
    /* grid manucure et pedicure */

    section#main-pied ul{
        display: grid;
        grid-template-areas: 
            "one two"
            "tree for"
            "five no";
    }

    section#main-pied ul li:last-child{
        grid-area: last;
        margin: 18px auto;
    }

    section#main-pied ul li.list__element--one{
        grid-area: one;
    }

    section#main-pied ul li.list__element--two{
        grid-area: two;
    }

    section#main-pied ul li.list__element--tree{
        grid-area: tree;
    }

    section#main-pied ul li.list__element--for{
        grid-area: for;
    }

    section#main-pied ul li.list__element--five{
        grid-area: five;
    }

    
    /* grid massage et soin de peau */

    section#massage ul{
        display: grid;
        grid-template-areas: 
            "one two"
            "tree for"
            "five six";
    }


    /* Footer */

    footer {
        display: flex;
        justify-content: space-between;
    }


  }

/* PC */  

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

    h3{
        justify-content: space-between;
    }

    section ul li{
        max-width: 80%;
    }

    section ul li figure img{
        height: 144px;
    }

    .txt3{
        margin-left: 0;
    }

    /* Navigation */

    header ul{
        border-radius: 0px;
    }

    main, header{
        width: 80%;
        margin: 0 auto;
    }

    header{
        margin-top: 126px;
    }
    
    .reseaux{

        top: 108px;
        width: 83px;
    }

    .facebook{
        height: 2.6em;
    }
    
    nav, nav ul{
        flex-direction: row;
        justify-content: space-evenly;
        height: 73px;
        width: 100%;
    }

    .nav__btn{
        display: none;
    }

    .nav--hiden{
        left: 0;
    }

    nav figure{
        flex-direction: initial;
        margin: 9px 0 0 0;
    }

    nav figure img{
        height: 55px;
        margin: 0.55em;
    }

    iframe{
        margin-left: 2.26em;
    }


    /* Grid */

    /* grid epilation */

    section#epilation ul{
        grid-template-areas:
        "one two tree"
        "for five six"
        "sev hit nine"
        "ten no elf";
    }


    /* grid manucure pedicure */

    section#main-pied ul{
        grid-template-areas:
        "one two tree"
        "for no five";
    }

    /* grid massage et soin de peau */

    section#massage ul{
        display: grid;
        grid-template-areas: 
            "one two tree"
            "for five six";
    }


    /* grid contact */

    section#contact{
        display: grid;
        grid-template-areas: 
        "h2 h2"
        "for txt"
        "for txt"
        "for map"
        "for mimi"
        "for no";
    }

    section#contact h2{
        grid-area: h2;
    }


    section#contact h2+p{
        grid-area: for;
        margin-left: 0;
    }

    section#contact div p{
        margin-left: 2.26em;
    }

    section#contact div:nth-child(0){
        grid-area: txt;
    }

    section#contact div:nth-child(0) p{
        grid-area: txt;
        margin-left: 1.13em;
    }

    section#contact form{
        grid-area: for;
    }

    section#contact figure{
        grid-area: mimi;
        align-self: self-start;
    }

    section#contact figure img{
        height: 360px;
    }

    section#contact iframe{
        grid-area: map;
        max-width: 400px;
    }


  }