@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap'); /*Lexend*/

:root{
    --main-color: #322922;
    --second-color: #5b4535;
    --third-color: #794e2f;
    --fourth-title-color: #965b31;
    --before-hover-color: #817064;
    --after-hover-color: #ec8601;
    --div-color: #d8c1a493;
    --button-color: #4f4f4f;
    /* #ecd4bf */
     
}

*{
    position: relative;
}

body{
    font-family: "Lexend", serif; 
    color: var(--main-color);
    font-size: 18px;
    background-image: url(../images/archeorange.jpg);
    background-size: cover;
    background-attachment: fixed;
    margin: 1% 4%;
    text-align: center;
    line-height: 180%;
}

.important{
    color: #c87100;
    text-decoration: none;
}

h1{
    color: var(--main-color);
}
h2{
    color: var(--third-color);
}
h3{
    color: var(--fourth-color);
}

a{
    text-decoration: none;
    color: var(--before-hover-color);
    &:hover{
        transition: .2;
        color: var(--after-hover-color);
    }
}

figcaption{
    font-size: 14px;
}

.fat{
    color: var(--main-color);
}

.signature{
    text-align: right;
}

.center{
    text-align: center;
}

.phonobase{
    font-size: 50px;
}

.stick-to-side{
    text-align: justify;
}

li{
    text-align: justify;
    list-style-type: none;
    margin-bottom: 20px;
}

.listeCitation >li{
    list-style-type: decimal;
}
p{
    text-align: justify;
}

 

.colorfulTitle {
    text-align: center;
    padding: 0px;
    & > li {
        display: inline-block;
        font-size: 36px;
        font-weight: bold;
    }
    & li:nth-child(1) { color: rgb(133, 16, 16); }   
    & li:nth-child(2) { color: rgb(116, 98, 35); }
    & li:nth-child(3) { color: rgb(167, 47, 155); } 
    & li:nth-child(4) { color: rgb(200, 0, 13); }  
    & li:nth-child(5) { color: rgb(255, 89, 0); }
    & li:nth-child(6) { color: rgb(148, 151, 151); }   
    & li:nth-child(7) { color: rgb(255, 213, 0); } 
    & li:nth-child(8) { color: rgb(103, 106, 0); } 
    & li:nth-child(9) { color: rgb(9, 125, 11); } 
    & li:nth-child(10) { color: rgb(49, 174, 99); } 
    & li:nth-child(11) { color: rgb(32, 69, 92); } 
    & li:nth-child(12) { color: rgb(148, 151, 151); } 
    & li:nth-child(13) { color: rgb(150, 21, 38); } 
    & li:nth-child(14) { color: rgb(253, 196, 63); } 
    & li:nth-child(15) { color: rgb(32, 69, 92); } 
    & li:nth-child(16) { color: rgb(28, 110, 161); } 
    & li:nth-child(17) { color: rgb(37, 79, 105) } 
}

.space-top{
    margin-top: 40px; 
}
.space-bottom{
    margin-bottom: 40px;
}

section{
    margin-top: 40px;
    margin-bottom: 40px;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--div-color);
    border-radius: 15px;
    border: 1px solid #98877b4b;
    height: 50px;
    padding: 0 10px;
    justify-content: space-between; 
    & .dropdown {
        position: relative;
        display: flex;
        flex-direction: column; 
        align-items: center;
        flex: 1;
    } 
    & .languages {
        display: flex;
        flex-direction: row;
        justify-content: flex-end; 
        align-items: center;
        margin: 0 50px 0 50px;
        flex: 1;
        *{
            margin: 18px;
        }
        & img {
            border-radius: 5px;
            width: 33px;
            box-shadow: 0 0 5px 1px #5b453539;
            margin: 10px;
        }
    }
    & a {
        display: flex; 
        justify-content: center;
        align-items: center; 
        margin: 5px; 
        cursor: pointer;
        position: relative;
        &:hover{
            color: var(--fourth-title-color);
        }   
    }
    .icons{
        margin: 0 200px 0 200px;
    }
    & i{
        font-size: 25px;
        &:hover{
            color: var(--fourth-title-color);
        }   
    }
    & .dropbtn {
        font-family: "Lexend", serif ;
        background-color: transparent;
        color: var(--before-hover-color);
        padding: 14px 16px;
        font-size: 17px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: background-color 0.3s ease; /* Smooth transition for background color change */
    }
    & .dropdown-content {
        display: none;
        position: absolute;
        top: 100%; /* Position dropdown content just below the button */
        right: 0; /* Align dropdown content with the left edge of the button */
        background-color: #faf0e8f3;
        border: solid transparent;
        border-radius: 10px;
        min-width: 230px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
    }
    & .dropdown-content a {
        color: var(--main-color);
        padding: 12px 16px;
        text-decoration: none;
        border-radius: 10px;
        display: block;
        text-align: left;
    }
    & .dropdown-content a:hover {
        background-color: #f1e7dff3;
    } 
    & .dropdown:hover .dropdown-content {
        display: block;
    }
    & .dropdown .dropbtn:hover  {
        background-color: transparent;
        color: var(--fourth-title-color);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}

footer{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: var(--before-hover-color);
    background-color: var(--div-color);
    border: 1px solid #98877b4b;
    border-radius: 15px;
    height: 140px;
    padding: 10px;
    & .column {
        display: flex;
        flex-direction: column;
        width: 100%;
        font-size: 18px;
    }
    & .row{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 10px;
        font-size: 17px;
        width: 100%;
        & .hmg{
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-style: italic;
            text-align: center;
        }
        & a {
            display: flex; /* Makes the a element a flex container */
            justify-content: center; /* Centers the img horizontally */
            align-items: center; /* Centers the img vertically */
            margin: 5px; /* Adds some spacing around each anchor */
            cursor: pointer;  
            &:hover{
                color: var(--fourth-title-color);
            }     
        }
        & i{
            font-size: 30px;
            &:hover{
                color: var(--fourth-title-color);
            }
        }
    }
}


.container li{
    text-align: justify;
    margin-left: 20%;
    list-style-type: none;
}

.scroll {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* position of columns */
.espacementA, .espacementB{
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: center;
}
  
.espacementA .col-8{
    margin-right: 80px;
}
.espacementB .col-8{
    margin-left: 80px;
}

.side2side{
    display: flex;
    align-items: center;
    flex-direction: row;
    & .col-4{
        margin-left: 50px;
    }
    & .col-5{
        margin-right: 50px;
    }
}

.small-side-image{
    width: 300px;
    display: inline-block; 
}

.big-side-image{
    display: inline-block; 
    position: relative;
}


/* image-link before hover */
.image-link{
    border-radius: 10px;
    border: var(--div-color) 3px solid;
    opacity: 1;
    transition: .3s ease;
    -webkit-transition: all .5s ease; /*Chrome*/
    -moz-transition: all .5s ease; /*Safari*/
    -o-transition: all .5s ease; /*Firefox*/
    transition: all .5s ease;
    &:hover{
        opacity: 0.5;
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1.05);
    }
}
  

  
.image-simple{
    border-radius: 10px;
    border: #98877b4b 3px solid;
}
.media{
    width: 40%;
}

.citation{
    text-align: center;
    font-style: italic;
    font-size: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 90px;
    margin-right: 90px;
}


.bouton-ctn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: solid #643800 3px;
    border-radius: 20px;
    padding: 30px;
    width: 500px;
    color: #643800;
    font-size: 40px;
    position: relative;
    &:hover{
        border: solid var(--after-hover-color) 3px;
    }
    &:hover .bouton:after{
        width: 100%;
        left: 0;
    }
    &:hover .bouton{
        color: var(--after-hover-color);
    }
}

.bouton {
    position: relative;
    color: #643800;
    &:after {
        content: '';
        position: absolute;
        border-radius: 10em;
        bottom: -1px;
        right: 0;
        width: 0;
        height: 5px;
        background: var(--after-hover-color);
        transition: .3s ease;
    }
}


.bouton-ctn-secondary{
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: solid #643800 3px;
    border-radius: 20px;
    padding: 25px;
    width: 500px;
    color: #643800;
    font-size: 25px;
    position: relative;
    &:hover{
        border: solid var(--after-hover-color) 3px;
    }
    &:hover .bouton-secondary:after{
        width: 100%;
        left: 0;
    }
    &:hover .bouton-secondary{
        color: var(--after-hover-color);
    }
}

.bouton-secondary{
    position: relative;
    color: #643800;
    &:after {
        content: '';
        position: absolute;
        border-radius: 10em;
        bottom: -1px;
        right: 0;
        width: 0;
        height: 3px;
        background: var(--after-hover-color);
        transition: .3s ease;
    }
}

form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding:20px;
    display: flex;
}

.input-container, .text-area{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

legend{
    font-size: 22px;
    font-weight: bold;
    color: var(--third-color);
}

fieldset{
    border: 2px solid #794e2f86;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--div-color);
    width: 800px;
}



input, textarea{
    font-family: "Lexend", serif;
    background-color: #e8dcce93;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    border: 2px solid #794e2f86;
    padding: 10px;
    width: 500px;
    margin: 10px;
    font-size: 18px;
    opacity: 0.9;
    outline: none;
    &:focus{
        border: 2px solid var(--third-color);
        box-shadow: 0 0 0 1px #794e2f86;
    }
    &:hover{
        opacity: 1;
        box-shadow: 0 0 0 1px #e1c4a193;
        background-color: #fcf2e659;
    }
}

::placeholder{
    color: #676767;
    font-size: 18px;
    text-align: center;
    font-family: "Lexend", serif;
}

.submit{
    color: var(--third-color);
    text-align: center;
    display: inline-block;
    font-size: 22px;
    border-radius: 5px;
    border: solid 2px #794e2f86;
    box-shadow: 0 0 5px 1px #68574039;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #ebe3db93;
    transition: .2s ease;
    -webkit-transition: all .2s ease; /*Chrome*/
    -moz-transition: all .2s ease; /*Safari*/
    -o-transition: all .2s ease; /*Firefox*/
    transition: all .2s ease;
    &:hover{
        background-color: #fef6f0c8;
        -webkit-transform: scale(1.02);
        -moz-transform: scale(1.02);
        -o-transform: scale(1.02);
        transform: scale(1.02);
    }
}

.error-txt{
    color: #ff4000;
    font-size: 13px;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
}

.hidden {
    display: none;
}

.error .item{
    border: 2px solid #ff4000;
}

.error .error-txt{
    display: block;
}

.remerciement{
    color: var(--third-color);
    font-family: "Lexend", serif;
    font-size: 30px;
}

.partners{
    border: 1px solid var(--div-color);
    border-radius: 15px;
    margin: 20px;
}

