/* Variables globales */
:root {
    /* Couleurs principales */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-secondary: #6c757d;
    --light-bg: #f5f5f5;
    --dark-bg: #2c3e50;
    --white: #ffffff;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-background: rgba(255, 255, 255, 0.9);
    --header-background: rgba(248, 249, 250, 0.95);
    --footer-background: rgba(248, 249, 250, 0.95);
    --transition: all 0.3s ease;
    
    /* Espacement */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* Typographie */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --spacing-unit: 1rem;
    --border-radius: 8px;
}

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--background-gradient);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* En-tête */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Style des liens quand l'en-tête est scrollé */
.header.scrolled .nav-link {
    color: var(--text-secondary);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.05);
}

/* Contenu principal */
main {
    flex: 1;
    margin-top: 80px;
    padding: 20px 5%;
}

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

/* Pied de page */
footer {
    background: var(--footer-background);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Sections */
.presentation, .competences, .cv {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Cartes de compétences */
.competence-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out forwards;
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.competence-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.competence-logo i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.competence-card:hover .competence-logo {
    background: var(--accent-color);
    transform: scale(1.1);
}

.competence-card:hover .competence-logo i {
    color: var(--text-color);
}

/* Barres de progression */
.progress {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-color);
}

/* Conteneur CV */
.cv-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cv-content {
    margin-top: 2rem;
}

.cv-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cv-section:last-child {
    border-bottom: none;
}

.cv-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.cv-date {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

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

.skill-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-item ul {
    list-style-type: none;
    padding-left: 0;
}

.skill-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-item li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Responsive Design pour le CV */
@media (max-width: 768px) {
    .cv-container {
        padding: 1rem;
    }

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

    .cv-section h2 {
        font-size: 1.5rem;
    }

    .cv-item h3 {
        font-size: 1.1rem;
    }
}

/* Styles pour la grille de compétences */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.competence-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.competence-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.competence-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.competence-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.competence-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: var(--spacing-sm);
}

.competence-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.competence-list li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Responsive Design pour la grille de compétences */
@media (max-width: 768px) {
    .competences-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 10px;
    }

    .competence-card {
        padding: 1.5rem;
    }

    .competence-logo {
        width: 80px;
        height: 80px;
    }

    .competence-logo i {
        font-size: 2.5rem;
    }

    .competence-header h3 {
        font-size: 1.2rem;
    }
}

/* Styles pour la section présentation */
.presentation {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.presentation h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.presentation-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.presentation-text {
    flex: 1;
    text-align: left;
}

.presentation-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.presentation-image {
    flex: 1;
    text-align: center;
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1;
}

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

/* Responsive Design pour la présentation */
@media (max-width: 768px) {
    .presentation h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .presentation-content {
        flex-direction: column;
        gap: 2rem;
    }

    .presentation-text {
        text-align: center;
    }

    .profile-image {
        max-width: 200px;
    }
}

/* Styles pour la section compétences */
.competences {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.competences h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

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

.competence-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.competence-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.competence-logo i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.competence-card:hover .competence-logo {
    background: var(--accent-color);
    transform: scale(1.1);
}

.competence-card:hover .competence-logo i {
    color: var(--text-color);
}

.competence-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.competence-level {
    margin-top: 1rem;
}

.progress {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-color);
}

/* Styles pour la section CV */
.cv {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cv h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cv-container {
    width: 100%;
    height: 600px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cv-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Styles pour le CV */
.cv-content {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    color: var(--text-color);
}

.cv-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.cv-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cv-section {
    margin-bottom: 2rem;
}

.cv-section h4 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.cv-section ul {
    list-style-type: none;
    padding-left: 0;
}

.cv-section li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.cv-section li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Responsive Design pour le CV */
@media (max-width: 768px) {
    .cv-content {
        padding: 1rem;
    }

    .cv-content h3 {
        font-size: 1.5rem;
    }

    .cv-subtitle {
        font-size: 1rem;
    }

    .cv-section h4 {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .presentation h2 {
        font-size: 1.5rem;
    }

    .presentation-text {
        text-align: center;
    }

    .profile-image {
        max-width: 200px;
    }

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

    .competence-logo {
        width: 60px;
        height: 60px;
    }

    .competence-logo i {
        font-size: 2rem;
    }

    .cv-container {
        height: 400px;
    }
}

/* Styles pour les articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-actions {
    margin-top: auto;
    padding-top: 0.75rem;
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour les documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.document-actions {
    margin-bottom: 2rem;
    text-align: center;
}

.document-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.document-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.document-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.document-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
}

.document-meta .date {
    color: var(--text-color);
}

.document-card .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la page de détail d'article */
.article-content {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-banner {
    margin-bottom: 2rem;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-meta {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-meta .date {
    color: var(--accent-color);
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-text h3.section-title {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.article-text ul.nested-list {
    list-style-type: none;
    padding-left: 2rem;
    margin: 1rem 0;
}

.article-text ul.nested-list li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

.article-text ul.nested-list li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.article-text ul.nested-list ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-text ul.nested-list ul li {
    font-size: 1rem;
    color: #666;
}

/* Styles pour les listes imbriquées */
.article-text ul.nested-list ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.article-text ul.nested-list ul li:before {
    content: none;
}

/* Styles pour les sous-sections */
.article-text h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

/* Styles pour les paragraphes importants */
.article-text p.important {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
    margin: 1.5rem 0;
}

/* Styles pour les définitions */
.article-text dl {
    margin: 1rem 0;
}

.article-text dt {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

.article-text dd {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary-color);
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive design pour la page article */
@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary, .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Styles pour les articles de veille */
.article {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-banner {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.article-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.article-meta span {
    display: block;
    color: #666;
}

.article-meta .date {
    font-style: italic;
}

.article-meta .category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-meta .category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styles spécifiques pour différentes catégories */
.article-meta .category[data-category="développement"] {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: black;
}

.article-meta .category[data-category="sécurité"] {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.article-meta .category[data-category="cloud"] {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.article-meta .category[data-category="ia"] {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.article-meta .category[data-category="web"] {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.article-meta .category[data-category="mobile"] {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

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

.article-meta .source a:hover {
    color: var(--secondary-color);
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text h2, 
.article-text h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.article-text ul, 
.article-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

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

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

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary, .btn-secondary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover, .btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .article {
        margin: 1rem;
        padding: 1rem;
    }

    .article-meta {
        flex-direction: column;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

.article-header {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--primary-color);
    border-radius: 8px;
}

.article-title {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--secondary-color);
}

.document-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.add-document-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.add-document-button:hover {
    background-color: var(--primary-color);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.card-body .document-meta {
    margin: 2rem 0;
}

.card-body .document-actions {
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.competence-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Styles pour la page Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: var(--spacing-md);
}

.contact-item span {
    color: var(--text-color);
    font-size: 1.1rem;
}

.contact-form-container {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 2rem 0;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-control::placeholder {
    color: #666;
    opacity: 0.8;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.button {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: var(--spacing-md);
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }
}

/* Styles pour la page Projets */
.projets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.projet-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-5px);
}

.projet-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Styles pour la page projet */
.projet-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.projet-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-5px);
}

.projet-card h2 {
    color: #333;
    margin-bottom: 1rem;
}

.projet-card p {
    color: #666;
    margin-bottom: 1rem;
}

.projet-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    background: #f0f0f0;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Header et Navigation */
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(108, 117, 125, 0.1);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 300px);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary, .btn-secondary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover, .btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #6c757d;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(108, 117, 125, 0.1);
}

.social-link:hover {
    color: #0077b5;
    transform: translateY(-2px);
    background: rgba(0, 119, 181, 0.1);
}

.hero-image {
    position: relative;
}

.profile-image-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--secondary-color);
    scroll-margin-top: 100px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

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

    .section {
        padding: 2rem 1rem;
    }
}

.content-bubble {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 4rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Premier content-bubble (À propos de moi) */
.content-bubble:first-of-type {
    margin-top: 2rem;
}

/* Espacement plus grand pour les sections suivantes */
.content-bubble:not(:first-of-type) {
    margin: 6rem 0;
}

.presentation-content {
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-header i {
    font-size: 1.5rem;
    color: #2563eb;
}

.skill-name {
    color: #333;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.skill-level {
    background: rgba(0, 0, 0, 0.1);
    height: 8px;
    border-radius: 4px;
    margin: 1rem 0;
}

.skill-progress {
    background: #2563eb;
    height: 100%;
    border-radius: 4px;
}

.skill-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.cv-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section À propos */
.presentation-section {
    padding: 6rem 0;
    position: relative;
}

.presentation-section::before {
    display: none;
}

.content-bubble {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.presentation-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-text {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.skills-preview {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.skills-preview h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
    .presentation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-bubble {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-card, .about-text, .skills-preview {
        padding: 2rem;
    }
}

/* Styles pour le titre de la page projet */
.projet-title {
    text-align: center;
    margin: 4rem 0 3rem;
    padding: 0 2rem;
}

.projet-title h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.projet-title .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .projet-title {
        margin: 3rem 0 2rem;
    }
    
    .projet-title h1 {
        font-size: 2.5rem;
    }
    
    .projet-title .subtitle {
        font-size: 1.2rem;
    }
}

/* Styles pour la section Formations */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.formation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.formation-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.formation-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.formation-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.formation-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.formation-school {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.formation-date {
    color: var(--secondary-color);
    font-weight: 500;
}

.formation-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--spacing-sm);
}

@media (max-width: 768px) {
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    .formation-card {
        padding: var(--spacing-md);
    }
}

/* Section Expériences */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.experience-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.experience-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.experience-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.experience-company {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.experience-date {
    color: var(--secondary-color);
    font-weight: 500;
}

.experience-tasks {
    list-style-type: none;
    padding-left: 0;
    margin-top: var(--spacing-sm);
}

.experience-tasks li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.experience-tasks li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .experiences-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-card {
        padding: var(--spacing-md);
    }
}

.contact-info h2 {
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    font-size: 1.8rem;
}