/* Espacement des liens du menu */
.navbar-nav .nav-item {
    margin-left: 15px;  /* Espace à gauche */
    margin-right: 15px; /* Espace à droite */
}

/* Optionnel : Rendre le texte un peu plus gras pour la lisibilité */
.navbar-nav .nav-link {
    font-weight: 600;
    letter-spacing: 1px; /* Espace légèrement les lettres entre elles */
}

.navbar-brand{
    font-size: 2rem;
}

.formation-box {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #dec653; /* La couleur jaune de votre thème, changez-la si besoin */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.formation-box:hover {
    transform: translateY(-5px); /* Petite animation au survol */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.date-badge {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.formation-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.formation-box .lieu {
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 15px;
}

/* --- STYLE TIMELINE EXPÉRIENCES --- */

.timeline-main {
    position: relative;
    padding-left: 30px; /* Espace pour la ligne */
    border-left: 2px solid #dec653; /* La ligne verticale jaune */
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* Le petit point (cercle) sur la ligne */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -36px; /* Ajustement pour centrer le point sur la ligne */
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #dec653;
}

.timeline-date {
    font-size: 14px;
    font-weight: bold;
    color: #dec653; /* Couleur jaune */
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.timeline-content .company-name {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

/* Effet au survol : on colore le texte */
.timeline-item:hover .timeline-content h4 {
    color: #dec653;
    transition: color 0.3s ease;
}

#experiences p{
    text-align: justify;
}

/* Style des labels de filtres (ex: "Par Formation :") */
.filter-label {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

/* Style du séparateur vertical */
.filter-separator {
    color: #ccc;
    margin: 0 10px;
    font-size: 20px;
    vertical-align: middle;
}

/* Ajustement pour le premier bouton "Tout voir" */
.filter-button-group button {
    margin: 5px; /* Donne un peu d'espace aux boutons */
}

/* Style du sélecteur de langue */
.lang-item {
    display: flex;
    align-items: center; /* Centre verticalement */
    margin-left: 15px;   /* Un peu d'espace après "Me contacter" */
}

.lang-link {
    font-weight: bold;
    padding: 0 5px !important; /* Réduit l'espace autour de FR et EN */
    font-size: 14px;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5); /* Couleur blanche un peu transparente */
    font-size: 14px;
}

/* Change la couleur de la langue active (optionnel) */
.lang-link.active {
    color: #dec653 !important; /* Votre couleur jaune */
    text-decoration: underline;
}


/* =======================================================
   STYLE PORTFOLIO - VERSION FINALE (Textes + Espaces)
   ======================================================= */

.gallery-grid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-bottom: 30px !important;
    margin: 0;
    
    /* IMPORTANT : Permet au z-index de fonctionner */
    position: relative; 
    z-index: 1; 
    overflow: visible !important; /* Laisse dépasser l'ombre et la bordure */

    transition: transform 0.3s ease, z-index 0s; /* Z-index change instantanément */
}

/* LA CORRECTION EST ICI : */
/* Quand on survole la colonne, on la force à passer DEVANT toutes les autres */
.gallery-grid:hover {
    /* On propulse cet élément tout en haut de la pile d'affichage */
    z-index: 9999 !important; 
    
    /* On s'assure que l'élément reste opaque */
    opacity: 1 !important;
}

/* Force les lignes à s'afficher correctement en flexbox */
.gallery-list.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px; /* Compense le padding du container */
    margin-right: -15px;
    margin-top: 1rem;
}

/* --- 2. Design de la Carte (Project Card) --- */
.project-card-text {
    background: #fff;       /* Fond blanc */
    width: 100%;            /* Prend toute la largeur disponible dans la colonne */
    height: 100%;           /* S'étire sur toute la hauteur de la ligne */
    
    border: 1px solid #eee; /* Bordure grise légère */
    border-radius: 8px;     /* Coins arrondis */
    
    /* Flexbox pour coller le bouton "Voir code" tout en bas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);

    background-color: #fff !important; /* Si transparent, on verrait à travers */
    position: relative;
    z-index: 2; /* Juste au-dessus de sa propre colonne */
}

/* Effet au survol */
.project-card-text:hover {
    transform: translateY(-5px); /* Fait remonter la carte */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Ombre plus forte */
    border-color: #dec653; /* Bordure jaune */
}

/* --- 3. Contenu de la carte --- */
.project-card-text .card-body {
    padding: 25px;
    flex-grow: 1; /* Le corps prend tout l'espace disponible */
    min-height: 30rem; 
    z-index: -1000;
}

.project-card-text h4 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.project-card-text .description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- 4. Les Tags (Technologies) --- */
.tags-container {
    margin: auto 1.5rem; /* Pousse les tags vers le bas du body */
}

.tech-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* --- 5. Pied de page de la carte (Lien Github) --- */
.card-footer-custom {
    padding: 15px 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}

.github-link {
    color: #333;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.github-link i {
    margin-right: 10px;
    font-size: 18px;
}

.github-link:hover {
    color: #dec653;
}

/* --- 6. Style des Filtres --- */
.filter-label {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

.filter-button-group button {
    margin: 5px;
    cursor: pointer;
}

/* --- AJOUTS IMPORTANTS POUR LA SUPERPOSITION --- */

.project-card-text {
    /* ... vos styles existants (background, border, etc.) ... */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0; 
    min-height: 400px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    
    /* AJOUTEZ CES DEUX LIGNES : */
    position: relative; /* Nécessaire pour que le z-index fonctionne */
    z-index: 1;         /* Niveau par défaut */
}

.project-card-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #dec653;
    
    /* AJOUTEZ CETTE LIGNE : */
    z-index: 100; /* La carte passe par-dessus TOUT le reste au survol */
}

/* 1. On s'assure que le conteneur global ne coupe pas ce qui dépasse */
.gallery-list {
    overflow: visible !important;
}

/* Force la barre de navigation à rester au-dessus de tout */
#mainNav {
    z-index: 99999 !important;
}

/* Optionnel : Assure-toi que les cartes restent sous le menu */
.project-card-text {
    z-index: 1; /* Valeur basse par défaut */
    position: relative;
}


.button-group.filter-button-group.text-left {
    padding:1rem;
}

.tags-container
{
    margin: 0rem;
}

.message-box{
    text-align: justify;
}