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:
@ -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;
|
||||
}
|
||||
}
|
||||
367
assets/styles/footer.css
Normal file
367
assets/styles/footer.css
Normal file
@ -0,0 +1,367 @@
|
||||
/* ==========================================================================
|
||||
FOOTER GAEA21
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
Conteneur global du footer :
|
||||
- Fond blanc pur (#ffffff).
|
||||
- Padding haut généreux pour aérer par rapport à la section précédente.
|
||||
- overflow-x caché pour éviter tout scroll horizontal indésirable.
|
||||
*/
|
||||
.gaea-footer {
|
||||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
padding-top: 50px;
|
||||
box-sizing: border-box;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/*
|
||||
Conteneur interne pour centrer le contenu :
|
||||
- Calé sur la largeur maximale de la maquette (1440px).
|
||||
- Marges automatiques gauche/droite pour un centrage parfait.
|
||||
- Padding latéral de sécurité pour les écrans plus étroits.
|
||||
*/
|
||||
.gaea-footer-inner {
|
||||
max-width: 1440px;
|
||||
margin: 0 auto;
|
||||
padding: 0 48px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
1. PARTIE SUPÉRIEURE : LOGO | LIGNE SÉPARATRICE | 3 COLONNES
|
||||
========================================================================== */
|
||||
.footer-top-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
/* Aligne le haut du logo avec le haut des titres de colonnes */
|
||||
padding-bottom: 60px;
|
||||
/* Espace entre la navigation et le bandeau newsletter */
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Bloc Marque : Logo gaea21 et icônes des réseaux sociaux */
|
||||
.footer-brand-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
width: 210px;
|
||||
flex-shrink: 0;
|
||||
/* Empêche le logo de rétrécir */
|
||||
}
|
||||
|
||||
.footer-logo {
|
||||
display: block;
|
||||
margin: 0 0 24px 0;
|
||||
/* Espacement entre le logo et les icônes */
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.footer-logo img {
|
||||
height: 48px;
|
||||
width: auto;
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* Rangée des icônes de réseaux sociaux */
|
||||
.footer-socials {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
/* Espace régulier entre chaque icône */
|
||||
}
|
||||
|
||||
.footer-socials a {
|
||||
color: #000000;
|
||||
display: inline-flex;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.footer-socials a:hover {
|
||||
opacity: 0.7;
|
||||
/* Effet au survol */
|
||||
}
|
||||
|
||||
.footer-socials svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
/*
|
||||
Séparateur vertical doré Figma :
|
||||
- Couleur exacte dorée / bronze (#A8985A).
|
||||
- Hauteur proportionnelle à la zone logo + liens.
|
||||
- Marges précises pour équilibrer le vide visuel.
|
||||
*/
|
||||
.footer-gold-divider {
|
||||
width: 1.5px;
|
||||
height: 130px;
|
||||
background-color: #A8985A;
|
||||
margin: 0 65px 0 45px;
|
||||
/* 45px à gauche (côté logo), 65px à droite (côté liens) */
|
||||
flex-shrink: 0;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
/*
|
||||
Zone des colonnes de navigation :
|
||||
- Distribution équilibrée des colonnes avec un gap généreux.
|
||||
- padding-top léger (2px) pour aligner exactement la ligne de base du titre « Écosystème » avec le haut du logo.
|
||||
*/
|
||||
.footer-nav-columns {
|
||||
display: flex;
|
||||
gap: 150px;
|
||||
/* Espacement net entre « Écosystème », « Ressources », « À propos » */
|
||||
flex: 1;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
/* Titres dorés/kaki des colonnes de navigation */
|
||||
.footer-col-title {
|
||||
color: #A8985A;
|
||||
font-size: 14.5px;
|
||||
font-weight: 700;
|
||||
margin: 0 0 18px 0;
|
||||
letter-spacing: -0.01em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* Liste des liens */
|
||||
.footer-links-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
/* Espace vertical entre chaque sous-lien */
|
||||
}
|
||||
|
||||
.footer-links-list li a {
|
||||
color: #1a1a1a;
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
font-weight: 400;
|
||||
line-height: 1.35;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.footer-links-list li a:hover {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
2. BANDEAU NEWSLETTER (PLEINE LARGEUR TOTALE - FULL BLEED)
|
||||
========================================================================== */
|
||||
.footer-newsletter-fullwidth {
|
||||
width: 100%;
|
||||
background-color: #D8DCAB;
|
||||
/* Teinte officielle verte amande/kaki clair du Figma */
|
||||
padding: 28px 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Conteneur intérieur du bandeau newsletter */
|
||||
.footer-newsletter-content {
|
||||
max-width: 1440px;
|
||||
margin: 0 auto;
|
||||
padding: 0 48px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Partie gauche : Disque icône + Titre & descriptif */
|
||||
.newsletter-brand-side {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
/* Cercle gris clair (#DDE1EA) sous l'icône enveloppe */
|
||||
.newsletter-icon-circle {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 50%;
|
||||
background-color: #DDE1EA;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Enveloppe violette (#6568B9) */
|
||||
.newsletter-icon-circle svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
color: #6568B9;
|
||||
}
|
||||
|
||||
.newsletter-texts h3 {
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
color: #000000;
|
||||
margin: 0 0 4px 0;
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.newsletter-texts p {
|
||||
font-size: 12.5px;
|
||||
color: #000000;
|
||||
margin: 0;
|
||||
line-height: 1.4;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* Partie droite : Formulaire d'abonnement */
|
||||
.newsletter-form-side {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.newsletter-input-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
/* Champ de saisie ovale bordé de noir */
|
||||
.newsletter-input {
|
||||
width: 320px;
|
||||
height: 44px;
|
||||
background-color: transparent;
|
||||
border: 1.5px solid #000000;
|
||||
border-radius: 9999px;
|
||||
padding: 0 24px;
|
||||
font-size: 13px;
|
||||
color: #000000;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.newsletter-input::placeholder {
|
||||
color: #222222;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
/* Bouton vert olive (#A4AC56 / #98984B) */
|
||||
.newsletter-btn {
|
||||
height: 44px;
|
||||
padding: 0 28px;
|
||||
background-color: #A4AC56;
|
||||
color: #ffffff;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
border-radius: 9999px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: opacity 0.2s ease, transform 0.1s ease;
|
||||
}
|
||||
|
||||
.newsletter-btn:hover {
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.newsletter-btn:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.newsletter-privacy-text {
|
||||
font-size: 10.5px;
|
||||
color: #000000;
|
||||
margin-top: 6px;
|
||||
padding-left: 10px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
3. BARRE DE MENTIONS LÉGALES TOUT EN BAS
|
||||
========================================================================== */
|
||||
.footer-bottom-bar {
|
||||
padding-top: 18px;
|
||||
padding-bottom: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 11px;
|
||||
color: #444444;
|
||||
}
|
||||
|
||||
.footer-bottom-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.footer-bottom-links a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.footer-bottom-links a:hover {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.footer-bottom-links .divider {
|
||||
color: #BCA86A;
|
||||
/* Couleur dorée pour le séparateur vertical */
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
RESPONSIVE : ADAPTATION SUR ÉCRANS MOBILES ET TABLETTES
|
||||
========================================================================== */
|
||||
@media (max-width: 1024px) {
|
||||
|
||||
.gaea-footer-inner,
|
||||
.footer-newsletter-content {
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.footer-top-row {
|
||||
flex-direction: column;
|
||||
gap: 35px;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.footer-gold-divider {
|
||||
display: none;
|
||||
/* Masqué sur petit écran pour aérer */
|
||||
}
|
||||
|
||||
.footer-nav-columns {
|
||||
gap: 40px;
|
||||
flex-wrap: wrap;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.footer-newsletter-content {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
.newsletter-input-group {
|
||||
width: 100%;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.newsletter-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer-bottom-bar {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
0
assets/styles/header.css
Normal file
0
assets/styles/header.css
Normal file
0
assets/styles/hero.css
Normal file
0
assets/styles/hero.css
Normal file
Reference in New Issue
Block a user