:root {
  --main-color: #F3F1E6;
  --lfi-purple: #7b13D6;
  --lhi-pink: #f126ae;
  --lhi-green: #40A755;
  --lfi-yellow:#FFC700;
  --lhi-black:#1E1E1E;
}
*{
    margin: 0;
    padding: 0;
}
html{
    background: var(--main-color);
    font-family: 'Zalando Sans Semi Condensed';
    font-weight: medium;
    font-size: 15px;
    color:var(--lhi-black);
}
h1,h2,h3,h4,h5{
    font-family: 'Zalando Sans Condensed';    
    line-height: 1.5;
}
h3{
    max-width: fit-content;
    background-color: var(--lfi-yellow);
    color: var(--lhi-black);
    font-size: 1.4rem;
    padding: 0 0.3rem;
    margin: auto;
}
p{
    max-width: 83vw;
    margin: auto;
}
.title p{
    line-height: 1.5;
}
a{
    text-decoration: none;
    color: var(--main-color);
}
a:hover{
    color: var(--lfi-purple)!important;
    cursor: pointer;
}
a > p{
    max-width: fit-content;
    padding: 1rem 2rem;
    margin: 2rem auto;
    background: var(--lfi-purple);
    color: var(--main-color);
}

.hide{
    height: 0px;
    overflow: hidden;
}
header{
    background: var(--lfi-purple);
    color: var(--main-color);
}
.header-band{
    background: var(--lfi-purple);
    color: var(--main-color);
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 1rem;
}
.header-band a,.header-band img{
    height: 100%;
}
.burger-menu span{
    font-size: 2rem;
}
header nav{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}
header nav a{
    margin: 1rem 0;
}
header nav a:hover{
    color: var(--lhi-black)!important;
}
header nav.close{
    display: none;
}
.hero{
    height: 75vh;
    background-image: url(../img/le-havre-hdv-medium.jpg);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero .title{
    padding-top: 100px;
    width: fit-content;
}
div.title{
    margin-bottom: 6rem;
}
h3.title{
    margin-bottom: 4rem;
}
.title p{
    font-size:2rem;
}
.title p, h3.title{
    padding:  0 1rem;
    max-width: fit-content;
    font-weight: bold;
}

.title.rotate p, h3.rotate{
    transform: rotate(-3deg);
}
.title.rotate p{
    margin-left: -1px;
}

.title.rotate p:last-child{
    margin-top: 8px;
    margin-left: -3px;
}

.hero p{
    background-color: var(--lhi-pink);
    color: var(--main-color);
    font-size: 2.2rem;
    margin: 0 auto 10px 25vw;
}
.hero p:first-child{
    margin-left: calc(25vw - 5rem);
}
.hero p:last-child{
    margin-left: calc(25vw + 2rem);
}
.intersection{
    height: 80px;
    width: 100vw;
    max-width:100vW;
    overflow-x: hidden;
    background: url(../img/section-bande.svg);
    background-position-x: 16px;
    background-repeat: repeat;
}
section{
    margin: 6rem 0;
}
main{
    min-height: 30vh;
}
#qui-sommes-nous .title p{
    background-color: var(--lfi-purple);
    color: var(--main-color);
    font-size: 2rem;
}
#qui-sommes-nous .title p:last-child{
    padding-left: 8rem;
}

#qui-sommes-nous h3{
    margin-top: 3rem;
}
#portraits{
    display: flex;
    flex-direction: row;
    margin-bottom: 3.66rem;
}
#charlotte{
    width: 66vw;
    margin-top: 2rem;
    z-index: 2;
}
#djawed{
    max-width: 50vw;
    overflow-x: hidden;
    position: absolute;
    right: 0;
    align-self: end;
}
#djawed > img{
    width: 50vw;
    margin-right: -7vw;
}
.portrait > img{
    width: 66vw;
    max-width: 500px;
}
.flex-inverse{
    display: flex;
    flex-direction: column;
    align-items: end;
}
.portrait>div{
    position: relative;
    z-index: 3;
}
.portrait h4{
    background: var(--lfi-purple);
    color: var(--main-color);
    line-height: 1.4rem;
    max-width: fit-content;
    font-size: 2rem;
    display: flex;
    align-items: center;
}
.portrait h4>img{
    height: 2.4rem;
    margin-right: 0.33rem;
}
#charlotte h4{    
    padding: 0 .33rem 0 4rem;
    margin-top: -2.6rem;
}
.portrait h5{
    background: var(--lfi-yellow);
    color: var(--lhi-black);
    max-width: fit-content;
    font-size: 1.2rem;
    padding: 0 .33rem;    
    margin-top: -4rem;
}
#djawed h4{
    margin-top: -2.6rem;
    padding-left: 1rem;
}
#djawed h4>img{
    margin-left: 0.66rem;
    z-index: 3;
}
#charlotte h5{
    margin-left: 6rem;
}

#djawed h5{
    margin-right: 5vw;
}
.green-intersection{
    width: 127%;
    background-position: -77px;
}

#notre-programme .title p{
    background-color: var(--lhi-green);
    color: var(--main-color);
    font-size: 2rem;
}
#notre-programme .title p:last-child{
    padding-left: 4rem;
}
.pink-intersection{
    width: 151vw;
    background-position: -177px;
}
#nous-rejoindre .title p{
    background-color: var(--lhi-pink);
    color: var(--main-color);
    font-size: 2rem;
}
#nous-rejoindre .title p:last-child{
    padding-left: 8rem;
}

.yellow-intersection{
    width: 176vw;
    background-position: -277px;

}

#participer .title p{
    background-color: var(--lfi-yellow);
    color: var(--lhi-black);
    font-size: 2rem;
}
#participer .title p:last-child{
    padding-left: 4rem;
}
.slider{
    width: 100vw;
    overflow: hidden;
}
#participer ul{
    list-style-type: none;
    display: flex;
    flex-direction: row;
    width: 300vw;
    transform: translateX(-0vw);
}
#participer ul li{
    width: 83vw;
    margin: 0 auto;
}
#participer ul h3{
    margin: 2rem auto 1rem 0;
}

#contact .title p{
    background-color: var(--lfi-purple);
    color: var(--main-color);
    font-size: 2rem;
}
#contact .title p:last-child{
    padding-left: 5rem;
}
.slider>ul{
    /* animation: name duration timing-function delay iteration-count direction fill-mode; */
    animation: slider 30s cubic-bezier(1,0,0,1) infinite  ;
}
#nav-slider{
    width: fit-content;
    margin: 1rem auto;
}
#nav-slider>span{
    margin: 0 1rem;
    border-radius: 100%;
    width: fit-content;
    height: fit-content;
}
#dot-1{
    animation: slider-dot 30s cubic-bezier(.65,1.2,.22,1) infinite;
}
#dot-2{
    animation: slider-dot 30s cubic-bezier(.65,1.2,.22,1) 10s infinite;
}
#dot-3{
    animation: slider-dot 30s cubic-bezier(.65,1.2,.22,1) 20s infinite;
}

#links{
    margin: auto;
    max-width: max-content;
}
#links div a{
    display: flex;
    align-items: center;
    color: var(--lhi-black);
    margin-top: 1rem;
}

#links span{
    color: var(--lhi-black);
    height: 3rem;
    width: 3rem;
    margin-right: 1rem;
}

footer{
    background: var(--lfi-purple);
    color: var(--main-color);
    padding: 2rem;
}
footer div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer img{
    height: 4rem;
}
footer nav{
    display: flex;
    flex-direction: column;
}
footer nav a{
    margin-bottom: 1rem;
}

footer nav a:hover{
    color: var(--lhi-black)!important;
    cursor: pointer;
}
footer p{
    font-size: 0.8rem;
    width: 70vw;
    margin: 0.5rem auto;
}

@keyframes slider{
    0%,32% {
        transform: translateX(0);
    }
    33%,65%{
        transform: translateX(-100vw);
    }
    66%,99%{
        transform: translateX(-200vw);
    }
    100%{
        transform: translateX(0);
    }
}
@keyframes slider-dot {
    0%,32% {
        background: var(--lhi-black);
    }
    33%,65%{
        background: transparent;

    }
    66%,99%{
        background: transparent;
    }
    100%{
        background: var(--lhi-black);
    }
}

/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-width : 768px){
    
    html{
        background: var(--main-color);
        font-family: 'Zalando Sans Semi Condensed';
        font-weight: medium;
        font-size: 18px;
        color:var(--lhi-black);
    }
    h1,h2,h3,h4,h5{
        font-family: 'Zalando Sans Condensed';    
        line-height: 1.5;
    }
    h3{
        max-width: fit-content;
        background-color: var(--lfi-yellow);
        color: var(--lhi-black);
        font-size: 1.8rem;
        margin: auto;
    }
    .hero{
        background-position: bottom center;
    }
    .hero title p{
        font-size: 3rem;
    }
    .hero p{
        background-color: var(--lhi-pink);
        color: var(--main-color);
        font-size: 2.2rem;
        margin: 0 auto 10px 40vw;
    }
    .hero p:first-child{
        margin-left: calc(40vw - 5rem);
    }
    .hero p:last-child{
        margin-left: calc(40vw + 2rem);
    }

    div.title{
        margin-bottom: 4rem;
    }
    section{        
        margin: 5rem 0;
    }
    #qui-sommes-nous h3{
        margin-top: 0;
    }
    #qui-sommes-nous-content{
        margin: 0 10vw;
        display: grid;
        grid-template-columns: 33vw auto;
        grid-template-rows: 1fr 1fr 1fr;
        column-gap: 2rem;
    }
    #qui-sommes-nous-content p{
        grid-column: 1;
        grid-row: auto;
    }
    #qui-sommes-nous-content p:first-child{
        margin: auto 0 1rem 0;
    }
    #qui-sommes-nous-content p:last-child{
        margin: 1rem 0 0 0;
    }
    #qui-sommes-nous-content div{
        grid-row: 1/4;
        grid-column: 2;
    }
    #portaits{
        margin-bottom: 0;
    }
    .portrait h5{
        font-size: 1.2rem;
        margin-top: -4rem;
    }
    .portrait h4{
        font-size: 2.2rem;
        line-height: 1.1em;
    }
    .flex-inverse {
        align-items: center;
    }
    #charlotte{
        width: auto;
        margin-top: 0;
    }
    #djawed{
        max-width: none;
    }
    #charlotte.portrait > img{
        width: 33vw;
    }
    #djawed.portrait > img{
        width: 25vw;
        margin-right: 0;
    }
    #charlotte h4{
        padding-left: 2rem;
    }
    #djawed h4{
        margin-top :-1.19em;
    }
}

/* Desktops and laptops ----------- */
@media only screen 
and (min-width : 1080px) {
  
    #contact-content{
        text-align: center;
    }
    #links{
        margin-top: 2rem;
        display: flex;
        flex-wrap: wrap;
    }
    #links div{
        flex: 33%;
    }
    #links div a{
        justify-content: center;
    }
    footer{
        text-align: center;
    }
    footer nav{
        width: 100%;
        flex-direction: row;
        justify-content: space-evenly;
    }
}

/* Large screens ----------- */
@media only screen 
and (min-width : 1824px) {
  /* Styles */
}