feat(ui): modularisation du css et fidélisation des composants à la maquette figma

- découpage du css par composant (navbar, hero, footer, global)
- ajustement pixel-perfect du footer (newsletter full-bleed, alignements, typographies)
- documentation et commentaires détaillés du code react et css
This commit is contained in:
MohamedLoum1001
2026-09-23 17:27:05 +02:00
parent 517dc0711d
commit d3b9318dee
41 changed files with 11551 additions and 2101 deletions

View File

@ -1,3 +1,248 @@
body {
background-color: skyblue;
@tailwind base;
@tailwind components;
@tailwind utilities;
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* NAVBAR */
.navbar-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 50;
padding: 1.5rem 3rem;
box-sizing: border-box;
}
.navbar-content {
max-width: 1440px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.navbar-logo img {
height: 46px;
width: auto;
display: block;
object-fit: contain;
}
.navbar-nav {
display: flex;
align-items: center;
gap: 4rem;
}
.nav-links {
display: flex;
list-style: none;
gap: 3rem;
margin: 0;
padding: 0;
}
.nav-links li a {
text-decoration: none;
color: #1e293b;
font-size: 0.95rem;
font-weight: 500;
/* Contour lumineux pour détacher les liens du feuillage */
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.6);
transition: color 0.2s ease;
}
.nav-links li a:hover {
color: #8c8f3e;
}
.btn-participer {
background-color: #8c8f3e;
color: #ffffff;
padding: 0.65rem 1.75rem;
border-radius: 9999px;
font-size: 0.95rem;
font-weight: 500;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.btn-participer:hover {
background-color: #737630;
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.hamburger {
display: none;
flex-direction: column;
justify-content: space-around;
width: 28px;
height: 22px;
background: transparent;
border: none;
cursor: pointer;
z-index: 60;
padding: 0;
}
.hamburger span {
width: 100%;
height: 2.5px;
background-color: #1e293b;
border-radius: 2px;
transition: all 0.3s ease;
}
/* HERO BANNER */
.hero-section {
position: relative;
width: 100%;
min-height: 100vh;
background-size: cover;
background-position: center right;
background-repeat: no-repeat;
display: flex;
align-items: center;
padding-top: 5rem;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.45) 0%,
rgba(255, 255, 255, 0.15) 50%,
rgba(255, 255, 255, 0) 100%);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
max-width: 1380px;
width: 100%;
margin: 0 auto;
padding: 0 2rem;
}
.hero-text-block {
max-width: 580px;
}
.hero-title {
font-size: 2.75rem;
font-weight: 800;
line-height: 1.2;
color: #0b1320;
margin-bottom: 1.25rem;
letter-spacing: -0.02em;
}
.hero-description {
font-size: 0.88rem;
line-height: 1.55;
color: #724213;
margin-bottom: 2rem;
max-width: 460px;
font-weight: 500;
}
.btn-hero {
display: inline-flex;
align-items: center;
gap: 0.6rem;
background-color: #8c8f3e;
color: #ffffff;
padding: 0.75rem 1.6rem;
border-radius: 9999px;
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
transition: all 0.25s ease;
box-shadow: 0 4px 12px rgba(140, 143, 62, 0.25);
}
.btn-hero:hover {
background-color: #737630;
transform: translateY(-2px);
}
/* RESPONSIVE */
@media (max-width: 960px) {
.navbar-container {
padding: 1.25rem 1.5rem;
}
.hamburger {
display: flex;
}
.hamburger.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
opacity: 0;
}
.hamburger.active span:nth-child(3) {
transform: rotate(-45deg) translate(6px, -6px);
}
.navbar-nav {
position: fixed;
top: 0;
right: -100%;
width: 280px;
height: 100vh;
background-color: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(12px);
flex-direction: column;
justify-content: center;
gap: 2rem;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
transition: right 0.35s ease-in-out;
}
.navbar-nav.open {
right: 0;
}
.nav-links {
flex-direction: column;
align-items: center;
gap: 1.75rem;
}
.nav-links li a {
text-shadow: none;
font-size: 1.05rem;
}
.hero-section {
min-height: auto;
padding: 7rem 0 4rem 0;
background-position: 70% center;
}
.hero-overlay {
background: rgba(255, 255, 255, 0.75);
}
.hero-title {
font-size: 1.85rem;
}
}