@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

@keyframes defilement-rtl {
    0% {
      transform: translate3d(0,0,0);      /* position initiale à droite */
    }
    100% {
      transform: translate3d(-100%,0,0);  /* position finale à gauche */
    }
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
    font-family: 'Montserrat', sans-serif;
    box-sizing: content-box;
    width: 100%;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
header{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #FFFFFF;
    position: relative;
    box-shadow: 0px 1px 10px -4px #000000;
}
header img{
    width: 150px;
}
header .brand{
    color: black;
}
#news {
    margin: 1rem auto;
    overflow: hidden;                    
}
#news > :first-child {
    display: inline-block;                
    padding-right: 2rem;                 
    padding-left: 100%;                  
    white-space: nowrap;                 
    animation: defilement-rtl 20s infinite linear;
}
main, header{
    color: white;
}
#section-1{
    background: #f0d5e1;
    padding: 0 12rem;
    padding-top: 0;
    display: flex;
    align-items: center;
}
#waves, #informations{
    display: flex;
    flex-direction: column;
}
h2{
    color: black;
    font-size: 3rem;
    text-align: center;
}
#a-la-une{
    display: flex;
    align-items: center;
    flex-direction: column;
}
#a-la-une img{
    width: 55%;
}
#a-la-une a{
    text-decoration: none;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid black;
    color: black;
    border-radius: 25px;
}
#a-la-une a:hover{
    opacity: 0.6;
}
#section-1 img{
    width: 400px;
    margin-top: 4rem;
    position: relative;
    animation: movefromleft 1s;
    animation-timing-function: linear;
}
#section-1 img:hover{
    transform: scale(.8);
    transition: 1s;
}
#section-1 article{
    padding: 2rem;
}
#section-1 article h1{
    font-size: 4rem;
}
@keyframes movefromright {
    from {left: 1000px;}
    to {left: 0px;}
}
@keyframes movefromleft {
    from {left: -1000px;}
    to {left: 0px;}
}
.big-spacer{
    height: 350px;
}
.medium-spacer{
    height: 200px;
}
.small-spacer{
    height: 100px;
}
#informations{
    color: lightgray;
    padding: 2rem;
    background: #083d33;
    height: 250px;
    display: flex;
    justify-content: center;
}
#informations ul{
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: space-around;
}
#informations ul li{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    justify-content: space-between;
}
#informations ul li i{
    font-size: 2rem;
}
#informations ul li p, #informations ul li h3, #informations ul li button{
    margin: 0.5rem 0;
}
#informations ul li h3{
    margin: 2rem 0;
}
#informations ul li button{
    border-radius: 25px;
    color: #3c4043;
    padding: 1rem;
    background: white;
    border: 0;
    box-shadow: 0 4px 4px 0 rgb(60 64 67 / 30%), 0 8px 12px 6px rgb(60 64 67 / 15%);
}
#informations ul li button a{
    text-decoration: none;
    color: black;
}
#verriers{
    background: #f0d5e1;
    text-align: center;
    padding: 3rem 0;
    box-shadow: 0px 1px 10px -4px #000000;
    width: 60%;
    margin: 0 auto;
}
#verriers li{
    color: black;
    margin: 1rem 0;
    font-size: 1.3rem;
}
#verriers ul{
    margin: 3rem 0;
}
h1{
    position: relative;
    animation: movefromright 1s;
    animation-timing-function: linear;
}
footer{
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    box-shadow: 0px 1px 10px -4px #000000;
}
footer ul li a{
    text-decoration: none;
    margin-left: 0.5rem;
    color: black;
}
footer li{
    display: flex;
    align-items: center;
    color: #272c2f;
}
footer i{
    font-size: 1.4rem;

}
footer div h2{
    font-size: 1.5rem;
}
footer div{
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}
footer div img{
    text-align: center;
}
#footer-center{
    align-items: center;
}

#footer-right img{
    width: 350px;
}

#footer-center img{
    width: 100px;
}

img {
    max-width: 100%;
}

.slider{
    color: black;
    text-transform: uppercase;
    overflow: hidden;
    width: 450px;
    margin: 0 auto;
    flex-direction: column;
}
.slider h2{
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: underline;
    margin: 1rem;
}
.slider, .slides-two, .slides-three, .slides-four, .slides-fourteen, .slides-seven{
    display: flex;
}
.slides-two{
    width: calc(100%*2);
    animation: glisse-2 5s infinite;
}
.slides-three{
    width: calc(100%*3);
    animation: glisse-3 7.5s infinite;
}
.slides-four{
    width: calc(100%*4);
    animation: glisse-4 10s infinite;
}
.slides-seven{
    width: calc(100%*7);
    animation: glisse-7 17.5s infinite;
}
.slider img{
    width: 450px;
}

@keyframes glisse-2{
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-450px);
    }
    75% {
        transform: translateX(-450px);
    }
    100% {
        transform: translateX(0);
    }        
}

@keyframes glisse-3{
    0% {
        transform: translateX(0);
    }
    16.5% {
        transform: translateX(0);
    }
    33% {
        transform: translateX(-450px);
    }
    49.5% {
        transform: translateX(-450px);
    }
    66% {
        transform: translateX(-900px);
    }
    82.5% {
        transform: translateX(-900px);
    }
    100% {
        transform: translateX(0);
    }        
}

@keyframes glisse-4{
    0% {
        transform: translateX(0);
    }
    12.5% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-450px);
    }
    37.5% {
        transform: translateX(-450px);
    }
    50% {
        transform: translateX(-900px);
    }
    62.5% {
        transform: translateX(-900px);
    }
    75% {
        transform: translate(-1350px);
    }
    87.5% {
        transform: translate(-1350px);
    }
    100% {
        transform: translateX(0);
    }        
}


@keyframes glisse-7{
    0% {
        transform: translateX(0);
    }
    7.14% {
        transform: translateX(0);
    }
    14.2% {
        transform: translateX(-450px);
    }
    21.42% {
        transform: translateX(-450px);
    }
    28.56% {
        transform: translateX(-900px);
    }
    35.70% {
        transform: translateX(-900px);
    }
    42.84% {
        transform: translate(-1350px);
    }
    49.98% {
        transform: translate(-1350px);
    }
    57.12% {
        transform: translate(-1800px);
    }
    64.26% {
        transform: translate(-1800px);
    }
    71.40% {
        transform: translate(-2250px);
    }
    78.54% {
        transform: translate(-2250px);
    }
    85.68% {
        transform: translate(-2700px);
    }
    92.82% {
        transform: translate(-2700px);
    }
    100% {
        transform: translateX(0);
    }        
}



@media only screen and (max-width: 480px) {
    #section-1{
        padding: 0 1rem;
    }
    #section-1 img{
        width: 50%;
        margin-top: 3rem;
    }
    #section-1 article{
        padding: 0.5rem;
    }
    #section-1 article h1{
        font-size: 2rem;
    }
    #section-1 article p{
        display: none;
    }
    .slider{
        width: 100%;
    }
    footer{
        display: flex;
        flex-direction: column;
    }
    footer #footer-center{
        margin: 1rem;
    }
    footer h2{
        margin: 1rem 0;
    }
    footer ul{
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #news > :first-child{
        animation: defilement-rtl 15s infinite linear;
    }
    #a-la-une img{
        width: 100%;
    }
    #a-la-une{
        margin: 3rem 0;
    }
    #informations{
        padding: 6rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #informations ul{
        display: flex;
        flex-direction: column;
    }
    #informations ul li{
        margin: 1rem;
    }
    #informations ul li h3{
        margin: 1rem 0;
        font-size: .9rem;
    }
    #informations ul li i{
        font-size: 1rem;
    }
    .slide, .slider, .slider img{
        width: 100%;
    }
    .slides-two{
        width: calc(100%*2);
    }
    .slides-three{
        width: calc(100%*3);
    }
    .slides-four{
        width: calc(100%*4);
    }
    .slides-seven{
        width: calc(100%*7);
    }
    @keyframes glisse-2{
        0% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(-50%);
        }
        75% {
            transform: translateX(-50%);
        }
        100% {
            transform: translateX(0);
        }        
    }
    
    @keyframes glisse-3{
        0% {
            transform: translateX(0);
        }
        16.5% {
            transform: translateX(0);
        }
        33% {
            transform: translateX(-33.33%);
        }
        49.5% {
            transform: translateX(-33.33%);
        }
        66% {
            transform: translateX(-66.66%);
        }
        82.5% {
            transform: translateX(-66.66%);
        }
        100% {
            transform: translateX(0);
        }        
    }
    
    @keyframes glisse-4{
        0% {
            transform: translateX(0);
        }
        12.5% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(-25%);
        }
        37.5% {
            transform: translateX(-25%);
        }
        50% {
            transform: translateX(-50%);
        }
        62.5% {
            transform: translateX(-50%);
        }
        75% {
            transform: translate(-75%);
        }
        87.5% {
            transform: translate(-75%);
        }
        100% {
            transform: translateX(0);
        }        
    }
    @keyframes glisse-7{
        0% {
            transform: translateX(0);
        }
        7.14% {
            transform: translateX(0);
        }
        14.2% {
            transform: translateX(-14.28%);
        }
        21.42% {
            transform: translateX(-14.28%);
        }
        28.56% {
            transform: translateX(-28.56%);
        }
        35.70% {
            transform: translateX(-28.56%);
        }
        42.84% {
            transform: translate(-42.84%);
        }
        49.98% {
            transform: translate(-42.84%);
        }
        57.12% {
            transform: translate(-57.12%);
        }
        64.26% {
            transform: translate(-57.12%);
        }
        71.40% {
            transform: translate(-71.4%);
        }
        78.54% {
            transform: translate(-71.4%);
        }
        85.68% {
            transform: translate(-85.68%);
        }
        92.82% {
            transform: translate(-85.68%);
        }
        100% {
            transform: translateX(0);
        }        
    }
}