/* ============================================
   PrestaModule — Stylesheet
   Expert Modules PrestaShop Sur-Mesure
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #0a0e27;
    --navy-light: #111640;
    --navy-mid: #1a1f4e;
    --electric: #4f6ef7;
    --electric-bright: #6b85ff;
    --electric-glow: rgba(79, 110, 247, 0.3);
    --accent: #f97316;
    --accent-light: #fb923c;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --prestashop-pink: #df0067;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    max-width: 100dvw;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    max-width: 100dvw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 110, 247, 0.08);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    background: rgba(10, 14, 39, 0.98);
}

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

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--prestashop-pink);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1;
}

.nav-logo-text span {
    color: var(--electric-bright);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 6px 14px;
    border-radius: 8px;
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a::after {
    display: none;
}

/* CTA button in nav */
.nav-cta {
    background: var(--electric) !important;
    color: var(--white) !important;
    padding: 9px 22px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.87rem !important;
    transition: all 0.3s !important;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--electric-bright) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--electric-glow);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 9px;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-toggle span:nth-child(1) { top: 12px; }
.mobile-toggle span:nth-child(2) { top: 19px; }
.mobile-toggle span:nth-child(3) { top: 26px; }

.mobile-toggle.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--electric-glow) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 110, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 110, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 110, 247, 0.1);
    border: 1px solid rgba(79, 110, 247, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--electric-bright);
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.hero-ps-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease 0.05s both;
}

.hero-ps-icon {
    width: 44px;
    height: 44px;
    background: var(--prestashop-pink);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--white);
    letter-spacing: -0.5px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(223, 0, 103, 0.3);
}

.hero-ps-text {
    color: var(--gray-400);
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 1px solid var(--gray-600);
    padding-left: 10px;
    line-height: 1.3;
}

.hero-ps-text strong {
    color: var(--white);
    display: block;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--electric-bright), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Hero Visual — Code Window */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.3s both;
}

.code-window {
    background: var(--navy-light);
    border: 1px solid rgba(79, 110, 247, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(79, 110, 247, 0.1);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-title {
    margin-left: 12px;
    color: var(--gray-500);
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--gray-300);
}

.code-body .keyword { color: #c792ea; }
.code-body .function { color: #82aaff; }
.code-body .string { color: #c3e88d; }
.code-body .comment { color: #546e7a; }
.code-body .class-name { color: #ffcb6b; }

.hero-float-badge {
    position: absolute;
    background: var(--navy-light);
    border: 1px solid rgba(79, 110, 247, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

.hero-float-badge.top-right {
    top: -20px;
    right: -20px;
}

.hero-float-badge.bottom-left {
    bottom: 30px;
    left: -30px;
    animation-delay: 2s;
}

.float-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.float-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.float-icon.orange { background: rgba(249, 115, 22, 0.15); color: var(--accent); }

.float-text {
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
}

.float-sub {
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--electric);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary:hover {
    background: var(--electric-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--electric-glow);
}

.btn-calendly {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-calendly:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gray-300);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--electric);
    color: var(--white);
    background: rgba(79, 110, 247, 0.05);
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 24px 0;
}

.trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-icon {
    width: 20px;
    height: 20px;
    color: var(--electric);
    flex-shrink: 0;
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 100px 24px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--electric);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--electric);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 600px;
}

/* ===== PROBLEMS SECTION ===== */
.problems {
    background: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.problem-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    border-color: var(--electric);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(79, 110, 247, 0.08);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-icon {
    width: 52px;
    height: 52px;
    background: rgba(79, 110, 247, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--navy);
    position: relative;
}

.services .section-title { color: var(--white); }
.services .section-subtitle { color: var(--gray-400); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    background: var(--navy-light);
    border: 1px solid rgba(79, 110, 247, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s;
    position: relative;
}

.service-card:hover {
    border-color: var(--electric);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(79, 110, 247, 0.1);
    position: absolute;
    top: 20px;
    right: 24px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(79, 110, 247, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background: rgba(79, 110, 247, 0.08);
    color: var(--electric-bright);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== PROCESS SECTION ===== */
.process {
    background: var(--white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--electric), var(--accent));
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--electric), var(--navy-mid));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.process-step:hover .step-num {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 30px var(--electric-glow);
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.process-step p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-time {
    display: inline-block;
    margin-top: 12px;
    background: rgba(79, 110, 247, 0.08);
    color: var(--electric);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    background: var(--gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.portfolio-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
}

.portfolio-header {
    padding: 32px 28px 0;
}

.portfolio-cat {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--electric);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.portfolio-card > p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 28px;
}

.portfolio-footer {
    padding: 20px 28px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tech {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== SERVICE CARD — AI HIGHLIGHT ===== */
.service-card.highlight-card {
    background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
    border: 1px solid rgba(79, 110, 247, 0.25);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
}

.service-card.highlight-card h3 {
    font-size: 1.5rem;
}

.service-card.highlight-card p {
    max-width: 700px;
}

.service-card.highlight-card .service-number {
    display: none;
}

.service-card.highlight-card .service-new-badge {
    position: absolute;
    top: 20px;
    right: 24px;
}

.service-card.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric), #a855f7, var(--accent));
}

.service-card.highlight-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.service-icon-ai {
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.15), rgba(168, 85, 247, 0.15)) !important;
}

.service-new-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    background: linear-gradient(135deg, #a855f7, var(--electric));
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== AI SECTION ===== */
.ai-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ai-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 110, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ai-section .section-title { color: var(--white); }
.ai-section .section-subtitle { color: var(--gray-400); }

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.ai-card {
    background: var(--navy-light);
    border: 1px solid rgba(79, 110, 247, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ai-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.1);
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--electric), #a855f7);
    opacity: 0;
    transition: opacity 0.3s;
}

.ai-card:hover::before {
    opacity: 1;
}

.ai-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.ai-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.ai-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ai-card-tech {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(168, 85, 247, 0.7);
    letter-spacing: 0.5px;
    padding-top: 12px;
    border-top: 1px solid rgba(79, 110, 247, 0.08);
}

/* AI CTA Banner */
.ai-cta {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.ai-cta h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.ai-cta p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-cta .btn-calendly {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--navy);
}

.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: var(--gray-400); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--navy-light);
    border: 1px solid rgba(79, 110, 247, 0.1);
    border-radius: 16px;
    padding: 36px;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--electric), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testimonial-name {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-role {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ===== PROJECTS TYPES ===== */
.projects {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.project-type-card {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-type-card.featured {
    background: var(--navy);
    border-color: var(--electric);
}

.project-type-card:not(.featured):hover {
    border-color: var(--electric);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(79, 110, 247, 0.08);
}

.project-type-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(79, 110, 247, 0.2);
}

.project-type-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--electric), var(--accent));
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.project-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-type-icon {
    width: 52px;
    height: 52px;
    background: rgba(79, 110, 247, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.project-type-card.featured .project-type-icon {
    background: rgba(79, 110, 247, 0.15);
}

.project-type-complexity {
    text-align: right;
}

.complexity-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.project-type-card:not(.featured) .complexity-label { color: var(--gray-400); }
.project-type-card.featured .complexity-label { color: var(--gray-500); }

.complexity-dots {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.complexity-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: background 0.3s;
}

.project-type-card.featured .complexity-dots .dot {
    background: rgba(255, 255, 255, 0.15);
}

.complexity-dots .dot.filled {
    background: var(--electric);
}

.project-type-card.featured .complexity-dots .dot.filled {
    background: var(--electric-bright);
}

.project-type-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.project-type-card:not(.featured) h3 { color: var(--gray-900); }
.project-type-card.featured h3 { color: var(--white); }

.project-type-card > p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-type-card:not(.featured) > p { color: var(--gray-500); }
.project-type-card.featured > p { color: var(--gray-400); }

.project-type-examples {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.project-type-examples li {
    padding: 6px 0;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-type-card:not(.featured) .project-type-examples li { color: var(--gray-600); }
.project-type-card.featured .project-type-examples li { color: var(--gray-300); }

.project-type-examples li::before {
    content: '→';
    color: var(--electric);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.project-type-timeline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 10px 14px;
    border-radius: 8px;
}

.project-type-card:not(.featured) .project-type-timeline {
    color: var(--electric);
    background: rgba(79, 110, 247, 0.06);
}

.project-type-card.featured .project-type-timeline {
    color: var(--electric-bright);
    background: rgba(79, 110, 247, 0.1);
}

.project-type-card .btn-primary,
.project-type-card .btn-calendly {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.project-type-card:not(.featured) .btn-primary {
    background: var(--gray-900);
}

.project-type-card:not(.featured) .btn-primary:hover {
    background: var(--electric);
}

/* Projects Note */
.projects-note {
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--electric);
    border-radius: 12px;
    padding: 20px 24px;
}

.projects-note svg {
    color: var(--electric);
    flex-shrink: 0;
    margin-top: 2px;
}

.projects-note p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.projects-note strong {
    color: var(--gray-800);
}

/* ===== FAQ ===== */
.faq {
    background: var(--gray-50);
}

.faq-grid {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: color 0.2s;
    gap: 16px;
}

.faq-question:hover { color: var(--electric); }

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-500);
    transition: all 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--electric);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s ease, height 0.4s ease, visibility 0s 0.4s, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    height: auto;
    visibility: visible;
    transition: max-height 0.4s ease, height 0.4s ease, visibility 0s 0s, padding 0.4s ease;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--electric-glow) 0%, transparent 60%);
    opacity: 0.3;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-section .section-title {
    color: var(--white);
    max-width: 700px;
    margin: 0 auto 16px;
}

.cta-section .section-subtitle {
    color: var(--gray-400);
    max-width: 550px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-guarantee {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.cta-guarantee svg { color: var(--success); }

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(79, 110, 247, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail-label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-detail-value {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Calendly embed in contact */
.contact-calendly {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.contact-calendly h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-calendly p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.contact-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--electric);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.08);
}

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

/* Turnstile widget */
.cf-turnstile {
    margin-bottom: 16px;
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px;
    position: relative;
    transition: all 0.3s;
}

.contact-form .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Form spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form success / error messages */
.form-success-msg,
.form-error-msg {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: fadeInUp 0.4s ease;
}

.form-success-msg {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.form-error-msg {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: var(--electric);
    color: var(--white);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--electric-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--electric-bright);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--electric-glow);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gray-900);
    padding: 60px 24px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--electric-bright);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 30px;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--electric-bright);
}

.footer-legal-links span {
    color: var(--gray-600);
    font-size: 0.75rem;
}

.footer-local {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== LEGAL MODALS ===== */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.legal-modal-container {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.legal-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.legal-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.legal-modal-close:hover {
    background: #e2e8f0;
    color: var(--navy);
}

.legal-modal-body {
    padding: 28px 32px 32px;
    overflow-y: auto;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.75;
}

.legal-modal-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 28px 0 10px;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 20px 0 8px;
}

.legal-modal-body p {
    margin: 0 0 12px;
    color: #475569;
}

.legal-modal-body a {
    color: var(--electric);
    text-decoration: underline;
}

.legal-modal-body strong {
    color: #1e293b;
}

.legal-modal-body .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--electric);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.legal-modal-body .btn-secondary:hover {
    background: var(--electric-bright);
}

/* Scrollbar inside modal */
.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ===== TARTEAUCITRON OVERRIDES ===== */
/* Minimal CSS — panel is restyled entirely via JS */

#tarteaucitronRoot {
    z-index: 9990 !important;
    font-family: var(--font-body) !important;
}

/* Prevent horizontal scroll on panel */
#tarteaucitron {
    overflow: hidden !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
    background: #0c1029 !important;
}

#tarteaucitronServices {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    min-height: 0 !important;
    background: #0c1029 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

#tarteaucitronServices_api,
#tarteaucitronServices ul,
#tarteaucitronServices li,
#tarteaucitronServices .tarteaucitronLine,
#tarteaucitronServices .tarteaucitronTitle,
#tarteaucitronServices .tarteaucitronBorder {
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Hide native horizontal scrollbar */
#tarteaucitron::-webkit-scrollbar:horizontal,
#tarteaucitronServices::-webkit-scrollbar:horizontal {
    display: none !important;
    height: 0 !important;
}

/* Eliminate gaps between panel sections */
#tarteaucitron > * {
    margin: 0 !important;
}

.tarteaucitronBorder {
    flex-shrink: 0 !important;
}

/* ---- Bottom banner ---- */
#tarteaucitronAlertBig {
    background: var(--navy) !important;
    border-top: 1px solid rgba(79, 110, 247, 0.12) !important;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4) !important;
    padding: 24px 32px !important;
    backdrop-filter: blur(16px) !important;
}

#tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
    color: var(--gray-300) !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
}

#tarteaucitronAlertBig button {
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    border: none !important;
    transition: opacity 0.2s !important;
    margin: 4px !important;
}

#tarteaucitronAlertBig #tarteaucitronPersonalize,
#tarteaucitronAlertBig #tarteaucitronPersonalize2 {
    background: var(--electric) !important;
    color: var(--white) !important;
}

#tarteaucitronAlertBig #tarteaucitronAllDenied,
#tarteaucitronAlertBig #tarteaucitronAllDenied2 {
    background: transparent !important;
    color: var(--gray-400) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

/* "Personnaliser" link/button */
#tarteaucitronAlertBig #tarteaucitronCloseAlert {
    background: transparent !important;
    color: var(--gray-400) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* ---- Mobile banner ---- */
@media (max-width: 768px) {
    #tarteaucitronAlertBig {
        padding: 20px 16px !important;
        text-align: center !important;
    }

    #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        display: block !important;
    }

    #tarteaucitronAlertBig button {
        font-size: 0.82rem !important;
        padding: 10px 16px !important;
        margin: 4px 3px !important;
    }

    #tarteaucitronAlertBig #tarteaucitronCloseAlert {
        font-size: 0.8rem !important;
        padding: 8px 14px !important;
    }

    /* Panel mobile */
    #tarteaucitron #tarteaucitronServices {
        border-radius: 0 !important;
        max-height: 100vh !important;
    }
}

/* ---- Floating icon ---- */
#tarteaucitronAlertSmall {
    background: var(--navy-light) !important;
    border: 1px solid rgba(79, 110, 247, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

#tarteaucitronAlertSmall:hover {
    border-color: rgba(79, 110, 247, 0.4) !important;
    box-shadow: 0 4px 20px rgba(79, 110, 247, 0.15) !important;
}

#tarteaucitronAlertSmall #tarteaucitronManager {
    color: var(--gray-300) !important;
    font-size: 0.78rem !important;
    padding: 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#tarteaucitronAlertSmall #tarteaucitronCookiesNumber {
    background: var(--electric) !important;
    color: var(--white) !important;
}

/* Hide default Tarteaucitron icon image */
#tarteaucitronAlertSmall #tarteaucitronManager img,
#tarteaucitronAlertSmall .tarteaucitronAlertBigTop img,
#tarteaucitronAlertSmall img {
    display: none !important;
}

/* ---- Hide checkbox chars via CSS as backup ---- */
.tarteaucitronCheck {
    display: none !important;
}

/* Responsive modal */
@media (max-width: 600px) {
    .legal-modal {
        padding: 12px;
    }
    
    .legal-modal-container {
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .legal-modal-header {
        padding: 18px 20px;
    }
    
    .legal-modal-body {
        padding: 20px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub { margin: 0 auto 40px; max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-ps-badge { justify-content: center; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-visual { max-width: 550px; margin: 40px auto 0; }

    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .process-timeline::before { display: none; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-cta { flex-direction: column; text-align: center; }

    .pricing-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured { transform: none; }
    .project-type-card.featured { transform: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(79, 110, 247, 0.1);
        backdrop-filter: blur(20px);
    }

    .nav-links.active a {
        padding: 12px 16px;
        border-radius: 10px;
    }

    .nav-links.active .nav-cta {
        margin-top: 8px;
        text-align: center;
        display: block;
    }

    /* Navbar logo fix */
    .nav-logo-text { font-size: 1.15rem; }

    /* ---- GLOBAL OVERFLOW FIX ---- */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Global section padding */
    section { padding: 60px 20px; }

    .section-inner {
        padding: 0;
        overflow: visible;
    }

    /* Section tags & titles */
    .section-tag {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }
    .section-title {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .section-subtitle {
        font-size: 0.92rem;
        max-width: 100%;
    }

    /* ---- HERO ---- */
    .hero {
        padding: 0;
        overflow: hidden;
    }
    .hero-inner {
        padding: 100px 20px 60px;
    }
    .hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        letter-spacing: -0.5px;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.15;
    }
    .hero h1 br { display: none; }
    .hero-sub {
        font-size: 0.92rem;
        max-width: 100%;
    }
    .hero-badge {
        font-size: 0.78rem;
    }
    .hero-ps-badge {
        gap: 10px;
    }
    .hero-ps-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .hero-ps-text {
        font-size: 0.78rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-calendly {
        text-align: center;
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 14px 24px;
    }
    .hero-stats {
        gap: 16px;
    }
    .hero-stat-num {
        font-size: 1.6rem;
    }
    .hero-stat-label {
        font-size: 0.7rem;
    }
    .hero-float-badge { display: none; }
    .hero-visual { margin-top: 32px; }
    .code-window { font-size: 0.75rem; overflow-x: hidden; }

    /* Hero decorative elements — shrink */
    .hero::before {
        width: 300px;
        height: 300px;
        right: -40%;
    }
    .hero::after {
        width: 200px;
        height: 200px;
        left: -30%;
    }

    /* ---- TRUST BAR ---- */
    .trust-bar { padding: 20px 0; }
    .trust-inner {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 0 20px;
    }
    .trust-item {
        font-size: 0.82rem;
        gap: 8px;
    }

    /* ============================================ */
    /* HORIZONTAL SCROLL CARDS ON MOBILE            */
    /* ============================================ */

    .problems-grid,
    .ai-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        margin-top: 40px;
        padding-bottom: 16px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .problems-grid > *,
    .ai-grid > * {
        flex: 0 0 80%;
        min-width: 260px;
        max-width: 320px;
        scroll-snap-align: start;
    }

    /* Scrollbar styling for horizontal scroll */
    .problems-grid::-webkit-scrollbar,
    .ai-grid::-webkit-scrollbar {
        height: 4px;
    }
    .problems-grid::-webkit-scrollbar-track,
    .ai-grid::-webkit-scrollbar-track {
        background: rgba(79, 110, 247, 0.05);
        border-radius: 4px;
    }
    .problems-grid::-webkit-scrollbar-thumb,
    .ai-grid::-webkit-scrollbar-thumb {
        background: rgba(79, 110, 247, 0.2);
        border-radius: 4px;
    }

    /* ---- SERVICES — stack ---- */
    .services-grid { grid-template-columns: 1fr; }

    /* ---- PROCESS — stack ---- */
    .process-timeline { grid-template-columns: 1fr; gap: 20px; }
    .process-step { padding: 24px; }
    .process-step-num { font-size: 1.8rem; }

    /* ---- PORTFOLIO — horizontal scroll ---- */
    .portfolio-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 16px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .portfolio-grid > * {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 360px;
        scroll-snap-align: start;
    }

    .portfolio-grid::-webkit-scrollbar {
        height: 4px;
    }
    .portfolio-grid::-webkit-scrollbar-track {
        background: rgba(79, 110, 247, 0.05);
        border-radius: 4px;
    }
    .portfolio-grid::-webkit-scrollbar-thumb {
        background: rgba(79, 110, 247, 0.2);
        border-radius: 4px;
    }

    /* ---- TESTIMONIALS — horizontal scroll ---- */
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 16px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .testimonials-grid > * {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 360px;
        scroll-snap-align: start;
    }

    .testimonials-grid::-webkit-scrollbar {
        height: 4px;
    }
    .testimonials-grid::-webkit-scrollbar-track {
        background: rgba(79, 110, 247, 0.05);
        border-radius: 4px;
    }
    .testimonials-grid::-webkit-scrollbar-thumb {
        background: rgba(79, 110, 247, 0.2);
        border-radius: 4px;
    }

    /* Cards global fix */
    .problem-card,
    .service-card,
    .process-step,
    .portfolio-card,
    .testimonial-card,
    .ai-card,
    .project-type-card,
    .pricing-card {
        overflow: hidden;
    }

    /* ---- CONTACT ---- */
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 20px; }

    /* ---- PRICING ---- */
    .pricing-grid { grid-template-columns: 1fr; }

    /* ---- CTA ---- */
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-section .section-title { font-size: 1.5rem; }

    /* ---- AI section ---- */
    .ai-cta { padding: 28px 20px; flex-direction: column; text-align: center; }

    /* ---- FOOTER ---- */
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* ---- FAQ ---- */
    .faq-question { font-size: 0.92rem; padding: 16px; }
    .faq-answer { padding: 0; }
    .faq-item.active .faq-answer { padding: 0 16px 16px; }

    /* ---- MODAL ---- */
    .modal-content { padding: 28px 20px; max-height: 85vh; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.4rem, 6.5vw, 1.7rem);
        line-height: 1.2;
    }
    .hero-inner {
        padding: 90px 16px 50px;
    }
    .hero-sub { font-size: 0.85rem; }
    .hero-stats { gap: 12px; }
    .hero-stat-num { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.65rem; }
    section { padding: 50px 16px; }
    .section-title { font-size: 1.35rem; }
    .section-subtitle { font-size: 0.85rem; }
    .trust-inner { padding: 0 16px; }
    .trust-item { font-size: 0.78rem; }
    .nav-logo-text { font-size: 1rem; }
    .nav-logo-icon { width: 30px; height: 30px; font-size: 0.8rem; border-radius: 7px; }
    .hero-ps-icon { width: 32px; height: 32px; font-size: 0.8rem; }
    .hero-ps-text { font-size: 0.72rem; }
    .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
    .problem-card, .service-card { padding: 24px; }

    /* Horizontal scroll cards — smaller */
    .problems-grid > *,
    .ai-grid > * {
        flex: 0 0 85%;
        min-width: 240px;
    }
    .portfolio-grid > *,
    .testimonials-grid > * {
        flex: 0 0 90%;
        min-width: 260px;
    }

    /* Horizontal scroll margins match section padding */
    .problems-grid,
    .ai-grid,
    .portfolio-grid,
    .testimonials-grid {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Scroll hint — visible on mobile only */
.scroll-hint {
    display: none;
}

/* Dark section scroll hints */
.ai-section .scroll-hint,
.testimonials .scroll-hint {
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--gray-400);
        font-size: 0.78rem;
        margin-top: 12px;
        opacity: 0.7;
        animation: scrollHintPulse 2s ease-in-out infinite;
    }

    .scroll-hint::before {
        content: '←';
        font-size: 0.9rem;
    }
    .scroll-hint::after {
        content: '→';
        font-size: 0.9rem;
    }

    @keyframes scrollHintPulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 0.8; }
    }

    /* Reveal fix: cards in horizontal scroll — no translateY, just fade */
    .problems-grid .reveal,
    .ai-grid .reveal,
    .portfolio-grid .reveal,
    .testimonials-grid .reveal {
        transform: none;
        opacity: 1;
    }
}
