feat(trajectoire): intégration complète de la page Construire sa trajectoire

- Implémentation des composants React (8 trajectoires, Human Employment Model, méthodologie 6 étapes, Learning by Doing, exemples de projets, compétences)
- Rendu dynamique des cartes via .map()
- Configuration du routage SPA dans Symfony (route catch-all) et React Router (Header Link)
- Ajustements graphiques et CSS conformes au Figma (#F4F1EA, vert olive)
This commit is contained in:
MohamedLoum1001
2026-09-24 21:20:18 +02:00
parent d3b9318dee
commit cd6a66893a
31 changed files with 1582 additions and 146 deletions

View File

@ -0,0 +1,102 @@
/* ==========================================================================
SECTION COMPÉTENCES POUR ÉVOLUER (FIGMA)
========================================================================== */
.competences-section {
width: 100%;
background-color: #F4F1EA;
/* Fond beige Figma */
padding: 5rem 2rem 6rem 2rem;
box-sizing: border-box;
}
.competences-container {
max-width: 1140px;
margin: 0 auto;
}
/* Trait vert olive */
.competences-green-line {
width: 48px;
height: 4px;
background-color: #556B2F;
border-radius: 2px;
margin-bottom: 0.75rem;
}
/* Surtitre */
.competences-tag-top {
display: block;
font-size: 0.95rem;
font-weight: 600;
color: #7b8337;
margin-bottom: 0.6rem;
}
/* Titre principal */
.competences-main-title {
font-size: 2.25rem;
font-weight: 800;
color: #0f172a;
letter-spacing: -0.02em;
margin: 0 0 3rem 0;
line-height: 1.25;
}
/* Grille de 3 cartes */
.competences-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
/* Carte blanche */
.competence-card {
background-color: #ffffff;
border-radius: 14px;
padding: 2.25rem 2rem;
min-height: 220px;
box-sizing: border-box;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
display: flex;
flex-direction: column;
}
.competence-card-title {
font-size: 1.05rem;
font-weight: 700;
color: #111827;
margin: 0 0 1.25rem 0;
line-height: 1.35;
}
.competence-card-intro {
font-size: 0.84rem;
color: #4b5563;
margin: 0 0 0.5rem 0;
line-height: 1.5;
}
.competence-card-text {
font-size: 0.84rem;
line-height: 1.6;
color: #4b5563;
margin: 0;
}
/* Responsive */
@media (max-width: 900px) {
.competences-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.competences-section {
padding: 3.5rem 1.25rem 4rem 1.25rem;
}
.competences-main-title {
font-size: 1.8rem;
margin-bottom: 2rem;
}
}

View File

@ -0,0 +1,107 @@
/* ==========================================================================
SECTION EXEMPLES DE PROJETS (FIGMA)
========================================================================== */
.projets-section {
width: 100%;
background-color: #ffffff;
padding: 1rem 2rem 5rem 2rem;
box-sizing: border-box;
}
.projets-container {
max-width: 1140px;
margin: 0 auto;
}
/* Surtitre vert olive */
.projets-tag-top {
display: block;
font-size: 0.95rem;
font-weight: 600;
color: #7b8337;
margin-bottom: 2rem;
}
/* Grille 3 colonnes x 2 lignes */
.projets-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin-bottom: 2.5rem;
}
/* Carte blanche avec bordure grise douce */
.projet-card {
background-color: #ffffff;
border: 1px solid #d1d5db;
border-radius: 14px;
padding: 1.75rem 1.5rem;
min-height: 125px;
display: flex;
flex-direction: column;
justify-content: flex-start;
box-sizing: border-box;
transition: transform 0.2s ease, border-color 0.2s ease;
}
.projet-card:hover {
transform: translateY(-2px);
border-color: #8c8f3e;
}
.projet-card-title {
font-size: 1rem;
font-weight: 700;
color: #0f172a;
margin: 0 0 0.75rem 0;
line-height: 1.3;
}
.projet-card-desc {
font-size: 0.82rem;
line-height: 1.5;
color: #4b5563;
margin: 0;
}
/* Alignement du bouton à gauche comme sur la maquette */
.projets-action {
display: flex;
justify-content: flex-start;
}
.btn-decouvrir-projets {
background-color: #7b8337;
color: #ffffff;
font-size: 0.85rem;
font-weight: 600;
padding: 0.55rem 1.6rem;
border-radius: 9999px;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-decouvrir-projets:hover {
background-color: #6a712f;
transform: translateY(-1px);
}
/* Responsive */
@media (max-width: 900px) {
.projets-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.projets-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.projets-section {
padding: 1rem 1.25rem 3.5rem 1.25rem;
}
}

View File

@ -0,0 +1,114 @@
/* ==========================================================================
SECTION HUMAN EMPLOYMENT MODEL (FIGMA)
========================================================================== */
.hem-wrapper {
width: 100%;
background-color: #ffffff;
padding: 1rem 2rem 5rem 2rem;
box-sizing: border-box;
}
.hem-inner {
max-width: 1240px;
margin: 0 auto;
display: flex;
flex-direction: column;
}
/* Texte d'intro gris */
.hem-description {
font-size: 0.85rem;
line-height: 1.55;
color: #6b7280;
max-width: 780px;
margin: 0 0 2.5rem 0;
}
/* Grille 4 colonnes alignées */
.hem-cards-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
width: 100%;
margin-bottom: 3.5rem;
box-sizing: border-box;
}
/* Chaque carte beige */
.hem-card {
background-color: #F4F1EA;
border-radius: 12px;
padding: 1.75rem 1.4rem;
box-sizing: border-box;
min-height: 160px;
}
.hem-card-title {
font-size: 0.95rem;
font-weight: 700;
color: #4B6A4A;
margin: 0 0 1rem 0;
}
.hem-card-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.hem-card-list li {
font-size: 0.8rem;
color: #9A9595;
line-height: 1.45;
}
/* Phrase centrale */
.hem-phrase {
text-align: center;
font-size: 0.95rem;
color: #111827;
margin: 0 0 2rem 0;
}
.hem-phrase strong {
font-weight: 700;
}
/* Image arrondie */
.hem-banner-container {
width: 100%;
max-width: 1000px;
margin: 0 auto;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.hem-banner-img {
width: 100%;
height: 480px;
object-fit: cover;
display: block;
}
/* Responsive : passage en 2 colonnes uniquement sur smartphone / écran très étroit */
@media (max-width: 720px) {
.hem-cards-grid {
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.hem-banner-img {
height: 280px;
}
}
@media (max-width: 480px) {
.hem-cards-grid {
grid-template-columns: 1fr;
}
}

View File

@ -0,0 +1,92 @@
/* ==========================================================================
SECTION LEARNING BY DOING (FIGMA)
========================================================================== */
.lbd-section {
width: 100%;
background-color: #ffffff;
padding: 5rem 2rem 6rem 2rem;
box-sizing: border-box;
}
.lbd-container {
max-width: 1140px;
margin: 0 auto;
}
/* Ligne verte d'accentuation en haut */
.lbd-green-line {
width: 48px;
height: 4px;
background-color: #556B2F;
border-radius: 2px;
margin-bottom: 0.75rem;
}
/* Surtitre */
.lbd-tag-top {
display: block;
font-size: 0.95rem;
font-weight: 600;
color: #7b8337;
margin-bottom: 0.6rem;
}
/* Titre principal */
.lbd-main-title {
font-size: 2.25rem;
font-weight: 800;
color: #0f172a;
letter-spacing: -0.02em;
margin: 0 0 1.25rem 0;
line-height: 1.25;
}
/* Paragraphe */
.lbd-description {
font-size: 0.86rem;
line-height: 1.6;
color: #4b5563;
max-width: 820px;
margin: 0 0 3rem 0;
}
/* Conteneur de la bannière avec coins arrondis */
.lbd-image-wrapper {
width: 100%;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.lbd-banner-img {
width: 100%;
height: 440px;
object-fit: cover;
display: block;
}
/* Responsive */
@media (max-width: 900px) {
.lbd-main-title {
font-size: 1.85rem;
}
.lbd-banner-img {
height: 320px;
}
}
@media (max-width: 640px) {
.lbd-section {
padding: 3.5rem 1.25rem 4rem 1.25rem;
}
.lbd-main-title {
font-size: 1.55rem;
}
.lbd-banner-img {
height: 220px;
}
}

View File

@ -0,0 +1,106 @@
/* ==========================================================================
SECTION MÉTHODOLOGIE EN 6 ÉTAPES (FIGMA)
========================================================================== */
.etapes-section {
width: 100%;
background-color: #ffffff;
padding: 4rem 2rem 6rem 2rem;
box-sizing: border-box;
}
.etapes-container {
max-width: 1140px;
margin: 0 auto;
}
/* Grille 3 colonnes x 2 lignes */
.etapes-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
row-gap: 4rem;
column-gap: 3rem;
justify-items: center;
}
/* Bloc d'une étape */
.etape-item {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: 280px;
}
/* Cercle beige avec liseré */
.etape-circle-wrapper {
position: relative;
width: 104px;
height: 104px;
margin-bottom: 1.5rem;
}
.etape-circle {
width: 100%;
height: 100%;
background-color: #F4F1EA;
border: 1.5px solid #d5dec3;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}
/* Badge vert foncé avec numéro */
.etape-badge {
position: absolute;
top: -2px;
right: -2px;
background-color: #435227;
color: #ffffff;
font-size: 0.72rem;
font-weight: 700;
width: 26px;
height: 26px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #ffffff;
}
/* Textes */
.etape-title {
font-size: 1.15rem;
font-weight: 700;
color: #111827;
margin: 0 0 0.6rem 0;
}
.etape-desc {
font-size: 0.82rem;
line-height: 1.5;
color: #6b7280;
margin: 0;
}
/* Responsive */
@media (max-width: 900px) {
.etapes-grid {
grid-template-columns: repeat(2, 1fr);
row-gap: 3rem;
column-gap: 2rem;
}
}
@media (max-width: 580px) {
.etapes-grid {
grid-template-columns: 1fr;
row-gap: 2.5rem;
}
.etapes-section {
padding: 3rem 1.5rem 4rem 1.5rem;
}
}

View File

@ -0,0 +1,281 @@
/* ==========================================================================
PAGE CONSTRUIRE SA TRAJECTOIRE - GAEA21 (FIGMA)
========================================================================== */
/* --------------------------------------------------------------------------
1. SECTION HERO BANNER
-------------------------------------------------------------------------- */
.trajectoire-hero {
position: relative;
width: 100%;
min-height: 85vh;
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
display: flex;
align-items: center;
box-sizing: border-box;
color: #ffffff;
overflow: hidden;
padding-top: 80px;
}
/*
Overlay assombrissant :
Dégradé plus dense à gauche pour détacher le texte blanc,
plus transparent vers la droite pour révéler la personne et l'ordinateur.
*/
.trajectoire-overlay {
position: absolute;
inset: 0;
background: linear-gradient(90deg,
rgba(10, 20, 25, 0.78) 0%,
rgba(15, 25, 30, 0.55) 45%,
rgba(10, 20, 25, 0.25) 100%);
z-index: 1;
pointer-events: none;
}
/* --------------------------------------------------------------------------
2. NAVBAR TRANSPARENTE EN HAUT DU HERO (Optionnel si intégrée)
-------------------------------------------------------------------------- */
.trajectoire-header {
position: relative;
z-index: 10;
width: 100%;
max-width: 1440px;
margin: 0 auto;
padding: 1.75rem 3rem;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}
.trajectoire-logo img {
height: 44px;
width: auto;
display: block;
object-fit: contain;
}
.trajectoire-nav-links {
display: flex;
align-items: center;
gap: 2.5rem;
list-style: none;
margin: 0;
padding: 0;
}
.trajectoire-nav-links li a {
color: #ffffff;
text-decoration: none;
font-size: 0.95rem;
font-weight: 500;
opacity: 0.9;
transition: opacity 0.2s ease, color 0.2s ease;
}
.trajectoire-nav-links li a:hover {
opacity: 1;
color: #c7d264;
}
/* Bouton « Participer » */
.btn-participer-trajectoire {
background-color: #8c8f3e;
color: #ffffff;
padding: 0.6rem 1.6rem;
border-radius: 9999px;
font-size: 0.9rem;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-participer-trajectoire:hover {
background-color: #737630;
transform: translateY(-1px);
}
/* --------------------------------------------------------------------------
3. CONTENU TEXTE DU HERO (GAUCHE)
-------------------------------------------------------------------------- */
.trajectoire-hero-content {
position: relative;
z-index: 10;
max-width: 1440px;
width: 100%;
margin: 0 auto;
padding: 3rem 4rem;
box-sizing: border-box;
}
.trajectoire-text-wrapper {
max-width: 580px;
}
.trajectoire-title {
font-size: 3rem;
font-weight: 800;
line-height: 1.15;
color: #ffffff;
margin-bottom: 1.5rem;
letter-spacing: -0.02em;
}
.trajectoire-paragraphs {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 2.25rem;
}
.trajectoire-paragraphs p {
font-size: 0.88rem;
line-height: 1.55;
color: rgba(255, 255, 255, 0.9);
margin: 0;
font-weight: 400;
}
/* Groupe de boutons d'action Hero */
.trajectoire-cta-group {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.btn-trajectoire-primary {
background-color: #8c8f3e;
color: #ffffff;
font-size: 0.88rem;
font-weight: 600;
padding: 0.75rem 1.75rem;
border-radius: 9999px;
text-decoration: none;
transition: all 0.2s ease;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.btn-trajectoire-primary:hover {
background-color: #737630;
transform: translateY(-2px);
}
.btn-trajectoire-secondary {
background-color: transparent;
color: #ffffff;
font-size: 0.88rem;
font-weight: 600;
padding: 0.72rem 1.75rem;
border-radius: 9999px;
border: 1.5px solid rgba(255, 255, 255, 0.85);
text-decoration: none;
transition: all 0.2s ease;
}
.btn-trajectoire-secondary:hover {
background-color: rgba(255, 255, 255, 0.15);
border-color: #ffffff;
}
/* --------------------------------------------------------------------------
4. SECTION SUIVANTE : QUESTIONNAIRE INTRO (#F4F1EA)
-------------------------------------------------------------------------- */
.trajectoire-intro-questions {
background-color: #F4F1EA;
padding: 6rem 1.5rem;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
box-sizing: border-box;
width: 100%;
}
.trajectoire-questions-container {
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
.trajectoire-subtitle-green {
color: #7b8337;
font-size: 0.95rem;
font-weight: 600;
letter-spacing: -0.01em;
margin-bottom: 1.25rem;
display: inline-block;
}
.trajectoire-heading-black {
color: #000000;
font-size: 2.25rem;
font-weight: 800;
line-height: 1.2;
letter-spacing: -0.02em;
margin: 0 0 2rem 0;
}
.trajectoire-action-wrapper {
display: flex;
justify-content: center;
}
/* Bouton vert olive ovale "Commencer" */
.btn-trajectoire-commencer {
background-color: #7b8337;
color: #ffffff;
font-size: 0.85rem;
font-weight: 600;
padding: 0.55rem 1.6rem;
border-radius: 9999px;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s ease, transform 0.15s ease;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.btn-trajectoire-commencer:hover {
background-color: #6a712f;
transform: translateY(-1px);
}
/* --------------------------------------------------------------------------
5. RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 900px) {
.trajectoire-header {
padding: 1.25rem 1.5rem;
}
.trajectoire-nav-links {
display: none;
}
.trajectoire-hero-content {
padding: 3rem 1.5rem 4rem 1.5rem;
}
.trajectoire-title {
font-size: 2.2rem;
}
}
@media (max-width: 640px) {
.trajectoire-intro-questions {
padding: 4rem 1.25rem;
}
.trajectoire-heading-black {
font-size: 1.75rem;
}
}

View File

@ -0,0 +1,183 @@
/* ==========================================================================
SECTION 8 TRAJECTOIRES (FIGMA)
========================================================================== */
.trajectoires-section {
background-color: #ffffff;
padding: 5rem 2rem 6rem 2rem;
box-sizing: border-box;
width: 100%;
}
.trajectoires-container {
max-width: 1320px;
margin: 0 auto;
}
/* En-tête */
.trajectoires-header {
margin-bottom: 3.5rem;
}
/* Le trait vert unique */
.trajectoires-green-line {
width: 48px;
height: 4px;
background-color: #556B2F;
border-radius: 2px;
margin-bottom: 0.75rem;
}
/* Titre "Les Trajectoires" */
.trajectoires-tag-top {
display: block;
font-size: 0.95rem;
font-weight: 600;
color: #111827;
margin-bottom: 0.6rem;
text-transform: capitalize;
}
.trajectoires-main-title {
font-size: 2.25rem;
font-weight: 800;
color: #0f172a;
letter-spacing: -0.02em;
margin: 0;
}
/* Grille responsive : 3 colonnes sur desktop, 2 sur tablette, 1 sur mobile */
.trajectoires-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
/* Style de chaque carte individuelle */
.trajectoire-card {
background-color: #F4F1EA;
/* Teinte beige Figma */
border-radius: 14px;
padding: 2.25rem 2rem 2rem 2rem;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform 0.2s ease, box-shadow 0.2s ease;
box-sizing: border-box;
}
.trajectoire-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
/* Badge supérieur (carré couleur + label) */
.trajectoire-card-top {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.trajectoire-badge-indicator {
width: 14px;
height: 14px;
border-radius: 3px;
flex-shrink: 0;
}
.trajectoire-badge-label {
font-size: 0.8rem;
font-weight: 600;
color: #374151;
line-height: 1.3;
}
/* Corps de carte */
.trajectoire-card-body {
flex-grow: 1;
}
.trajectoire-card-title {
font-size: 1.05rem;
font-weight: 700;
color: #111827;
line-height: 1.35;
margin: 0 0 1rem 0;
}
.trajectoire-card-desc {
font-size: 0.85rem;
line-height: 1.5;
color: #4b5563;
margin: 0 0 1.25rem 0;
}
.trajectoire-card-list {
list-style: none;
padding: 0;
margin: 0 0 2rem 0;
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.trajectoire-card-list li {
font-size: 0.82rem;
color: #4b5563;
line-height: 1.45;
position: relative;
padding-left: 1rem;
}
.trajectoire-card-list li::before {
content: "•";
position: absolute;
left: 0;
color: #6b7280;
font-weight: bold;
}
/* Bouton Découvrir */
.trajectoire-card-footer {
margin-top: auto;
}
.btn-card-decouvrir {
background-color: #7b8337;
color: #ffffff;
font-size: 0.82rem;
font-weight: 600;
padding: 0.5rem 1.4rem;
border-radius: 9999px;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-card-decouvrir:hover {
background-color: #6a712f;
transform: translateY(-1px);
}
/* Responsive */
@media (max-width: 1080px) {
.trajectoires-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 680px) {
.trajectoires-section {
padding: 3.5rem 1.25rem;
}
.trajectoires-main-title {
font-size: 1.8rem;
}
.trajectoires-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
}