/* GENERAL */

@import url('https://fonts.googleapis.com/css?family=Josefin+Sans');
@import url('https://fonts.googleapis.com/css?family=Abril+Fatface');

html,
body {
    height: 100%;
}


* {
    margin: 0;
    padding: 0;
    font-family: "josefin sans", sans-serif;
    font-size: 14px;
}

.wrapper {
    margin: 0 auto;
    padding: 0 8%;
}

.wrapperImage {
    margin: 0px;
    padding: 0px;
    border: 0px;
}

h2 {
    font-family: 'Abril Fatface', serif;
    font-size: 52px;
    font-weight: 500;
    color: #76A499;
    margin-bottom: 15px;
}

nav {
    z-index: 3;
}

/* HEADER */

.titreHeader {
    color: #fff;
    font-family: sans-serif;
    font-weight: lighter;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

#boxTitreHeader{
 border:1px solid white;
 padding: 22px 20px 12px 20px;
    margin-bottom: 20px;
    background-color: rgba(0,0,0,0.4);
}

.titreHeader h1{
    font-size: 46px;
}

.titreHeader p{
    font-size: 1.5em;
    line-height: 1.2em;
    font-weight: 400;
    text-shadow: 3px 3px 2px black;
}


/* PRESENTATION */

#partPresentation {
    background-color: #fff;
    padding: 50px 0px;
}

#titrePresentation {
    text-align: center;
    margin-bottom: 26px;
    color: #192224;
}

#hrPresentation {
    margin-bottom: 5rem;
    width: 100%;
    border: 0.5px solid #192224;
    clear: both;
}

#plante1 {
    position: absolute;
    margin-left: 20%;
    margin-top: -6px;
    width: 10em;
}

.boxPresentation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 1.2em;
    line-height: 1.3em;
}

.italicName{
    font-style: italic;
    font-weight: bold;
}

#partPresentation .flexItem {
    width: calc(50% - 2rem);
    min-width: 300px;
    text-align: justify;
}

.flexItem img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}



/* PRODUITS */

#partProduits {
    background-color: #192224;
    padding: 50px 0px 70px 0px;
}

#titreProduits {
    text-align: center;
    margin-bottom: 26px;
    color: #fff;
}

#hrProduits {
    margin-bottom: 10rem;
    width: 100%;
    border: 0.5px solid white;
    clear: both;
}

.box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    width: calc(25% - 2rem);
    min-width: 240px;
    max-width: 280px;
    background: #fff;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    margin-bottom: 100px;
}

.card .profile-img {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    position: absolute;
    top: -65px;
    left: 50%;
    margin-left: -62.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.card h1 {
    line-height: 29px;
    font-family: 'Abril Fatface', serif;
    font-size: 1.8em;
    font-weight: 500;
    color: #76A499;
    margin-bottom: 15px;
}

.sub-content {
    padding: 70px 10% 10% 10%;
    line-height: 1.3em;
}

#indicationProduit {
    margin: 0% 24%;
}

#indicationProduit p {
    font-family: "josefin sans", sans-serif;
    color: white;
    text-align: center;
    font-weight: 200;
    font-size: 1.2em;
}

#plante2 {
    position: absolute;
    margin-left: 75%;
    width: 14rem;
    margin-top: -70px;
}

.listeLien {
	color: #192224;
    font-weight: 600;
}

#logo-bio{
  width:40%;
}


/* SERVICES */

#partServices {
    background-color: #fff;
    margin: 0;
    padding-right: 8%;
}

.boxServices {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 0;
    line-height: 1.4em;
}

.boxServices .flexItem {
    width: calc(50% - 1rem);
}

.flexItem img {
    margin: 0;
    padding: 0;
    height: 100%;
}

#titreServices {
    text-align: left;
    margin-left: 0px;
    padding-top: 50px;
    margin-bottom: 12px;
    color: #192224;
}

#hrServices {
    margin-bottom: 1.5rem;
    width: 100%;
    border: 0.5px solid #192224;
    clear: both;
}

.boxServices h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.5rem;
}

#textService {
    margin-bottom: 2rem;
}



/* RENCONTRES */

#partRencontres {
    background-image: url(images/test1.png);
    width: 100%;
    height: auto;
    /*    background-repeat:no-repeat;*/
    padding: 0;
    margin: 0;
}

.wrapperRencontres {
    margin: -2rem 8rem -2rem 8rem;
    padding: 4% 4%;
    background-color: #fff;
}

#textRencontres{
    margin-bottom: 2rem;
}

#titreRencontres {
    text-align: left;
    margin-left: 0px;
    padding-top: 50px;
    margin-bottom: 12px;
    color: #192224;
    margin-left: 8%;
    margin-right: 8%;
}

#hrRencontres {
    margin-bottom: 5rem;
    border: 0.5px solid #192224;
    clear: both;
    margin-left: 8%;
    margin-right: 8%;
}

#bloc1rencontres {
    background-color: #192224;
    margin-left: 0%;
    margin-right: 40%;
    padding-top: 1.6rem;
    padding-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    line-height: 1.4em
}

.boxRencontres p {
    margin-left: 8%;
    margin-right: 8%;
    color: #fff;
}

#blocCentral {
    margin: -7em 12em -6em 12em;
    padding: 5em;
    color: #192224;
}

#blocCentral p {
    margin-left: 0%;
    margin-right: 0%;
    color: #192224;
}

#bloc2rencontres {
    background-color: #192224;
    margin-left: 35%;
    margin-right: 0%;
    margin-bottom: 5rem;
    padding-top: 2rem;
    padding-bottom: 1.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    line-height: 1.4em
}




/* TIMELINE */

#cadreTitreTimeline {
    border: 1px solid black;
    padding: 0px;
    background-color: #fff;
    width: 100%;
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
}


#titreTimeline {
    text-align: center;
    color: #192224;
}

#plante4 {
    position: absolute;
    margin-left: 60%;
    margin-top: -150px;
    width: 11em;
    z-index: -1;
}

#plante3 {
    /*
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -120px;
    margin-top: 0;
    width: 10em;
*/
    position: absolute;
    margin-top: -43px;
    z-index: -2;
    width: 10em;
}

#plante3:before {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
}

#hrTimeline {
    /*width: 100%;*/
    border: 0.5px solid #192224;
    clear: both;
    position: absolute;
    margin-top: -43px;
    z-index: -2;
    display: none;
}


.timeline {
    position: relative;
    /* A CHERCHER IMPERATIVEMENT */
    margin: 50px auto;
    padding: 40px 0;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
    /* Connaissais pas */
}

.timeline:before {
    content: '';
    /* en quoi est-ce nécéssaire de le mettre ? */
    /* Dès que tu mets "after" ou "before" t'es obligé de mettre "content" 
    car à la base cest propriété est faite pour ajouter du contenu textuel 
    après ou avant un élément, du coup si tu le mets pas  il ne te considère pas ta propriété */
    position: absolute;
    left: 50%;
    /*différence entre padding/margin-left et position : left? */
    /* "Left" (position) te permet de positionner ton élément et non de lui attirbuer des 
    marges internes ou externe (margin et padding) */
    width: 2px;
    height: 100%;
    background: #c5c5c5;
    /* pk pas bg color? --> "background" est plus rapide à écrire et rassemble 
    toutes les propriétés de background (background-size, background-url, etc...) et si tu n'as pas 
    d'autres propriétés de ce genre, tu peux mettre direct "background" sinon tu aurais du mettre background color */
}

.timeline ul {
    margin: 0;
    padding: 0;
}

.timeline ul li {
    list-style: none;
    /* Connaissais pas */
    line-height: normal;
    position: relative;
    width: calc(50% - 80px);
    padding: 20px 40px;
    box-sizing: border-box;
    /* Connaissais pas */
}

.timeline ul li:nth-child(odd) {
    /* Revoir un cours dessus : je connais pas */
    float: left;
    /* pas compris, crée un interligne + grand tous les 2 para : si tu parles de la 
    version mobile c"est normal car tu as un margin right tout les deux blocs, cest lui qui te décale tes éléments tous les deux blocs*/
    text-align: right;
    margin-left: 50px;
    clear: both;
    /* pourquoi ne pas mettre directement clear both sur timeline ul li{} ? 
    clear both te permet de ne pas faire flotter l'élément suivant du coup il faut que tu le mettes avant 
    l'élément qui ne doit pas flotter */
}

.timeline ul li:nth-child(even) {
    float: right;
    text-align: left;
    clear: both;
    margin-right: 50px;
}

.contentText {
    padding-bottom: 20px;
    line-height: 1.3em;
}

.timeline ul li:nth-child(odd):before {
    content: '';
    position: absolute;
    /*revoir */
    width: 10px;
    height: 10px;
    background: #192224;
}

.timeline ul li:nth-child(odd):before {
    content: '';
    position: absolute;
    /*revoir */
    top: 24px;
    right: -36px;
    width: 10px;
    height: 10px;
    background: #192224;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(42, 87, 86, 0.2);
}

.timeline ul li:nth-child(even):before {
    content: '';
    position: absolute;
    /*revoir */
    top: 24px;
    left: -34px;
    width: 10px;
    height: 10px;
    background: #192224;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(42, 87, 86, 0.2);
}

.timeline ul li h3 {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    font-size: 1.4em;
    margin: 0;
    padding: 0;
    color: #76A499;
}

.timeline ul li p {
    margin: 10px 0 0;
    padding: 0;
}

.timeline ul li .time h4 {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.timeline ul li:nth-child(odd) .time {
    position: absolute;
    top: 12px;
    right: -240px;
    margin: 0;
    padding: 8px 16px;
    background: #2A5756;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 2px rgba(42, 87, 86, 0.3);
    width: 115px;
    text-align: center;

}

.timeline ul li:nth-child(even) .time {
    position: absolute;
    top: 12px;
    left: -240px;
    margin: 0;
    padding: 8px 16px;
    background: #2A5756;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 2px rgba(42, 87, 86, 0.3);
    width: 115px;
    text-align: center;
}

@media (max-width: 1000px) {
    .timeline {
        width: 100%;
    }
}

@media (max-width: 767px) {

    h2 {
        font-size: 35px;
    }
    /* Presentation */
    #plante1 {
        margin-left: 0;
        margin-top: -3px;
        right: 30px;
        width: 8em;
    }
    #hrPresentation {
        margin-bottom: 1rem;
    }
    #partPresentation .flexItem {
        width: 100%;
        min-width: auto;
        margin-top: 40px;
    }

    /* Wrapper Produits */
    .card {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        margin-bottom: 100px;
    }
    #hrProduits {
        margin-bottom: 8rem;
    }
    
    #indicationProduit {
	    margin-top: -50px;
    }

    /* Wrapper Services */
    #plante2 {
        position: absolute;
        margin-left: 0;
        right: 0px;
        width: 160px;
        margin-top: -35px;
    }
    .boxServices .flexItem {
        width: 100%;
    }
    .boxServices .flexItem:first-child {
        width: 100%;
        height: 160px;
    }
    #partServices {
        margin: 0;
        padding-right: 0%;
    }
    #textService {
        margin: 0 30px 4rem;
    }
    
    #textRencontres {
        margin: 0 8% 0rem;
    }
    
    

    /* Wrapper rencontre */
    .wrapperRencontres {
        margin: 0;
        padding: 0% 0% 4% 0%;
        background-color: #192224;
        color: #fff;
    }
    #bloc1rencontres {
    margin-left: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    #bloc2rencontres {
    margin-left: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    
    #hrRencontres{
        border: 0.5px solid #fff;
        margin-bottom: 0rem;
    }

    /* Wrapper time line */
    .timeline {
        width: 100%;
        padding-bottom: 0;
    }
    .timeline:before {
        left: 20px;
    }
    #plante4 {
        margin-left: 0;
        z-index: -1;
        right: 0px;
    }
     

    /* j'ai du rajouter ul contrairement à la vidéo */
    .timeline ul li:nth-child(odd),
    .timeline ul li:nth-child(even) {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        padding-bottom: 50px;
        margin: 0;
    }
    /* j'ai du rajouter ul contrairement à la vidéo */
    .timeline ul li:nth-child(odd):before,
    .timeline ul li:nth-child(even):before {
        top: -18px;
        left: 16px;
    }
    .timeline ul li:nth-child(odd) .time,
    .timeline ul li:nth-child(even) .time {
        top: -30px;
        left: 50px;
        right: inherit;
    }
    .timeline ul li:nth-child(2n) {
        float: left;
    }

}


/* CONTACT */

#partContact {
    background-color: #192224;
    margin-top: -0.6em;
    text-align: center;
    color: #fff;
}

#titreContact {
    text-align: center;
    margin-left: 0px;
    padding-top: 50px;
    margin-bottom: 12px;
    color: #fff;
}

#hrContact {
    margin-bottom: 1.5rem;
    width: 100%;
    border: 1px solid white;
    clear: both;
}
#infosContact{
    font-size: 1em;
    line-height: 1.2em;
}

.siteTitre{
    font-size: 1.2em;
    text-decoration: underline;
    line-height: 1.8em;
}


footer{
    background-color: #fff;
    color: #192224;
    font-weight: bold;
    text-align: center;
    padding-top: 1.5em;
    padding-bottom: 1.2em;
    padding-left: 10%;
    padding-right: 10%;
}


/* RESPONSIVE */


@media (max-width: 767px) {
    .img2Pres{
        display: none;
    }
    #imgServices{
        display: none;
    }
    #imgRencontres{
        display: none;
    }
    #partRencontres{
        background: #192224;
    }
    #titreRencontres{
        color: #fff;
    }
}