SAE_S1.05_S1.06/css/styles.css

98 lines
1.5 KiB
CSS

body {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
}
header {
background-color: #4A305A;
color: #fff;
padding: 15px 0;
display: flex;
justify-content: space-between;
align-items: center;
}
#logo {
display: flex;
align-items: center; /* Centrer verticalement le contenu du logo */
}
#logo img {
max-width: 80px; /* Ajuste la taille du logo à 80 pixels (ou une valeur qui convient) */
height: auto;
margin-top: 5px;
}
nav {
display: flex;
align-items: center;
}
nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
margin-left: auto; /* Pour déplacer vers la droite */
}
nav ul li {
margin-left: 20px;
}
nav a {
text-decoration: none;
color: #fff;
font-weight: bold;
}
#menu-icon {
display: none;
font-size: 24px;
cursor: pointer;
}
#reserve-button {
background-color: orange;
color: #fff;
padding: 10px 20px;
border-radius: 10px;
margin-left: 20px;
}
@media screen and (max-width: 768px) {
nav {
flex-direction: column;
align-items: flex-start;
}
nav ul {
display: none;
width: 100%;
text-align: center;
position: absolute;
top: 60px;
left: 0;
background-color: #333;
}
nav ul.show {
display: flex;
flex-direction: column;
}
nav ul li {
margin: 0;
margin-bottom: 10px;
}
#menu-icon {
display: block;
}
#reserve-button {
margin: 20px 0;
}
}