/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-color: #3B82F6; /* Un bleu moderne */
    --primary-hover: #2563EB;
    --dark-color: #111827;
    --dark-gray-color: #1F2937;
    --light-color: #F9FAFB;
    --text-color: #374151;
    --text-light: #D1D5DB;
    --white-color: #FFFFFF;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== HEADER & NAV ==================== */
.header {
    background-color: var(--white-color);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
    width: 100%;
    padding: 0 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
}

.nav-logo img {
    width:80px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-hover);
    color: var(--white-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-color);
}

/* ==================== SECTIONS GENERALES ==================== */
.content-section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--white-color);
}
.bg-dark .section-title, .bg-dark .section-description {
    color: var(--white-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background-color: var(--light-color);
    text-align: center;
    padding: 8rem 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-color);
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==================== SERVICES SECTION ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white-color);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ==================== ABOUT SECTION ==================== */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-text {
    flex: 1;
}
.about-text .section-title {
    text-align: left;
}
.tech-stack {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 2rem;
}

.portfolio-title { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.5rem; }
.portfolio-role { font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; }
.portfolio-text { margin-bottom: 1rem; }
.portfolio-result { font-style: italic; }


/* ==================== CONTACT SECTION ==================== */
.text-center { text-align: center; }


/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE (MOBILE) ==================== */
@media(max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4.5rem;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .content-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-container {
        flex-direction: column;
    }
}