@import url('https://fonts.googleapis.com/css2?family=Emblema+One&display=swap');

:root { 
  --outline-img-color: rgb(255, 255, 255);
  --outline-img-width: 2px;
  --radius-border-img: 50px;
  --default-background-color: #805e46;
  --defaul-secondary-text:rgb(186, 188, 190);

  --default-shadow : 20px 20px 10px rgba(0, 0, 0, 0.123);
  --hoverBoxShadow : 30px 30px 10px rgba(0, 0, 0, 0.192);
  --hoverImgSizeIncrease : scale(1.03);
}

/*========================= Règles CSS générales pour plusieurs page ===================================*/
body{
    margin: 0;
    background-color: var(--default-background-color) ;
    font-family:Arial, Helvetica, sans-serif;
    color: azure;
    font-size: 1.3rem;
}

.button1{
    color: #816e61;
    text-decoration-line: none;
    padding: 12px;
    border-radius: 5px;
    background-color:rgb(253, 253, 253);
    margin: 5px;
}
.button1:hover{
    color: #816e61d0;
    background-color:rgba(253, 253, 253, 0.521);
    transition: 400ms ease;
}
.button2{
    color: rgb(253, 253, 253);
    text-decoration-line: none;
    padding: 12px;
    border-radius: 5px;
    background-color:rgba(0, 0, 0, 0.205);
    transition: 400ms ease;
}
.button2:hover{
    color: rgba(253, 253, 253, 0.589);
    background-color:rgba(0, 0, 0, 0.096);
    
}

/*Chapter et InverseChapter sont contenu dans ChapterContainer. Les chapters sont utilisé pour mettre une image à droite d'un titre et d'un texte. Dans les InverseChapter, le coté de l'image est simplement inversé*/
.Chapter{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    padding: 20px;
    flex-wrap: wrap;
}
.ChapterContainer img{
    border-radius: var(--radius-border-img);
    outline: var(--outline-img-width) solid var(--outline-img-color);
    box-shadow: var(--default-shadow);
    transition: 100ms ease;
}
.ChapterContainer img:hover{
    box-shadow: var(--hoverBoxShadow);
    transform: var(--hoverImgSizeIncrease);
}
.InverseChapter{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content:space-between;
    flex-wrap: wrap;

    padding: 20px;
    background-color: #70513b;
    
}

/*Adapte les taille des image en fonction de la taille de l'écran*/
@media screen and (max-width: 768px) {
    .Chapter img,.InverseChapter img,.InverseChapter div,.Chapter div{
        width:90%;
    }
    .ChapterContainer img{
        margin-left: auto;
        margin-right: auto;
    }
}
@media screen and (min-width: 768px) {
    .Chapter img,.InverseChapter img,.InverseChapter div,.Chapter div{
        width:45%;
    }
}

/*Fait en sorte qu'il n'y ai pas de séparation entre le SVG de vague et le div*/
.upperWave{
    margin-bottom: -5px;
}

p{
    color: var(--defaul-secondary-text) ;
    padding: 20px; 
}
li{
    color: var(--defaul-secondary-text) ;
}
textarea,input{
    font-family:Arial, Helvetica, sans-serif;
    color: rgb(0, 0, 0);
}

.centeredText{ 
    text-align: center;
}

/*NextToHolder permet à deux NextToItem d'être côte à côte*/
.NextToHolder{
    display: flex;
    align-items: center;
    justify-content:center;
    flex-wrap: wrap;
}
.NextToItem{
    margin: 40px;
    width: 500px;
    max-width: 90%;
}
.NextToItem  img{
    width: 500px;
    max-width: 90%;
    border-radius: 30px;
    transition: 100ms ease;
}
.NextToItem img:hover{
    transform: var(--hoverImgSizeIncrease);
}

.Title{
    text-align: center;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.212);
}
.Title h1{
    margin-top: 110px;
    margin-bottom: 40px
}

.source p,a{
    color: rgb(255, 255, 255);
}

/* ================= Header ========================== */
nav{
    display: flex;
    justify-content:space-around;
    width: 80%;

}
nav a{
    color: azure;
    text-decoration: none;
    transition: 300ms ease;
}
nav a:hover{
    opacity: 0.5;
}
nav img{
    height: 30px;
    margin-bottom: -9px;
    margin-right: 10px;
}

header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-around;
    height: 70px;
    position: fixed;
    width: 100%;
    background-color: #4e3c2fc5;
    top: 0px;
    z-index: 10;
}
.logo{
    width: 85px;
}

/* ========================== Page d'acceuil ========================================*/
main{
    margin-top: 70px; /*Il est baisser pour faire la place  à la navbar*/
}

/* TitleUnderLayer et TitleUpperLayer permette de mettre un dégradé sur l'image de l'écran d'acceuil */
.TitleUnderLayer{
    background-image: url(img/masseDeGrain.jpg);
    background-size:cover;
    background-position: 0px;
}
.TitleUpperLayer{
    background-image: linear-gradient(#805e4600,var(--default-background-color));
    padding-top: 10%;
    padding-bottom: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.TitleUpperLayer h1,p,a{
    z-index: 2;
}
/*Les grains de café ont une animation qui les fait descendre et tourner. Ils ont des vitesses et des delais différents pour un air plus naturelle*/
.fallingBeanHolder{
    position: absolute;
    width: calc(100% - 150px);
    height: 60%;
    top: 20px;
    display: flex;
    justify-content: space-evenly;
}
.fallingBean{
    height: 10vw;
    max-height: 5rem;
    position: relative;
    
    animation-name: falling;
    
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    opacity: 0%;
}
.fallingBean:nth-of-type(1) {
    animation-duration: 1.4s;
    animation-delay: 0.1s;
}
.fallingBean:nth-of-type(2) {
    animation-duration: 1.6s;
    animation-delay: 0.6s;
}
.fallingBean:nth-of-type(3) {
    animation-duration: 1.5s;
    animation-delay: 0.4s;
}
.fallingBean:nth-of-type(4) {
    animation-duration: 1.7s;
    animation-delay: 1s;
}
.fallingBean:nth-of-type(5) {
    animation-duration: 1.9s;
    animation-delay: 0.4s;
}
.fallingBean:nth-of-type(6) {
    animation-duration: 2s;
    animation-delay: 0.1s;
}

/*Ceci est l'animation de chute des grains de cafés. "transform: rotate(180deg);" et "transform: translateX(-75px);" ne sont pas dans la meme ligne car il n'est pas possible d'avoir deux transforms dans la même ligne*/
@keyframes falling {
0% {
    top: 0%;
    opacity: 100%;
}
20%{
   transform: translateX(75px);
}
50% {
  
    opacity: 100%;
}
99%{
    transform: rotate(180deg);
}
100%{
    top: 130%;
    opacity: 0%;
    transform: translateX(-75px);
}
}

.TitleUpperLayer h1{
    font-size: 5em;
    margin-bottom: 0px;
    font-family: "Emblema One", system-ui;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

.TitleUpperLayer p {
    animation-name: Apparition;
    animation-duration: 2s;
    text-align: center;
}

@keyframes Apparition {
    from {
        opacity: 0%;
        transform: scale(0.5);
    }
    to {opacity: 100%;}
}

.buttonContainer{ /*Contient les deux boutons de l'écran d'acceuil*/
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-around;
    width: 50%;
    flex-wrap: wrap;
}

/* =========================== Footer =================================*/
footer{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:flex-start;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, 0.281);
}
footer a{
    color: rgb(186, 188, 190);
    text-decoration: none;
    padding: 20px;
    transition: 300ms ease;
    
}
footer a:hover{
    color: rgb(146, 147, 148);
}



/*============================ Page Auteur ====================================*/
#photoAuthor img{ 
    border-radius: var(--radius-border-img);
    outline: var(--outline-img-width) solid var(--outline-img-color);
    box-shadow: var(--default-shadow);
    transition: 100ms ease;
}

#photoAuthor img:hover{
    box-shadow: var(--hoverBoxShadow);
    transform: var(--hoverImgSizeIncrease);
}
/* ======== La partir "Loisir et hobby" dans la page Auteur =====*/
.AuteurLobby {
    margin: 2%;
}
.AuteurLobby div{
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-around;
}
.AuteurLobby img{
    margin: 10px;
    max-width: 90%;
    width: 500px;

    border-radius: var(--radius-border-img);
    outline: var(--outline-img-width) solid var(--outline-img-color);
    box-shadow: var(--default-shadow);
    transition: 100ms ease;
}

.AuteurLobby img:hover{
    box-shadow: var(--hoverBoxShadow);
    transform: var(--hoverImgSizeIncrease);
}

/*==================== Page inspiration =====================*/
.videoInspirationHolder{
    display: flex;
    flex-wrap: wrap;
    justify-content:space-around;
}
.videoInspirationItem{
    width: 500px;
    max-width: 90%;
    margin: 20px;
    border-radius: var(--radius-border-img);
    outline: var(--outline-img-width) solid var(--outline-img-color);
    box-shadow: var(--default-shadow);
    transition: 100ms ease;
}
.videoInspirationItem:hover{
    box-shadow: var(--hoverBoxShadow);
    transform: var(--hoverImgSizeIncrease);
}


/*=================== Page de contact =======================*/

.ContactHolder{ /*contient le formulaire de contact*/
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-bottom: 5%;
    padding: 30px;
}

.ContactHolder div{
    display: flex;
    flex-direction: column;
    width: 300px;
    max-width: 90%;
    padding: 10px;
}

.ContactHolder input,.ContactHolder textarea{
    margin-top: 20px;
    margin-bottom: 40px;
    border-radius: 6px;
    height: 25px;
    background-color: var(--default-background-color);
    border: 2px solid rgba(255, 255, 255, 0.384);
    color: white;
    padding: 7px;
    transition: 300ms ease;
}

.ContactHolder input:hover,.ContactHolder textarea:hover{
    border: 2px solid rgba(255, 255, 255, 0.788);
}

.ContactHolder textarea {
    height: 100px;
}

.ContactBottom{
    display:flex;
    justify-content: center;
}

.ContactBottom button{
    margin-bottom: 60px;
    
    color: #816e61;
    
    padding: 12px;
    border-radius: 5px;
    background-color:rgb(253, 253, 253);
    border: none;
    width: 150px;

    transition: 300ms ease;
}

.ContactBottom button:hover{
    color: #816e61d0;
    background-color:rgba(253, 253, 253, 0.521);
}

form{
    background-color: rgba(255, 255, 255, 0.055);
    max-width: 90%;
    width: 1000px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 40px;
}

form *::placeholder{
    color: rgba(255, 255, 255, 0.452);
}



/* ===============Partie de la page rapport ===============*/
.Rapport { 
    margin-left: 50px;
    margin-right: 50px;
}
.Rapport img{
    max-width: 100%;
    width: 70rem;
}
.Rapport li{
    margin: 12px;
}