/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Contenu des pages */
.page-content {
    padding-top: 120px;
    padding-bottom: 50px;
}

/* Page d'accueil */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #a8edea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Titres de pages */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #a8edea;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #a8edea;
    text-align: center;
}

/* Section À propos */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #a8edea;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.skills-section {
    margin-bottom: 4rem;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-card h3 {
    color: #feca57;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.objectives-list {
    list-style: none;
    margin-top: 1rem;
}

.objectives-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.9;
}

.objectives-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a8edea;
    font-weight: bold;
}

/* Tags de compétences */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Timeline pour le parcours */
.education-section {
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #a8edea, #feca57);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #feca57;
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 1;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
    color: #a8edea;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #feca57;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Section Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-coming-soon {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
}

.add-project-section {
    text-align: center;
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.add-project-section h3 {
    color: #a8edea;
    margin-bottom: 1rem;
}

/* Pages de projets détaillés */
.project-header {
    margin-bottom: 3rem;
    text-align: center;
}

.back-btn {
    display: inline-block;
    color: #a8edea;
    text-decoration: none;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.project-title {
    font-size: 2.5rem;
    color: #a8edea;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.project-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.project-content {
    max-width: 900px;
    margin: 0 auto;
}

.project-content h2 {
    color: #feca57;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-size: 1.8rem;
}

.project-content h2:first-child {
    margin-top: 0;
}

.project-overview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.project-objectives, .project-challenges, .project-learnings {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

.learnings-list {
    list-style: none;
    margin-top: 1rem;
}

.learnings-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.9;
}

.learnings-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* Technologies utilisées */
.technologies-used {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item h4 {
    color: #a8edea;
    margin-bottom: 0.5rem;
}

.tech-item p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Phases du projet */
.project-phases {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

.phases-timeline {
    margin-top: 2rem;
}

.phase-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.phase-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.phase-content h4 {
    color: #a8edea;
    margin-bottom: 0.5rem;
}

.phase-content p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Résultats */
.project-results {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

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

.result-card {
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-card.success {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.result-card.info {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4);
}

.result-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.result-card p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Défis */
.challenge-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.challenge-item h4 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.challenge-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Fichiers et ressources */
.project-files {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

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

.file-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.file-item h4 {
    color: #a8edea;
    margin-bottom: 0.5rem;
}

.file-item p {
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.file-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.file-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Éléments flottants */
.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

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

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

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

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

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

    .timeline-item {
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 20px !important;
        transform: translateX(-50%) !important;
    }

    .phase-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .results-grid,
    .files-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .skill-card,
    .project-card,
    .project-overview,
    .project-objectives,
    .project-challenges,
    .project-learnings,
    .technologies-used,
    .project-phases,
    .project-results,
    .project-files {
        padding: 1.5rem;
    }
}
    