File: /home/x/n/m/xnmprns/www/Styles/Header.css
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
* {
margin: 0;
padding: 0;
text-decoration: none;
list-style: none;
}
:root {
--Texte-noir: #0B1C2C;
--Orange: #FFA02C;
--Blanc: #FFFFFF;
--Background: #EAE1D6;
--Titre-Beige: #E3B96D;
--Background-noir: #181713;
}
header {
height: 150px;
width: 100%;
background-color: #242424;
}
.hdr-volant {
height: 150px;
width: 100%;
background-color: #242424;
position: fixed;
top: 0px;
z-index: 98;
}
.navbar {
position: fixed;
width: 100%;
height: 160px;
display: flex;
align-items: center;
justify-content: center;
z-index: 99;
}
.navbar a {
color: #f5c368;
font-family: "Poppins", sans-serif;
font-size: 20px;
}
.nav-links ul {
display: flex;
flex-direction: row;
gap: 160px;
list-style: none;
}
/* Dropdown container pour Services */
.nav-links ul li.dropdown {
position: relative;
display: inline-block;
}
.nav-links .dropdown-content {
display: none; /* Caché par défaut */
position: absolute;
background-color: var(--Blanc); /* Couleur de fond pour le dropdown */
min-width: 200px; /* Largeur minimale pour les options du dropdown */
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Ombre pour un effet de flottement */
z-index: 1;
border-radius: 8px;
padding: 10px 0;
}
/* Classe qui permet d'afficher le dropdown lorsque activé */
.nav-links .dropdown-content.show {
display: block; /* Affiche le dropdown lorsqu'on ajoute la classe 'show' */
}
.nav-links .dropdown-content a {
color: var(--Texte-noir);
padding: 12px 16px;
text-decoration: none;
display: block;
font-family: "Source Serif 4", sans-serif;
font-size: 16px;
}
.nav-links .dropdown-content a:hover {
background-color: var(--Background); /* Change de couleur au survol */
}
/* Styles du bouton actif */
.header-btn-active {
display: flex;
flex-direction: column;
align-items: center;
font-weight: 600;
}
.nav-links .header-btn-active .btn-active {
position: absolute;
top: 100px;
width: 8px;
height: 8px;
background-color: #f5c368;
border-radius: 100%;
}
.navbar .bx-menu {
display: none;
color: var(--Titre-Beige);
position: absolute;
font-size: 60px;
top: 20px;
right: 30px;
transition: all 0.7s ease;
z-index: 31;
}
.bx-x {
display: none;
}
/* Adaptation du dropdown au mobile */
@media screen and (max-width: 1100px) {
header {
height: 100px;
}
.nav-links ul {
display: flex;
flex-direction: column;
align-items: center;
gap: 0px;
}
.nav-links {
position: absolute;
background-color: #eae1d6;
width: 100%;
height: 100vh;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
margin-left: -100%;
transition: all 0.7s ease;
z-index: 30;
}
.mobile-menu {
margin-left: 0;
}
.hdr-volant {
display: none;
}
.navbar .bx-menu {
display: block;
}
.nav-links .header-btn-active .btn-active {
position: relative;
top: -15px;
}
.navbar .nav-links ul li {
margin: 20px 0;
font-size: 1.2rem;
font-weight: 500;
text-align: center;
}
.header-btn-active li a{
font-weight: 600;
}
.nav-links .dropdown-content {
position: static;
width: 100%;
box-shadow: none;
}
.nav-links .dropdown-content a {
padding: 20px;
text-align: center;
}
}
@media screen and (max-width: 800px) {
header {
height: 80px;
}
.hdr-volant {
display: none;
}
.navbar .bx-menu {
display: block;
position: absolute;
top: 10px;
right: 20px;
}
}