@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #00b67a;
    --primary-dark: #008c5f;
    --secondary: #1DBF73;
    --accent: #FFB800;
    --dark: #0a0f1a;
    --dark-light: #1a1f2e;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #ffffff;
    --bg-light: #f8fafc;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: #fafafa;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 45px, rgba(0, 182, 122, 0.12) 45px, rgba(0, 182, 122, 0.12) 46px),
        repeating-linear-gradient(90deg, transparent, transparent 45px, rgba(0, 182, 122, 0.12) 45px, rgba(0, 182, 122, 0.12) 46px),
        radial-gradient(circle at 20% 30%, rgba(0, 182, 122, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(29, 191, 115, 0.08) 0%, transparent 45%);
    background-size: 45px 45px, 45px 45px, 700px 700px, 700px 700px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 0.875rem 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo-highlight {
    color: var(--primary);
}

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

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: var(--light);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 182, 122, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 182, 122, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.badge {
    background: rgba(0, 182, 122, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(0, 182, 122, 0.2);
}

.badge-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 182, 122, 0.3);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--light);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    animation: float 6s ease-in-out infinite;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 182, 122, 0.2);
}

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

.floating-card {
    position: absolute;
    background: rgba(0, 182, 122, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 182, 122, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 182, 122, 0.3);
    animation: orbit 20s linear infinite;
    transform-origin: center;
    z-index: 1;
}

.card-1 { 
    top: 5%; 
    left: -5%;
    animation: orbit1 20s linear infinite;
}

.card-2 { 
    top: 50%; 
    right: -8%;
    animation: orbit2 20s linear infinite;
    animation-delay: -6.67s;
}

.card-3 { 
    bottom: 8%; 
    left: -3%;
    animation: orbit3 20s linear infinite;
    animation-delay: -13.34s;
}

@keyframes orbit1 {
    0% {
        transform: rotate(0deg) translateX(280px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(280px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotate(0deg) translateX(280px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(280px) rotate(-360deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: rotate(0deg) translateX(280px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(280px) rotate(-360deg);
    }
}

.card-icon { font-size: 1.5rem; }
.card-label { font-size: 0.75rem; color: var(--gray); }
.card-value { font-weight: 600; color: var(--dark); }

/* Sections communes */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Teranga Pass Section */
.teranga-pass-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 182, 122, 0.08) 0%, rgba(29, 191, 115, 0.12) 100%);
    position: relative;
    z-index: 1;
}

.teranga-pass-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.teranga-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.2);
    color: #0d9488;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.teranga-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.teranga-subtitle {
    font-size: 1.3rem;
    color: #0d9488;
    margin-bottom: 2rem;
    font-weight: 600;
}

.teranga-description {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.teranga-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.teranga-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark);
}

.feature-check {
    width: 24px;
    height: 24px;
    color: #0d9488;
}

.teranga-tech-stack {
    margin-bottom: 2rem;
}

.tech-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag-tp {
    background: rgba(0, 182, 122, 0.15);
    color: #008c5f;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 182, 122, 0.3);
}

.teranga-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-teranga-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.3);
}

.btn-teranga-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 182, 122, 0.4);
}

.btn-teranga-secondary {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

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

/* Teranga Carousel */
.teranga-carousel-only {
    max-width: 420px;
    margin: 0 auto;
}

.phone-mockup-container {
    width: 340px;
    height: 680px;
    background: #1a1f2e;
    border-radius: 45px;
    padding: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    position: relative;
    margin: 0 auto;
}

.phone-mockup-container::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #0a0f1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen-container {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    padding: 20px;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-image-teranga {
    width: 90%;
    height: auto;
    max-height: 90%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teranga-floating-stats {
    position: relative;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 184, 0, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.stat-icon { font-size: 24px; }
.stat-number { font-size: 16px; font-weight: 700; color: #00b67a; }
.stat-text { font-size: 11px; color: rgba(255, 255, 255, 0.8); }

/* Expertise Section */
.expertise-section {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tags span {
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* Plugins Section */
.plugins-section {
    padding: 6rem 0;
    background: white;
    position: relative;
    z-index: 1;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.plugin-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.plugin-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 182, 122, 0.05) 0%, transparent 100%);
}

.plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.plugin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.plugin-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.plugin-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plugin-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plugin-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.plugin-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.plugin-features .feature {
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.plugin-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 182, 122, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    z-index: 1;
}

.stats-section .container {
    max-width: 100%;
    padding: 0 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
}

.stat-item { color: white; }
.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    color: white !important;
}

.stat-item .stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 600;
    color: white !important;
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
    background: white;
    position: relative;
    z-index: 1;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.portfolio-image-wrapper {
    width: 100%;
    overflow: visible;
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.portfolio-image-wrapper img {
    width: auto;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: none;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: #0f172a;
    color: white;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item a {
    color: #14b8a6;
    text-decoration: none;
}

.contact-form {
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--light);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--gray-light);
    margin-bottom: 1rem;
}

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

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

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

.footer-links h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

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

/* Responsive */
@media (max-width: 968px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--light);
        padding: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content,
    .teranga-pass-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
        color: white !important;
    }
    
    .stat-item .stat-label {
        font-size: 0.9rem;
        color: white !important;
    }
    
    .services-grid,
    .portfolio-grid,
    .plugins-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-load-more {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Lazy Loading Optimization */
.portfolio-lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.portfolio-lazy-image[src],
.portfolio-loaded {
    opacity: 1;
}

/* Garde l'image chargée visible */
.portfolio-item img.portfolio-loaded {
    opacity: 1 !important;
}

.portfolio-image-wrapper {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-image-wrapper:has(.portfolio-lazy-image)::before {
    opacity: 1;
}

.portfolio-image-wrapper:has(.portfolio-lazy-image[src])::before {
    opacity: 0;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Bouton "Voir plus" */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, var(--primary) 100%);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more svg {
    transition: transform 0.3s ease;
}

.btn-load-more:hover svg {
    transform: translateY(3px);
}

/* Compteur d'images */
.portfolio-counter {
    text-align: center;
    margin: 30px 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.portfolio-counter strong {
    color: var(--primary);
    font-weight: 600;
}

/* Animation d'apparition des nouvelles images */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    animation: fadeInUp 0.4s ease-out;
}

/* Message "Toutes les images sont affichées" */
.all-loaded-message {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.all-loaded-message::before {
    content: '✨';
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Slider Projets Phares */
.projets-phares-section {
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* En-tête fixe */
.section-header-projects {
    text-align: center;
    padding: 60px 0 40px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.section-header-projects .section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 182, 122, 0.1) 0%, rgba(29, 191, 115, 0.1) 100%);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header-projects h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Container du slider */
.projects-slider-container {
    position: relative;
    min-height: 600px;
}

/* Navigation du slider (en bas) */
.projects-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 0 60px;
    position: relative;
    z-index: 10;
    background: transparent;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 182, 122, 0.2);
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 182, 122, 0.3);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    width: 40px;
    border-radius: 6px;
    background: var(--primary);
}

.slider-dots .dot:hover {
    background: var(--primary);
    opacity: 0.7;
}

/* Slides */
.project-slide {
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-slide.active {
    display: block;
    opacity: 1;
    position: relative;
    transform: translateX(0);
    animation: slideInFromRight 0.6s ease;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Styles pour DISLAB (similaires à Teranga) */
.dislab-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.dislab-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    color: #0066cc;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.dislab-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.dislab-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.dislab-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 30px;
}

.dislab-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.dislab-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--dark);
}

.dislab-tech-stack {
    margin: 30px 0;
}

.dislab-tech-stack .tech-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 15px;
}

.tech-tag-dislab {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 153, 255, 0.1) 100%);
    color: #0066cc;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px;
}

.dislab-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-dislab-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-dislab-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-dislab-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: white;
    color: #0066cc;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #0066cc;
    transition: all 0.3s ease;
}

.btn-dislab-secondary:hover {
    background: #0066cc;
    color: white;
}

/* Browser Mockup */
.browser-mockup {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.browser-header {
    background: #f0f0f0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #ddd;
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
}

.browser-dots span:nth-child(1) {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #28ca42;
}

.browser-url {
    flex: 1;
    background: white;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.browser-content {
    background: #f8f9fa;
    padding: 0;
}

.dislab-screenshot {
    width: 100%;
    height: 500px;
    display: block;
}

.dislab-floating-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .dislab-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dislab-title {
        font-size: 2.2rem;
    }
    
    .projects-slider-nav {
        gap: 20px;
    }
    
    .slider-nav-btn {
        width: 45px;
        height: 45px;
    }
}
