/* =========================================
   VARIABLES & RESET (Light Mode)
========================================= */
:root {
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   ANIMATIONS (Reveal)
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* =========================================
   NAVIGATION (Glassmorphism sur fond blanc)
========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

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

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s;
}

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

.btn-primary-sm {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-primary-sm:hover {
    background: var(--primary);
}

/* =========================================
   HERO SECTION (Lumineuse)
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    background: var(--bg-gray);
}

/* =========================================
   TRUST SECTION (Logos)
========================================= */
.trust-section {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border);
}

.trust-section p {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.fake-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* =========================================
   SECTIONS GLOBALES
========================================= */
section {
    padding: 120px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light-gray {
    background-color: var(--bg-gray);
    max-width: 100%;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* =========================================
   SERVICES (Cartes épurées)
========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.clean-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.clean-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bg-white);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.clean-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.clean-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =========================================
   PORTFOLIO (Slider Swiper)
========================================= */
.portfolio .swiper {
    padding-bottom: 50px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.project-img {
    height: 250px;
    width: 100%;
}

/* Fausses images colorées pour le rendu */
.bg-blue-light {
    background: #dbeafe;
}

.bg-purple-light {
    background: #f3e8ff;
}

.bg-green-light {
    background: #dcfce3;
}

.project-info {
    padding: 30px;
}

.category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* =========================================
   CONTACT (Layout Split Clean)
========================================= */
.contact-box {
    background: var(--text-dark);
    color: var(--bg-white);
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.contact-text p {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.direct-contact p {
    color: var(--bg-white);
    font-weight: 500;
    margin-bottom: 10px;
}

.form-wrapper {
    background: var(--bg-white);
    padding: 60px;
    color: var(--text-dark);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-gray);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.w-100 {
    width: 100%;
    cursor: pointer;
    border: none;
}

.success-hidden {
    display: none;
    color: #10b981;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

/* =========================================
   FOOTER
========================================= */
.clean-footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN ( Mobile)
========================================= */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-text,
    .form-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .btn-primary-sm {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 20px;
    }

    .contact-text,
    .form-wrapper {
        padding: 30px 20px;
    }
}