@font-face{
  font-family: 'Libertinus';
  src: url('libertinus/LibertinusSerif-Regular.woff') format("woff");
  font-display: swap;
  font-style:normal;
  font-weight: 800;
}
@font-face{
  font-family: 'Montserrat';
  src: url('montserrat/Montserrat-Regular.woff') format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face{
  font-family: 'Montserrat';
  src: url('montserrat/Montserrat-Bold.woff') format("woff");
  font-display: swap;
  font-style:normal;
  font-weight:900;
}



:root{
    --fond: #FCF8F4;
    --darkGreen: #00391A;
}

body{

    background-color: var(--fond);
    position: relative;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
a{
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover{
    color: #026b31; 
    cursor: pointer;
}
.f-montserrat{
    font-family: "Montserrat" ,sans-serif;
    font-size: 1rem;
    font-weight: normal;
}

.f-libertinus{
    font-family: "Libertinus serif";
    font-size: 2rem;
}

/* Css header */
header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top:1%;
    /*padding: 1rem 0;*/
    z-index: 2;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease-in;
   
}
.menu-button{
    display: none;
}

header a{
    color: var(--darkGreen);    
}

.block_title_header{
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

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

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

.block_title_header p{
    margin-bottom: 0;
}

.block_title_header img{
    height: 50px;
    width: 65px;
    object-fit: cover;
    object-position: center;
    margin-right: 2rem;
}

.title_rosine{
    font-size: 1.375rem;
    line-height: 1.375rem;
}

.title_dieteticienne{
    font-size: 0.75rem;
    line-height: 0.875;
}

nav{
    font-size: 1rem;
    text-transform: uppercase;
    font-weight:normal;
    margin-right: 2rem;
}

nav a{
    padding: 0 1rem;
}

header:hover{
    background-color: rgba(252, 248, 244, 0.5);
}

li,ul{
   list-style: none;
}

#menu, ul{
    display: flex;
}
@media only screen and (max-width: 768px){

    header{
        position: sticky;
        background-color: #FFFFFF;
        padding-top: 1rem;
        top:0;
    }

    nav{
        display: flex;
        flex-direction: column;
        width: 100%;
        top: 100%;
        left: 0%;
        justify-content: center;
        position: absolute;
        text-align: center;
        background-color: rgba(255, 255, 255, 1);
       
    }

    #menu{
        visibility: hidden;
        transform: scaleY(0);
        opacity: 0;
        transform-origin: top top;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    #menu ul{
        flex-direction: column;
    }

    #menu li{
               padding: 1rem;
        margin: 0;
        border-bottom: solid 0.1rem var(--darkGreen);
    }
    #menu li:first-child{
        border-top: solid 0.1rem var(--darkGreen);
    }


   
   

    header:hover{
    background-color: #FFFFFF;
    }
    header a{
        color: var(--darkGreen);
    }
    .menu-button {
        display: block;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 6px;
        width: 56px;
        height: 56px;
        border: none;
        background-color: transparent;
    }



    .menu-button__line,
    .menu-button::before,
    .menu-button::after {
        content: "";
        width: 28px;
        height: 2px;
        background-color:  var(--darkGreen);
        transition: transform 0.3s, opacity 0.3s;
    }

    .menu-button.is-opened .menu-button__line {
        opacity: 0;
    }

    .menu-button.is-opened::before {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-button.is-opened::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .title_rosine{
        color: var(--darkGreen); 
        font-size: 1.188rem;
        line-height: 1.375rem;
    }

    .title_dieteticienne{
        color: var(--darkGreen);
        font-size: 0.65rem;
        line-height: 0.875;
    }
}

/* Css block ensemble */

.block_ensemble{
    display: flex;
    width: 100%;
    margin-top: -5rem;
}
.text_block_ensemble{
    width: 65%;
    color: var(--darkGreen);
    text-align: center;
    margin-top: 10rem;
    padding: 0 2rem;
    height: auto;

    
}

.text_block_ensemble h1{
    text-transform: uppercase;
}

.text_block_ensemble p{
    margin: 1.25rem 0;
    font-weight: light;
    font-size: 3.3rem;
}

.img_block_ensemble{
    width: 35%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
   
    z-index: 1;
    transform:scaleX(-1);
}

.btn_contact{
    color :#FFFFFF;
    text-transform: uppercase;
    background-color: #A9A490;
    padding: 0.35rem 0.75rem;
    border-radius: 1.375rem;
    transition: background-color 0.3s ease-in;
}

.btn_contact:hover{
    background-color: #8f8a78;
    color: #FFFFFF;
}

@media only screen and (max-width: 768px){
    .block_ensemble{
        flex-direction: column-reverse;
        margin-top: 0rem;
    }

    .img_block_ensemble{
        width: 100%;
        display: none;
    }

    .text_block_ensemble{
        width: 100%;
        padding: 2.75rem 0rem;
        align-self: center;
        margin-top: 0rem;
    }

    .text_block_ensemble h1{
        font-size: 0.875rem;
    }

    .text_block_ensemble p{
        font-size: 1.5rem;
    }
}

/* Css block une passion */

.block_passion{
    background-color: #E4DFD7;
    display: flex;
    align-items: center;
    color: var(--darkGreen);
    height: 60vh;
}

.block_img_passion{
    width: 50%;
    display: flex;
    justify-content: center;
    margin-bottom: -15rem;
}

.img_block_passion{
    width: 350px;
    height: 80%;
    object-fit: cover;
    object-position: center;
}

.text_block_passion{
    width: 40%;
}

.text_block_passion h2{
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.text_block_passion p{
    margin-bottom: 1rem;
}

@media only screen and (max-width: 768px){
    .block_passion{
        flex-direction: column-reverse;
        height: auto;
        margin-bottom: 2.75rem;
    }

    .text_block_passion{
        width: 100%;
        padding: 2.75rem 0rem;
    }

    .text_block_passion h2{
        font-size: 1.5rem;
        padding-left: 1.25rem;
    }

    .text_block_passion p{
        font-size: 0.875rem;
        width: auto;
        padding: 0rem 1.25rem;
    }

    .img_block_passion{
        width: 100%;
        object-position: top;
    }

    .block_img_passion{
        width: 100%;
        margin-bottom: 0rem;
    }
}


/* Css blocks tarifs */
.block_rates{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    width: 1100px;
}

@media only screen and (max-width: 1100px){
    .block_rates{
        width: 768px;
    }
}
.block_rates_intro{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    text-align: center;
    margin-top: 8rem;
}

.h3_green_light{
    color: var(--darkGreen);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.h2_green_bold{
    color: var(--darkGreen);
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;

}

.block_rates_explications{
    display: flex;
    justify-content: center;
    justify-self: center;
    color: var(--darkGreen);
    margin-top: 4.688rem;
   
}

.block_rates_left{
    width: 50%;
    border-right: solid 0.1rem var(--darkGreen);
    padding-right: 3rem;
     flex-grow: 1;
}

.block_rates_left p{
    margin-bottom: 1rem;
}

.block_rates_right{
    width: 50%;
    margin-left: 3rem;
    flex-grow: 1;
}

.block_rates_left .btn_contact{
    margin-top: 1.438rem;
}

.price{
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.explications{
    margin-bottom: 2.25rem;
}

@media only screen and (max-width: 768px){
    .block_rates_intro{
        margin-top: 0rem;
    }

    .block_rates{
        flex-direction: column;
        width: auto;
        margin: 0;
        border-right: none;
    }

    .block_rates_explications{
        flex-direction: column;
        margin-top: 1.875rem;
    }

    .block_rates_left{
        width: 100%;
        border-right: none 0rem var(--darkGreen);
        display: flex;
        flex-direction: column;
        padding-right: 0;
    }

     .block_rates_left p{
        font-size: 0.875rem;
        padding: 0 1.25rem;
    }

     .block_rates_left .btn_contact{
        align-self: center;
    }


    .block_rates_right{
        width: 100%;
        margin-left: 0rem;
        padding: 0 1.125rem;
    }

    .h3_green_light{
        font-size: 0.875rem;
    }

    .h2_green_bold{
        font-size: 1.5rem;
    }

    .explications{
        font-size: 0.875rem;
    }

    .price:first-child{
        margin-top: 1rem;
    }
}

/* CSS  Block Contact */

.block_contact{
    background-color: #E4DFD7;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8rem;
    text-align: center;
    color: var(--darkGreen);
}

iframe{
    padding: 4.5rem;
    border-style: none;
}
.block_text_contact{
    display: flex;
    flex-direction: column;
}
.h3_text_contact{
    display: flex;
    flex-direction: column;
    text-align: center;
}
.h2_green_bold:last-child {
    margin-top:-1rem;
}
address{
    display: flex;
    flex-direction: column;
}
.block_text_contact p, a,address{
    color: var(--darkGreen);
    margin-bottom: 1rem;
}

/* Css footer */

footer{
    display: flex;
    justify-content: center;
    color: var(--darkGreen);
    margin: 3rem 0;
}

footer a{
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}


@media only screen and (max-width: 768px){
    .block_contact{
        margin-top: 2.75rem;
        flex-direction: column-reverse;
        padding: 2.75rem 1.25rem;
    }

    iframe{
        width: 90%;
        padding: 1.25rem;
    }

    footer{
        flex-direction: column;
        text-align: center;
    }

    footer p{
        display: none;
    }
}


/* Css mentions légales */

.container{
    width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    height: 100vh;
}
.h1_mentions_legales{
    color: var(--darkGreen);
    font-size: 5rem;
    text-align: center ;
}

.block_mention h2{
    color: var(--darkGreen);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin:1rem 0;
}

.block_mention p{
    line-height: 1.5rem;
}

@media only screen and (max-width: 768px){

    .container{
        width: 100%;
    }
    .h1_mentions_legales{
        font-size: 2rem;
    }
    .block_mention{
        padding: 0 2rem;
    }

    .block_mention h2{
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

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

     .menu-button_mentions {
        display: block;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 6px;
        width: 56px;
        height: 56px;
        border: none;
        background-color: transparent;
    }



    .menu-button__line_mentions,
    .menu-button_mentions::before,
    .menu-button_mentions::after {
        content: "";
        width: 28px;
        height: 2px;
        background-color: var(--darkGreen);
        transition: transform 0.3s, opacity 0.3s;
    }

    .menu-button_mentions.is-opened .menu-button__line_mentions {
        opacity: 0;
    }

    .menu-button_mentions.is-opened::before {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-button_mentions.is-opened::after {
        transform: translateY(-8px) rotate(-45deg);
    }
}