/* ============================
   Pages dédiées (projets, compétences, parcours)
============================ */

/* Hero des pages */
.page-hero {
    background: linear-gradient(135deg, #0a66c2 0%, #0d8acd 40%, #38b2e0 100%);
    color: white;
    padding: 4rem 2rem 4rem;
    text-align: center;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    margin-top: 4px;
    opacity: 0.9;
}


.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 0;
}

.page-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.9;
}

/* Section projets page */
.projects-page-section {
    padding: 4rem 2rem;
    min-height: 60vh;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

/* Section compétences page */
.competences-page-section {
    padding: 4rem 2rem;
    background: var(--light-gray);
}

.skill-info {
    flex: 1;
}


.skill-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0.5rem 0;
}

.skill-level {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Section parcours page */
.parcours-section {
    padding: 4rem 2rem;
}

.parcours-formations {
    background: var(--light-gray);
}

.parcours-certifications {
    background: white;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.certification-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.certification-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.certification-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.cert-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Filtres */
.filters-section {
    background: var(--light-gray);
    padding: 2rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: white;
    color: var(--text);
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.page-info {
    color: var(--gray);
    font-weight: 500;
}

/* Résultats vides */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    font-size: 1.2rem;
}

/* ============================
   Responsive
============================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    
    .section {
        padding: auto;
    }


    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-profile-image {
        width: 150px;
        height: 150px;
    }

    .name {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
        text-align: left;
    }

    .timeline-marker {
        left: 20px;
    }
}











/* ===============================
   PROJET DETAIL
================================ */

.projet-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* HEADER */
.projet-header {
    margin-bottom: 2rem;
}

.projet-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2; 
}

.projet-categorie {
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* IMAGE */
.projet-image {
    margin: 2rem 0;
}

.projet-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}



/* DESCRIPTION */
.projet-description h2,
.projet-tech h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.projet-description p {
    line-height: 1.7;
    color: #374151;
}

/* TECHNOLOGIES */
.projet-tech ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    list-style: none;
}

.projet-tech li {
    background: #f3f4f6;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}



/* LIENS */
.projet-liens {
    margin: 2.5rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    border: 1px solid #2563eb;
    color: #2563eb;
}

/* LIKE */
.projet-like {
    margin-top: 2rem;
}

.like-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease;
}

.like-btn.liked {
    color: #e11d48;
}

.like-btn.animate {
    transform: scale(1.3);
}

/* RETOUR */
.retour {
    margin-top: 3rem;
}

.retour a {
    color: #2563eb;
    text-decoration: none;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .projet-header h1 {
        font-size: 1.9rem;
    }

    .projet-liens {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .projet-header h1 {
        font-size: 1.6rem;
    }
}
