SAE_WEB_S1/CSS/styles.css

242 lines
2.8 KiB
CSS

body{
margin: 0;
}
header{
margin-bottom: 10vh;
}
.txt_rouge{color: red;font-weight: bold;}
.txt_jaune{color: gold;font-weight: bold;}
ul{
margin: 0;
padding: 0;
}
h1{
text-align: center;
margin-bottom: 10vh;
font-size: 3em;
}
h2{
padding: 0;
margin: 0;
text-align: center;
font-size: 2.5em;
}
h3{
text-align: center;
font-size: 2em;
}
p {
margin: 0;
}
nav{
font-size: 20px ;
top: 0;
left: 0;
z-index: 100;
position: fixed;
display: flex;
align-items: center;
justify-content: space-around;
flex-direction: row-reverse;
background: #000000;
width: 100%;
}
.button {
width: 9.5em;
height: 2.3em;
margin: 0.5em;
background: rgb(255, 0, 0);
color: white;
border: none;
border-radius: 1.625em;
font-size: 20px;
font-weight: bold;
cursor: pointer;
position: relative;
z-index: 1;
}
.button:hover {
color: rgb(255, 0, 0);
}
.button:after {
content: "";
background: rgb(0, 0, 0);
position: absolute;
z-index: -1;
left: -6%;
right: -6%;
top: 0;
bottom: 0;
transform: skewX(-45deg) scale(0, 1);
transition: all 0.5s;
}
.button:hover:after {
transform: skewX(-45deg) scale(1, 1);
-webkit-transition: all 0.5s;
transition: all 0.5s;
}
#icone{
height: 7vh;
width: 7vw;
}
#btn_up{
z-index: 100;
background-color: white;
border-radius: 50px;
position: fixed;
right: 2vw;
bottom: 2vh;
height: 4vh;
width: 4vh;
transition: transform ease 1s;
}
#btn_up:hover{
transition: transform ease 0.4s;
transform: scale(1.5);
}
nav li{
display: inline-block;
}
.page{
list-style-type: none;
text-decoration: none;
color: rgb(255,255,255);
}
.page p{
margin-right: 10vh;
color: rgb(255,0,0);
transition: color linear 0.7s;
}
.page p:hover{
color: gold;
transform: scale(1.3,1.3);
transition: transform cubic-bezier(0,0.6,0.4,1.03) 1s;
}
.page p:not(:hover){transition: color linear 0.7s;transition: transform ease 0.4s ;}
#page_courante{
color: gold;
background-color: rgba(255,0,0,0.2);
}
main p{
font-size: 25px;
}
footer{
display: flex;
padding: 2%;
align-items: center;
flex-direction: row-reverse;
justify-content: space-around;
background-color: #00010c;
color: white;
}
footer #reseaux li{
list-style-type: none;
text-decoration: none;
display: inline-block;
}
footer #reseaux p{
padding-left: 15px;
font-size: 25px;
}
footer #reseaux li img{
width: 3vw;
height: 3vh;
}
footer #reseaux li img:not(:hover){
transition: transform linear 0.5s;
opacity: 50%;
}
footer #reseaux li img:hover{
transition: transform linear 0.2s;
transform: scale(1.5);
}
footer #autres a{
color:white ;
list-style-type: none;
text-decoration: none;
}
footer #coordonne p{
margin-bottom: 1rem;
}
footer #autres a:hover{
text-decoration: underline;
}
#menu-mobile{
background-color: blue;
z-index: 10;
height: 10vh;
width: 10vw;
display: none;
}