/* ---------------------------------------------------------------------- */
/* CONFIGURATION : VARIABLES DE COULEURS */
/* ---------------------------------------------------------------------- */
:root {
    --primary-color: #FFD700; /* Doré */
    --secondary-color: #B8860B; /* Doré accent */
    --accent-color: #EAC117; /* Doré vif */
    --background-color: #000000; /* Noir pur */
    --text-color: #f0f0f0; 
    --card-bg: rgba(0, 0, 0, 0.6); /* Fond sombre pour l'effet de flou */
    --shadow-light: 0 4px 12px rgba(255, 215, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(255, 215, 0, 0.2);
}

/* ---------------------------------------------------------------------- */
/* BASE RESET */
/* ---------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; 
    min-height: 100vh; 
}

/* ---------------------------------------------------------------------- */
/* MODIFICATION DE LA BARRE DE DÉFILEMENT */
/* ---------------------------------------------------------------------- */

/* Webkit (Chrome/Safari/Edge) */
::-webkit-scrollbar {
    width: 8px;
    background-color: var(--background-color);
}
::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--background-color);
    transition: background-color 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

/* Firefox */
* {
    scrollbar-color: var(--primary-color) var(--background-color);
    scrollbar-width: thin;
}


/* CANVAS EN ARRIÈRE-PLAN FIXE */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place le canvas derrière tout le contenu */
    display: block;
    background-color: var(--background-color); 
}

/* s'assurer que le contenu est au-dessus du canvas */
header, main, footer {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* HEADINGS */
h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--primary-color);
}

/* ---------------------------------------------------------------------- */
/* NAVIGATION (HEADER)
/* ---------------------------------------------------------------------- */
header {
    background: none; 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    
    /* Effet de vitre dépolie (Blur) */
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 

    box-shadow: var(--shadow-light);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar ul li a {
    color: var(--text-color); 
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color); 
}

/* Soulignement */
.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.navbar ul li a.active::after,
.navbar ul li a:hover::after {
    width: 100%;
}

/* ---------------------------------------------------------------------- */
/* HERO SECTION
/* ---------------------------------------------------------------------- */
#hero {
    background: none; 
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: none;
}
/* Réduction de la hauteur du hero pour les pages secondaires */
.about-hero {
    height: 40vh !important;
}


.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.25em;
    color: var(--primary-color); 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); 
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* ---------------------------------------------------------------------- */
/* SECTIONS GÉNÉRALES & CARDS
/* ---------------------------------------------------------------------- */
section {
    padding: 4rem 5%;
    text-align: center;
    background: none; 
}
#overview h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 2rem;
}

.card {
    flex: 1;
    background-color: var(--card-bg); 
    /* Flou d'arrière-plan */
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); 
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--primary-color); 
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color); 
}

.card p {
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background-color 0.3s, color 0.3s, transform 0.1s;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--accent-color); 
    transform: translateY(-2px);
    color: var(--background-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------------------------- */
footer {
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-color);
    text-align: center;
    padding: 1.5rem 5%;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}


/* ---------------------------------------------------------------------- */
/* PAGE : À PROPOS
/* ---------------------------------------------------------------------- */

#dashboard-container {
    display: flex;
    gap: 30px;
    padding: 2rem 5%;
    align-items: flex-start;
    background: none; 
}

.dashboard-sidebar {
    flex: 0 0 300px; /* Largeur fixe pour la colonne latérale */
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky; 
    top: 100px;
}

.dashboard-content {
    flex: 1;
    min-width: 0; 
}

.dashboard-block {
    padding: 0;
}

.dashboard-sidebar .card {
    padding: 20px;
    text-align: left;
    border-top: none; 
    border-left: 5px solid var(--primary-color); 
}

/* STYLE BLOC PROFIL (IMAGE + INFOS) */
.profile-block {
    text-align: left;
}

.profile-block h3 {
    text-align: left;
    color: var(--primary-color); 
    font-size: 1.2rem;
    margin-bottom: 15px; 
    font-weight: 700;
}

.profile-pic {
    width: 150px; 
    height: 150px;
    object-fit: cover;
    border-radius: 50%; 
    border: 4px solid var(--primary-color); 
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s;
    margin: 5px auto 20px auto; /* Centrage horizontal de l'image */
    display: block;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.profile-block ul {
    text-align: left;
    margin-top: 0; 
    padding-left: 0;
    list-style: none;
    display: block;
}

.profile-block ul li {
    margin-bottom: 10px;
    font-size: 0.95rem; 
    display: flex; 
    align-items: center;
    justify-content: flex-start; 
    width: 100%; 
}

.profile-block ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dashboard-sidebar h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding-bottom: 5px;
    text-align: left; 
}

/* BADGES POUR CERTIFICATIONS ET LANGUES PRINCIPALES */
.main-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-start; 
}

.main-cert-badges li {
    background-color: var(--card-bg); 
    color: var(--primary-color); 
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0; 
    border: 2px solid var(--primary-color); 
    list-style: none; 
}


/* STYLE SPÉCIFIQUE DES COMPÉTENCES AUTODIDACTES (SIDEBAR) */
.autodidact-skills {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 10px;
    padding-left: 0 !important; 
}

.autodidact-skills li {
    background-color: var(--card-bg); 
    color: var(--primary-color); 
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0; 
    border: 1px solid rgba(255, 215, 0, 0.3); 
    list-style: none; 
}

/* Contenu principal Timeline */
.dashboard-content h2 {
    text-align: left;
    margin-left: 10px;
    margin-bottom: 30px;
}

.dashboard-content h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Surcharge de la timeline pour le nouveau contexte */
.cv-timeline {
    max-width: none;
    margin: 0;
}

.timeline-item {
    border-left: 5px solid var(--primary-color);
    border-top: none; 
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
    flex: 1; 
}

/* L'indicateur de temps */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -12.5px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--background-color); 
    z-index: 2;
}

.timeline-item h3 {
    color: var(--text-color); 
    font-size: 1.3rem;
}
.timeline-item h3 i {
    color: var(--primary-color); 
    margin-right: 10px;
}
.timeline-item .date {
    color: var(--primary-color); 
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-footer-btn {
    text-align: center;
    margin-top: 40px;
}

/* ---------------------------------------------------------------------- */
/* STYLE SPÉCIFIQUE DU PORTFOLIO */
/* ---------------------------------------------------------------------- */

.portfolio-grid-section {
    padding-top: 2rem;
    text-align: center;
}

/* Contrôles de filtre */
.filter-controls {
    margin-bottom: 40px;
}
.filter-controls h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.filter-controls h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}
.filter-buttons-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.filter-buttons-group button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px; 
}
.filter-buttons-group .primary-btn {
    background-color: var(--primary-color);
    color: var(--background-color);
}
.filter-buttons-group .secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.filter-buttons-group .active-filter {
    background-color: var(--accent-color) !important;
    color: var(--background-color) !important;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border: 2px solid var(--accent-color) !important;
}


/* Grille de projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
    margin-top: 30px;
    text-align: left; 
}

/* Style de la carte de projet */
.project-item.card {
    padding: 25px;
    text-align: center; 
    border-left: 5px solid var(--primary-color); 
    border-top: none;
    height: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item.card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}
.project-item.card h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Description */
.project-item.card .repo-description {
    font-size: 0.95rem;
    color: var(--text-color);
    flex-grow: 1; 
    margin: 10px 0 15px;
    text-align: left; 
    width: 100%; 
}

/* BLOC DE MÉTADONNÉES (Dates) */
.project-meta {
    font-size: 0.85rem;
    color: var(--secondary-color); 
    margin-top: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15); 
    padding-bottom: 10px;
    width: 100%;
}
.project-meta span {
    text-align: center;
}
.project-meta span i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* BLOC DE STATISTIQUES (Chiffres clés) */
.project-stats {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    margin: 15px 0 20px; 
    padding: 10px;
    background-color: rgba(255, 215, 0, 0.05); 
    border-radius: 5px;
    font-weight: 600;
    width: 100%;
}
.project-stats .stat-item {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}
.project-stats .stat-item i {
    color: var(--primary-color);
    margin-right: 5px;
}


/* Style pour les tags */
.project-tags {
    margin: 10px 0 20px;
    flex-grow: 0;
    text-align: center;
}
.project-tags .tag-badge {
    display: inline-block;
    background-color: rgba(255, 215, 0, 0.1); 
    color: var(--primary-color); 
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ---------------------------------------------------------------------- */
/* STYLE SPÉCIFIQUE DU PORTAIL DE LIENS (LINKTREE CUSTOM) */
/* ---------------------------------------------------------------------- */

.portail-section {
    padding: 3rem 5%;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 25px; 
    max-width: 1200px;
    margin: 0 auto;
}

/* Grille de 2 colonnes */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    padding: 30px 5%;
    width: 100%;
    justify-items: center; 
}


.widget-card {
    display: flex;
    align-items: center;
    width: 100%; 
    padding: 25px; 
    
    background-color: rgba(255, 215, 0, 0.15); 
    
    /* Effet de vitre dépolie (Blur) */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-default);
    text-decoration: none; 
    color: var(--text-color);
    
    transition: all 0.3s ease;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.25);
}

/* Icone principale */
.widget-card i {
    font-size: 2.8rem;
    margin-right: 25px;
    color: var(--primary-color); 
    transition: color 0.3s;
}

/* Contenu textuel */
.widget-content {
    text-align: left;
}

.widget-content h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.widget-content p {
    margin: 2px 0 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

/* Couleurs spécifiques (Branding) */
.github-link i { color: #808080; } 
.linkedin-link i { color: #0A66C2; }
.discord-link i { color: #5865F2; }
.fiverr-link i { color: #1DBF73; } 
.instagram-link i { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}
.spotify-link i { color: #1DB954; }

/* ---------------------------------------------------------------------- */
/* RESPONSIVE DESIGN */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px) {
    /* Responsive index.html */
    .cards {
        flex-direction: column;
    }
    
    /* Responsive dashboard (page à propos) */
    #dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        flex: 0 0 100%;
        width: 100%;
        position: static;
    }
    
    .dashboard-sidebar .card {
        text-align: center;
        border-left: none; 
        border-top: 5px solid var(--primary-color); 
    }
    
    .profile-block h3 {
        text-align: center; 
    }

    .profile-block ul {
        text-align: center; 
    }
    .profile-block ul li {
        justify-content: center; 
    }

    .autodidact-skills, .main-cert-badges {
        justify-content: center; 
    }

    .dashboard-content h2 {
        text-align: center;
        margin-left: 0;
    }
    
    /* Responsive portail */
    .dashboard-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
    }

    .navbar ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        margin-bottom: 10px;
    }

    #hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    section {
        padding: 3rem 5%;
    }
    
    .about-hero {
        height: 30vh !important;
    }

    /* Responsive portfolio */
    .filter-buttons-group {
        flex-direction: column;
        gap: 10px;
    }
    .filter-buttons-group button {
        width: 100%; 
    }
    .project-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center; 
    }
    .project-stats {
        flex-direction: column;
        align-items: center; 
        gap: 8px;
    }
    .project-stats .stat-item {
        width: 100%;
        text-align: center;
    }

    /* Responsive portail suite */
    .widget-card {
        padding: 15px 20px;
        flex-direction: column; 
        text-align: center;
        align-items: center;
    }
    .widget-card i {
        margin: 0 0 10px 0;
    }
    .widget-content {
        text-align: center;
    }
    .widget-content p {
        font-size: 0.85rem; 
    }
}