/* Variables de couleurs */
:root {
    --primary-color: #0f172a;
    --accent-color: #1d4ed8;
    --text-color: #333;
    --light-bg: #f8fafc;
    --white: #ffffff;
}

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
/* Défilement doux pour le confort visuel */
html {
    scroll-behavior: smooth;
}
body {
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Navigation */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
}

.logo span {
    color: var(--accent-color);
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: var(--light-bg);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    transition: background 0.3s;
}

/* Container pour aligner les boutons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Style du bouton Télécharger le CV (Secondaire) */
/* Style du bouton Télécharger le CV (Secondaire foncé) */
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Ajustement pour mobile */
/* =========================================
   RESPONSIVE DESIGN (Mobiles & Tablettes)
   ========================================= */
@media (max-width: 768px) {
    /* Menu de navigation adapté */
    .nav-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin-left: 0; /* Enlève la marge de base pour recentrer */
        font-size: 0.95rem;
    }

    /* Réduction des espaces pour éviter de trop scroller */
    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 50px 0;
    }

    /* Réduction de la taille des titres pour les petits écrans */
    .hero h2 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* Alignement des boutons */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.btn:hover {
    background: #2563eb;
}

/* Sections Globales */
.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Carte Projet */
.project-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent-color);
}

.project-card h3 {
    margin-bottom: 5px;
}

.project-role {
    color: #64748b;
    font-style: italic;
    margin-bottom: 15px;
}

.project-card ul {
    margin: 15px 0 15px 20px;
}

.tech-stack span {
    display: inline-block;
    background: #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 50px 0 20px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
}

.copyright {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 30px;
}
/* Section Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skill-category {
    background: #f1f5f9; /* Un gris-bleu très léger pour le contraste */
    border: 1px solid #e2e8f0; /* Une bordure subtile */
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    transition: transform 0.3s;
}

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

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.skill-category p {
    color: #64748b;
    font-weight: 500;
}