/* Variables de thèmes Clair & Sombre */
:root {
    --bg: #f4f1ea;
    --card-bg: #ffffff;
    --text: #121212;
    --text-muted: #666666;
    --border: #e2ddd3;
    --nav-bg: rgba(244, 241, 234, 0.9);
    --badge-bg: #e8e3d8;
    --btn-sec-bg: #ffffff;
    --btn-sec-hover: #e8e3d8;
    --footer-bg: #e8e3d8;
    --cta-bg: #e8e3d8;
    --mockup-header: #e8e3d8;
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --card-bg: #181818;
    --text: #f4f1ea;
    --text-muted: #a0a0a0;
    --border: #2a2a2a;
    --nav-bg: rgba(15, 15, 15, 0.9);
    --badge-bg: #222222;
    --btn-sec-bg: #181818;
    --btn-sec-hover: #2a2a2a;
    --footer-bg: #141414;
    --cta-bg: #181818;
    --mockup-header: #222222;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 25px;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--badge-bg);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

/* Language Selector */
.lang-selector {
    display: flex;
    background: var(--badge-bg);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: none;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-nav {
    background: var(--text);
    color: var(--bg) !important;
    padding: 8px 18px;
    border-radius: 30px;
    transition: transform 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px);
}

/* Burger Button */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 22px;
    height: 2px;
    background-color: var(--text);
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 160px 24px 60px 24px;
    text-align: center;
    max-width: 850px;
    margin: 0px auto;
}

.badge {
    background-color: var(--badge-bg);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.hero h1 {
    font-size: 46px;
    line-height: 54px;
    letter-spacing: -2px;
    margin: 24px 0px 16px 0px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0px auto 32px auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-secondary {
    background: var(--btn-sec-bg);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary:hover { background: var(--btn-sec-hover); }

/* Layout Sections */
.services, .portfolio, .pricing {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0px auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-muted);
}

/* Cards Grids */
.services-grid, .portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.service-card {
    flex: 1;
    min-width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 36px;
    border-radius: 16px;
}

.num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--badge-bg);
    padding: 4px 10px;
    border-radius: 6px;
}

.service-card h3 {
    margin: 16px 0px 8px 0px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Portfolio Card */
.project-card {
    flex: 1;
    min-width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.browser-mockup {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.browser-header {
    background: var(--mockup-header);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.browser-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.browser-address {
    margin-left: 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--card-bg);
    padding: 2px 12px;
    border-radius: 10px;
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-details {
    padding: 28px;
}

.project-cat {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.project-details h3 {
    font-size: 22px;
    margin: 6px 0px;
}

.project-details p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.project-link {
    display: inline-block;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid var(--text);
}

/* Case Futur Client (CTA) */
.cta-card {
    background: var(--cta-bg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--border) !important;
}

.cta-inner {
    padding: 40px 24px;
}

.badge-cta {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: inline-block;
}

.cta-inner h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.cta-inner p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Pricing Grid */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 36px 24px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.popular {
    border: 2px solid var(--text);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}

.price-tag {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.price {
    font-size: 42px;
    font-weight: 700;
    margin: 10px 0px 4px 0px;
    letter-spacing: -1px;
}

.price-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 18px;
}

.price-list {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    border-top: 1px solid var(--border);
}

.price-list li {
    padding: 10px 0px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.full { display: block; width: 100%; text-align: center; }

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 80px 24px 40px 24px;
    text-align: center;
}

.contact-email {
    display: inline-block;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin: 24px 0px 8px 0px;
    border-bottom: 2px solid var(--text);
}

.contact-phone a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.copyright {
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Animations Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0px);
}

/* Responsive */
@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.3s ease;
    }

    .nav-links.active {
        right: 0px;
    }

    .hero h1 { font-size: 32px; line-height: 40px; }
    .hero-btns { flex-direction: column; }
    .contact-email { font-size: 18px; }
}