* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2255B5;
    --light-blue: #3A6FCC;
    --accent-green: #4CAF35;
    --light-green: #5BC144;
    --bg-light: #f8faff;
    --text-dark: #1b1b1b;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --neutral-gray: #f5f5f5;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
    margin: 0 auto;
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-pro {
    color: #2255B5;
}

.logo-webb {
    color: #4CAF35;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Hamburger button (caché sur desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    max-width: 90%;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.03) 0%, rgba(82, 183, 136, 0.03) 100%);
    border-radius: 0;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-blue);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 1.2rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--accent-green);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--light-blue);
}

/* Section Container */
section {
    max-width: 90%;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.about-photo img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(34, 85, 181, 0.15);
}

.about-photo-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue);
}

.about-photo-title {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.about-text h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.expertise-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.expertise-item {
    padding: 1rem;
    background: white;
    border-left: 3px solid var(--accent-green);
    border-radius: 4px;
}

.expertise-item strong {
    color: var(--primary-blue);
}

/* Projects/Carousel Section */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0.75rem 1rem 1.25rem;
    margin: 0 -1rem;
    scroll-padding: 1rem;
}

.carousel::-webkit-scrollbar {
    height: 6px;
}

.carousel::-webkit-scrollbar-track {
    background: var(--neutral-gray);
    border-radius: 3px;
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 3px;
}

.project-card {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.project-logo {
    height: 100px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-logo img {
    max-height: 64px;
    max-width: 120px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.project-client {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-blue);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.project-challenge {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.project-results {
    font-size: 0.9rem;
}

.result-item {
    margin-bottom: 0.6rem;
    padding-left: 1rem;
    position: relative;
    color: var(--text-dark);
}

.result-item:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.project-via {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.nav-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.nav-button:hover {
    background-color: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

/* Stack Section */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stack-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stack-category h3 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stack-item {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.contact-buttons a {
    padding: 0.9rem 1.8rem;
    background: white;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-buttons a:hover {
    background: var(--accent-green);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    background: var(--neutral-gray);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-inner {
        gap: 1rem;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    nav ul.nav-open {
        display: flex;
        animation: slideDown 0.25s ease forwards;
    }

    nav ul li {
        width: 100%;
    }

    nav ul a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .nav-logo svg {
        height: 28px;
    }

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

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

    .hero p {
        font-size: 1rem;
    }

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

    .about-photo {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1.2rem;
    }

    .about-photo img {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
    }

    .project-card {
        flex: 0 0 85%;
        max-width: 85%;
    }

    .expertise-list {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .hero {
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-illustration {
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel {
        padding: 0.75rem 1rem 1.25rem;
        margin: 0 -1rem;
        scroll-snap-type: x mandatory;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons a {
        width: 100%;
    }
}

/* Hero illustration */
.hero-illustration {
    max-width: 320px;
    margin: 1.5rem auto 0;
    opacity: 0.85;
}

.hero-illustration svg {
    width: 100%;
    height: auto;
}

.node-pulse {
    animation: nodePulse 3s ease-in-out infinite;
}

.node-pulse-2 {
    animation: nodePulse 3s ease-in-out infinite 1s;
}

.node-pulse-3 {
    animation: nodePulse 3s ease-in-out infinite 2s;
}

@keyframes nodePulse {

    0%,
    100% {
        opacity: 0.10;
    }

    50% {
        opacity: 0.28;
    }
}

/* Eco-friendly: minimal animations, optimize for performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}