:root {
    --primary: #0062ff;
    --secondary: #00d2ff;
    --accent: #ff007a;
    --dark: #060918;
    --glass: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fcfdfe;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* --- Creative Decorations --- */
.blob {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* --- Navigation --- */
.navbar {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    width: 180px;
    height: auto;
}

.mobile-menu-btn {
    font-size: 1.25rem;
    color: var(--dark);
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0 160px;
    background: radial-gradient(circle at top right, #eef6ff, transparent),
                radial-gradient(circle at bottom left, #f3eaff, transparent);
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.hero-mockup {
    position: relative;
    animation: floatingMockup 4s ease-in-out infinite;
}

@keyframes floatingMockup {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* --- Services grid (2 rows: featured + stack / 3 cards) --- */
.services-featured {
    border: 2px solid rgba(0, 98, 255, 0.12);
    background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 55%, #ffffff 100%);
    min-height: 100%;
}

.services-featured .services-highlight {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 98, 255, 0.12);
}

.services-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.services-stack .bento-item {
    flex: 1;
    margin-bottom: 0;
}

.pricing-tagline {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    min-height: 2.6rem;
}

.pricing-card.featured .pricing-tagline {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Contact page (forms only) --- */
.contact-page {
    min-height: 60vh;
}

.contact-form-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 28px;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

@media (min-width: 576px) {
    .contact-form-card {
        padding: 2.5rem 2.25rem;
    }
}

.contact-form-card .form-control {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 98, 255, 0.15);
}

/* --- Bento Cards --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.bento-item {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 30px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,98,255,0.1);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,98,255,0.2);
}

/* --- Solutions Section --- */
.solution-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.solution-image-wrap {
    background: white;
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.solution-image {
    max-height: 420px;
    object-fit: contain;
}

.solution-list li {
    margin-bottom: 12px;
    color: #374151;
    font-weight: 500;
}

/* --- FAQ --- */
.faq-wrapper {
    max-width: 900px;
}

.faq-accordion .accordion-item {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.faq-accordion .accordion-button {
    font-weight: 700;
    color: var(--dark);
    background: #fff;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: #f5f9ff;
}

.faq-accordion .accordion-body {
    color: #4b5563;
    line-height: 1.7;
}

/* --- Blog Section --- */
.blog-section {
    background: #ffffff;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(0,0,0,0.04);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 38px rgba(0,98,255,0.13);
    border-color: rgba(0,98,255,0.3);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f6fb;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.4px;
    display: inline-block;
    margin-bottom: 12px;
}

.blog-content h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--dark);
}

.blog-content p {
    color: #4b5563;
    margin-bottom: 16px;
}

.blog-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.blog-link:hover {
    color: #004fd1;
}

.blog-article-body p:last-child {
    margin-bottom: 0;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-article-body ul,
.blog-article-body ol {
    padding-left: 1.25rem;
}

/* --- Pricing Table --- */
.pricing-card {
    border-radius: 35px;
    border: 2px solid transparent;
    background: white;
    padding: 50px 40px;
    transition: 0.3s;
}

.pricing-card.featured {
    background: var(--dark);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
}

.btn-creative {
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-primary-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    color: white;
}

.btn-primary-gradient:hover {
    box-shadow: 0 10px 25px rgba(0,98,255,0.4);
    transform: scale(1.05);
}

/* --- Newsletter Glass --- */
.newsletter-wrap {
    background: linear-gradient(135deg, var(--primary) 0%, #6e00ff 100%);
    border-radius: 40px;
    padding: 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 991px) {
    .services-stack {
        margin-top: 1rem;
    }

    .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-title { font-size: 3rem; }
    .bento-item { padding: 30px; }

    /* Fix bento-grid alignment on mobile (last card had inline grid-column: span 3). */
    .bento-grid > .bento-item:last-child {
        grid-column: span 2 !important;
    }

    /* When stacked, center the image/text block instead of keeping it right-aligned. */
    .bento-grid > .bento-item:last-child .text-end {
        text-align: center !important;
    }

    /* Make the "Sécurité" card take full width on mobile (4th item in the grid). */
    .bento-grid > .bento-item:nth-child(4) {
        grid-column: span 2 !important;
    }

    .blog-image {
        height: 200px;
    }
    .newsletter-wrap {
        padding: 40px;
    }
    .solution-image {
        max-height: 320px;
    }
    .navbar .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    .navbar .navbar-nav {
        gap: 0 !important;
    }
    .navbar .nav-link {
        padding: 0.7rem 0;
    }
}