header footer css
header footer css
.main-nav {
background: var(--blue-color);
padding: 1rem 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
font-size: 1.8rem;
font-weight: 800;
color: var(--primary-color);
}
.logo img {
height: 40px;
}
.nav-links .btn-primary,
.nav-links .btn-secondary {
padding: 0.8rem 1.5rem;
border-radius: 12px;
font-weight: 700;
text-decoration: none;
transition: all 0.3s ease;
border: 2px solid;
}
.btn-primary {
background: var(--primary-color);
color: var(--white);
border-color: var(--primary-dark);
box-shadow: 0 4px 0 var(--primary-dark);
}
.btn-primary:hover {
transform: translateY(2px);
box-shadow: 0 2px 0 var(--primary-dark);
}
.btn-secondary {
background: var(--white);
color: var(--primary-color);
border-color: var(--primary-color);
margin-right: 1rem;
}
.btn-secondary:hover {
background: #E5F6E3;
}
@media (max-width: 768px) {
.nav-container {
flex-direction: column;
align-items: flex-start;
padding: 1rem;
}
.logo {
font-size: 1.4rem;
}
.logo img {
height: 32px;
}
.nav-links {
display: flex;
flex-direction: column;
gap: 0.5rem;
width: 100%;
margin-top: 0.8rem;
}
.nav-links .btn-primary,
.nav-links .btn-secondary {
width: 100%;
padding: 0.8rem;
text-align: center;
font-size: 1rem;
margin-right: 0; /* Remove inline margin */
}
.main-nav {
padding: 0.5rem 0.8rem;
}
}
.footer-section h3::after {
content: '';
position: absolute;
left: 50%; /* Centre la ligne */
transform: translateX(-50%);
bottom: 0;
width: 50px;
height: 3px;
background-color: var(--primary-color);
border-radius: 2px;
}
.footer-section ul li {
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center; /* Centre les éléments */
gap: 0.5rem;
font-weight: 500;
}
.footer-section a:hover {
color: var(--primary-color);
opacity: 1;
}
.social-links a {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.social-links a:hover {
background: var(--primary-color);
transform: translateY(-3px);
}
.footer-bottom {
text-align: center;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
.footer-bottom p {
font-size: 1rem;
color: var(--white);
margin: 0;
font-weight: 500;
opacity: 0.9;
}
/* Media Queries */
@media (max-width: 1024px) {
.footer-content {
grid-template-columns: repeat(2, 1fr);
}
}
.footer-section {
min-height: 150px; /* Hauteur réduite sur mobile */
}
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.footer-section {
animation: fadeIn 0.5s ease-out forwards;
}
.logo {
font-size: 1.4rem;
}
.logo img {
height: 32px;
}
.nav-links {
display: flex;
flex-direction: column;
gap: 0.5rem;
width: 100%;
margin-top: 0.8rem;
}
.nav-links .btn-primary,
.nav-links .btn-secondary {
width: 100%;
padding: 0.8rem;
text-align: center;
font-size: 1rem;
margin-right: 0;
}
.main-nav {
padding: 0.5rem 1rem;
}
}