html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lexend", sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size:20px;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

.contenu {
    z-index: 0;
    background-color: #B8B9A5;
    color:#4D5947;
    overflow-x: hidden;
}

.page {
    overflow-x: hidden;
}


/* -------------- navigation  --------------  */

.navigation {
    position: fixed;
    border: #4D5947 solid 3px;
    border-radius: 50px;
    background-color: #B8B9A5;
    display: flex;
    justify-content:space-between;
    align-items: center;
    gap:20px;
    z-index: 3;
    width: calc(100% - 160px);
    margin-left: 80px;
    margin-right: 80px;
    top: 30px;
}

.navigation__li {
    display:flex;
    list-style: none;  
    margin:3px;
    padding:0;
}

.navigation--logo {
    font-weight: 900;
}

.navigation__el {
    display: flex;
    text-decoration: none;
    color:  #4D5947;
    padding: 10px;
    font-weight: 600;
    width: 150px;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation__el--active {
    color:#F5F5F5 !important;
    background-color: #4D5947;
    border-radius: 50px;
}

.navigation__toggle {
    display: none;
}

.no-scroll{ 
    overflow: hidden;
}


/* -------------- header  --------------  */

.header {
    background-color: #B8B9A5;
}

.header__title {
    margin-left:200px;
    margin-right:200px;
    padding:0;
}

.header__img {
    position: relative;
    padding: 0;
    margin:0;
    line-height: 0;
}

.header__img img {
    width: 100%;
    height: auto;
    rotate: 180deg;
}

.header__img::before {
    content:"";
    position: absolute;
    background: linear-gradient(to bottom, #B8B9A5, rgba(184, 185, 165, 0) );
    width: 100%;
    z-index: 1;
    height:20%;
    top:0;
}

.header__img::after {
    content:"";
    position: absolute;
    background: linear-gradient(to top , #B8B9A5, rgba(184, 185, 165, 0) );
    width: 100%;
    z-index: 2;
    height:20%;
    bottom: 0;
    left: 0;
}

/* -------------- Titres  --------------  */

.title{
    font-size: clamp(1.6875rem, 1.4471rem + 1.9231vw, 3.25rem);
    margin: 0;
}

.title--main{
    font-family: "Playfair Display", serif;
    font-size: clamp(2.9375rem, 1.2548rem + 13.4615vw, 13.875rem);
    font-style: italic;
    font-weight:900 ;
    color: #750238;
    display: flex;
    margin-top: 85px;
    margin-bottom: -100px;
    line-height: 1.8;
}

.title--main2{
    font-size: clamp(2.5625rem, 1.6394rem + 7.3846vw, 8.5625rem);
    font-weight:900 ;
    color: #4D5947;
    line-height: 120%;
    margin-bottom: 137px;
    display: flex;
    line-height: 1.2;
}

.title--small{
    font-size: clamp(2.1875rem, 1.7067rem + 3.8462vw, 5.3125rem);
    font-weight:900 ;
    color:#ADBCDC;
    text-align: center;
    grid-column: 1/8 ;
    margin-bottom: 137px;
    margin-top:137px
}


/* -------------- Wrapper titre  --------------  */

.wrapper__titre {
    opacity: 0;
    transform: translateX(-100px) rotate(180deg);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.9375rem, 1.2548rem + 13.4615vw, 13.875rem);
    font-style: italic;
    font-weight:900 ;
    writing-mode: vertical-rl; 
    display: inline-block;
    white-space: nowrap;
    justify-self: center; 
    color: #750238;
    margin: 0;
    padding: 0;
    left:0;
}

.wrapper__titre--a {
    grid-column: 1/3;
    grid-row: 1;
}

.wrapper__titre--b {
    color: #F5F5F5;
    grid-column: 6/8;
}

.wrapper__titre--c {
    grid-column: 1/3;
}

.wrapper__list--show .wrapper__titre {
    opacity: 1;
    transform: translateX(0) rotate(180deg); 
}


/* -------------- Figure  --------------  */

.figure {
    padding:0;
    margin:0;
}

.figure__txt {
    padding:30px;
}

.figure__img {
    width: 100%;
    border-radius: 50px;
}


/* -------------- Wrapper list  --------------  */

.wrapper__container {
    margin-top:137px;
}
.wrapper__list {
    margin-left:200px;
    margin-right:200px;
    padding:0;
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    grid-gap:20px;
    margin-bottom: 137px;
}

.wrapper__contenu--a {
    grid-column: 3/7;
}

.wrapper__contenu--b {
    grid-column: 1/6;
    grid-row: 1;
}

.wrapper__list--b {
    position: relative;
    padding-bottom: 10px;
    padding-top:10px;
    color:#F5F5F5;
    z-index: 0;
}

.wrapper__list--b::before{
    content: "";
    display: block;
    width: 105vw;
    background-color:#750238;
    position: absolute;
    left: -230px;
    height: 110%;
    top: -20px;
    transform:rotateZ(-2deg);
    z-index: -1;
}

.wrapper__contenu--c {
    grid-column: 3/7;
}


/* -------------- btn  --------------  */

.bouton {
    display: flex;
    color:#750238;
    border: #750238 solid 5px;
    border-radius:60px;
    padding: 25px;
    font-weight: 500;
    width: 35%;
    justify-content: center;
    margin:0 auto;
    margin-top: 137px;
    text-decoration: none;;
}

.bouton:hover {
    text-decoration: underline;
}


/* -------------- Footer  --------------  */

.footer{
    position: relative;
    padding-top: 85px;
    background-color:#750238;
    z-index: 0;
    margin-top: 137px;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer:before{
    content: "";
    display: block;
    width: 70%;
    background-color:#F5F5F5;
    position: absolute;
    left: -250px;
    top: 0;
    height: 100%;
    transform: skew(20deg);
    z-index: -1;
}

.footer__contenu {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.footer--1 {
    width: 50%;
    text-align: center;
    color:#4D5947;
}

.footer--2 {
    width: 50%;
    text-align: center;
    color:#F5F5F5;
}

.footer--4 {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    padding-top:85px;
}

.footer__lien--1 {
    color: #4D5947;
}

.footer__lien--2 {
    color: #F5F5F5;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


/* -------------- Media queries  --------------  */

@media (max-width: 900px){

    body {
        font-size: 18px;
    }

    .wrapper__container {
        overflow-x: hidden;
    }
    
    .header__title , .wrapper__list {
        margin-left:32px;
        margin-right:32px;
    }

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

    .wrapper--img {
        width: 50%;
        align-self:center;
        margin-top: 32px;
        margin-bottom: 81px;
    }

    .wrapper__titre {
        display: inline-block;
        writing-mode:horizontal-tb; 
        transform: translateX(-50px) rotate(0deg); 
        white-space: nowrap;
    }

    .wrapper__list--show .wrapper__titre {
        transform: translateX(0) rotate(0deg);
    }

    .wrapper__contenu--a, .wrapper__contenu--b, .wrapper__contenu--c {
        grid-column: auto;
        box-sizing: border-box;
        margin-top: 0;
        margin-bottom: 81px;
    }

    .wrapper__list--b::before {
        width: 140vw;
        left: -75px;
        height: 100%;
    }

    .title--main {
        padding-bottom: 67px;
    }

    .title--small {
        margin-bottom: 46px;
        margin-top: 46px;
    }

    .navigation__toggle{
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 20; 
    }

    .icon--burger {
        fill:#750238;
    }

    .icon--burger:hover{
        fill:#4D5947;
        transition: fill 0.3s ease-in-out;
    }

    .navigation {
        width: calc(100% - 32px);
        margin:0;
        padding: 0;
        display: flex;
        flex-direction: column; 
        align-items: center;
        position: static; 
        border-style: none;
    }

    .navigation--logo {
        display: flex;
        align-self: self-start;
        justify-content:flex-start;
        margin:18px;
        padding:0;
    }

    .navigation__li{
        padding: 32px;

        flex-direction: column;
        align-items: center;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        background-color:#B8B9A5;
        margin: 0; 
        z-index: 10;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .navigation--open .navigation__li{
        transform: translateX(0);
    }

    .bouton {
        width: 60%;
        text-align: center;
    }

    .footer__contenu {
        flex-direction: column;
        align-items: center;
        background-color:#750238;
    }

    .footer--1, .footer--2 {
        color: #F5F5F5;
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .footer__lien--1 {
        color: #F5F5F5;
    }

    .footer:before {
        content: none;
    }
}

@media (min-width: 901px) and (max-width: 1280px) {

    body {
        font-size: 18px;
    }

    .header__title, .wrapper__container {
        margin-left: 80px;
        margin-right: 80px;
    }

    .navigation {
        width: calc(100% - 160px);
        margin-left: 80px;
        margin-right: 80px;
    }

    .navigation__li {
        grid-column: 4 / -1; 
    }

    .navigation__el {
        width: 120px;
    }

    .title--main {
        margin-bottom: -32px;
        margin-top: 98px;
    }

    .title--small {
        margin-bottom: 46px;
        margin-top: 46px;
    }

    .bouton {
        width: 50%; 
    }

    .wrapper__titre {
        transform: translateX(-100px) rotate(0deg);
        display: inline-block;
        writing-mode:horizontal-tb; 
        transform: none; 
        white-space: nowrap;
    }

    .wrapper__list--show .wrapper__titre {
        transform: translateX(0) rotate(0deg);
    }

    .wrapper__titre--a, .wrapper__titre--c {
        grid-column: 1/8;
        grid-row: 1;
    }

    .wrapper__titre--b {
        grid-column: 2 / 8;
        grid-row: 1;
    }

    .wrapper__list {
        margin-left:0;
        margin-right:0;
    }

    .wrapper__contenu--a, .wrapper__contenu--c {
        grid-column: 1 / 7; 
        grid-row: 2;
    }
    
    .wrapper__contenu--b {
        grid-column: 2 / 8;
        grid-row: 2;
    }

    .wrapper__list--b::before {
        left:-110px;
    }

    .footer:before {
        left:-150px;
    }
    
}



