149 lines
2.5 KiB
CSS
149 lines
2.5 KiB
CSS
|
body {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
font-family: 'Arial', sans-serif;
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
background-color: #333;
|
||
|
color: #fff;
|
||
|
padding: 10px 0; /* Ajustez le padding-top pour déplacer légèrement l'image du logo vers le bas */
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
#logo {
|
||
|
display: flex;
|
||
|
align-items: center; /* Centrer verticalement le contenu du logo */
|
||
|
}
|
||
|
|
||
|
#logo img {
|
||
|
width: 20%; /* Utiliser 100% de la largeur du conteneur */
|
||
|
height: auto; /* Maintenir le rapport hauteur/largeur pour éviter la distorsion */
|
||
|
margin-top: 5px; /* Ajustez la marge pour déplacer légèrement l'image du logo vers le bas */
|
||
|
}
|
||
|
|
||
|
nav {
|
||
|
display: flex;
|
||
|
align-items: center; /* Centrer verticalement les éléments de la barre de navigation */
|
||
|
}
|
||
|
|
||
|
.container {
|
||
|
width: 80%;
|
||
|
margin: 0 auto;
|
||
|
color:#000000;
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
background-color: #4A305A;
|
||
|
color: #fff;
|
||
|
padding: 15px 0;
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
header #logo {
|
||
|
font-size: 24px;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
#hero {
|
||
|
background: url('hero-image.jpg') center/cover;
|
||
|
color: #fff;
|
||
|
text-align: center;
|
||
|
padding: 100px 0;
|
||
|
}
|
||
|
|
||
|
#hero h1 {
|
||
|
font-size: 48px;
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
|
||
|
#hero p {
|
||
|
font-size: 18px;
|
||
|
margin-bottom: 30px;
|
||
|
}
|
||
|
|
||
|
#hero a {
|
||
|
display: inline-block;
|
||
|
background-color: #fff;
|
||
|
color: #333;
|
||
|
padding: 10px 20px;
|
||
|
text-decoration: none;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
@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;
|
||
|
}
|
||
|
}
|