/* ========================================
   APEX Analyst - Styles CSS
   Theme: Light (#fffcfc) with Teal (#0f4c5c), Cyan (#03b5da),
   Navy (#0c1934), Gold (#f4b41a)
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #0f4c5c;
    --primary-light: #03b5da;
    --primary-gradient: linear-gradient(135deg, #0f4c5c 0%, #0c1934 100%);

    /* Secondary & Accent */
    --secondary: #0c1934;
    --accent: #f4b41a;

    /* Background Colors */
    --bg-main: #fffcfc;
    --bg-alt: #f7f4f4;
    --bg-primary-subtle: rgba(15, 76, 92, 0.05);
    --bg-accent-subtle: rgba(244, 180, 26, 0.08);

    /* Text Colors */
    --text-heading: #0f0f0f;
    --text-body: #171717;
    --text-secondary: #3a3a3a;
    --text-hint: #6b6b6b;

    /* UI Colors */
    --border-color: rgba(15, 76, 92, 0.12);
    --card-bg: rgba(255, 252, 252, 0.95);
    --card-shadow: 0 4px 24px rgba(15, 76, 92, 0.06);
    --card-shadow-hover: 0 8px 32px rgba(15, 76, 92, 0.12);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Satoshi', 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    --border-radius: 16px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-heading);
}

h1 {
    font-size: clamp(24px, 8vw, 72px);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(26px, 5vw, 48px);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(20px, 2vw, 24px);
}

.gradient-text {
    background: linear-gradient(135deg, #0f4c5c 0%, #03b5da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(15, 76, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(15, 76, 92, 0.4);
}

.btn-secondary {
    background: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(244, 180, 26, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(244, 180, 26, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
}

/* Section Styling */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: none;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: 16px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 5px 0;
    background: transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: var(--primary);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar .btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px rgba(244, 180, 26, 0.3);
}

.navbar .btn-primary:hover {
    box-shadow: 0 6px 24px rgba(244, 180, 26, 0.4);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 75px;
}

.logo-img {
    height: 68px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-menu-btn.open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg-main);
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-links a {
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-body);
}

.mobile-nav-links a.btn-primary {
    color: white;
    border-bottom: none;
    margin-top: 10px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 250px 24px 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
                var(--primary) 0%, 
                var(--primary) 15%, 
                rgba(15, 76, 92, 0.95) 22%, 
                rgba(15, 76, 92, 0.8) 32%,
                rgba(15, 76, 92, 0.5) 45%,
                rgba(15, 76, 92, 0.15) 60%,
                var(--bg-main) 75%
    );
    z-index: -1;
}

.hero-bg::before {
    display: none;
}

.hero-bg::after {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    box-shadow: var(--card-shadow);
    color: var(--text-secondary);
}

.badge-icon {
    font-size: 16px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-clients {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.clients-label {
    display: block;
    font-size: 14px;
    color: var(--text-hint);
    margin-bottom: 10px;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    position: relative;
    /* Effet de fondu élégant sur les côtés */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    /* Largeur : (largeur du slide 150px) * (nombre total de slides 16) */
    width: calc(150px * 16);
    animation: scroll 25s linear infinite;
}

.slide {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.slide img {
    max-width: 100%;
    max-height: 30px;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
    filter: opacity(0.8);
}

.slide img:hover {
    transform: scale(1.1);
    filter: opacity(1);
}

/* L'animation qui crée le mouvement infini */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* On recule de la moitié de la largeur totale (soit 8 logos) pour boucler parfaitement */
        transform: translateX(calc(-150px * 8));
    }
}

/* Floating Cards */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: var(--bg-main);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--border-color);
    color: var(--text-body);
}

.card-icon {
    font-size: 24px;
}

.card-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    right: 5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 40%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 20px 0 60px;
    background: var(--bg-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition-normal);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: transparent;
    z-index: -1;
}

.service-card:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(12, 25, 52, 0.2);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover li {
    color: white;
}

.service-card:hover .service-features li::before {
    color: rgba(255, 255, 255, 0.8);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    padding: 60px 0 60px;
    background: var(--bg-alt);
}

/* Pricing Toggle */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}

.toggle-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
    cursor: pointer;
}

.discount-badge {
    background: #ffe0e0;
    color: #e91e63;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    white-space: nowrap;
}

.toggle-text.active {
    color: var(--text-heading);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--accent);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.slider {
    background: var(--primary-gradient, linear-gradient(135deg, #FF3366, #FF9933));
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(24px);
}

.discount-badge {
    background: rgba(255, 51, 102, 0.15);
    color: #FF3366;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto 1fr auto;
    /* header | price | features | button */
    gap: 0 16px;
    padding-top: 30px;
}

.pricing-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 20px;
    position: relative;
    transition: var(--transition-normal);
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
}

.pricing-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(244, 180, 26, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.price-prefix {
    display: block;
    font-size: 14px;
    color: var(--text-hint);
    margin-bottom: 4px;
    min-height: 20px;
    /* Aligné avec 'à partir de' */
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    font-size: 16px;
    color: var(--text-hint);
}

.price-devis {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 0;
}

.pricing-card .btn {
    align-self: end;
}

@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .pricing-card {
        grid-row: auto;
        grid-template-rows: auto auto 1fr auto;
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-body);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    padding: 60px 0 60px;
    background: var(--bg-main);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
}

.testimonial-content {
    margin-bottom: 24px;
}

.stars {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 15px;
    color: var(--text-heading);
}

.author-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
    padding: 60px 0 60px;
    background: var(--bg-alt);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--text-heading);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    padding: 60px 0;
    background: var(--primary-gradient);
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: 16px;
}

.cta h2 .gradient-text {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 112px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    max-width: 300px;
}

.tagline-cyan {
    color: var(--primary-light) !important;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    padding: 0;
    width: auto;
    height: auto;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: var(--primary-light);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn:hover svg {
    filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.3));
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-links-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links-legal a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links-legal a:hover {
    color: white;
}

.footer-links-legal .sep {
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {

    .services-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: none;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-container {
        justify-content: center;
        position: relative;
    }

    .nav-links,
    .navbar .btn {
        display: none;
    }

    .logo {
        margin-left: 0;
    }

    .logo-img {
        height: 54px;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
    }

    .mobile-menu {
        display: block;
        top: 64px;
    }

    .navbar {
        background: var(--primary);
        padding: 10px 0;
    }

    .hero-bg {
        background: var(--bg-main);
    }

    .hero {
        padding: 150px 0 60px;
    }

    .hero-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .pricing-toggle-container {
        margin-top: 30px;
        margin-bottom: 30px;
        position: relative;
        z-index: 10;
        gap: 12px;
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .toggle-text {
        font-size: 14px;
        text-align: center;
    }

    .discount-badge {
        display: inline-block;
        margin-left: 4px;
        padding: 2px 6px;
        font-size: 11px;
    }

    .toggle-switch {
        transform: scale(0.9);
    }

    .services-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-logos {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .logo-img {
        height: 48px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .mobile-menu {
        top: 58px;
    }

    .service-card,
    .pricing-card,
    .testimonial-card {
        padding: 24px 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 10px;
    }

    .footer-bottom {
        padding-top: 30px;
    }

    .footer-links-legal .sep {
        display: none;
    }

    .footer-links-legal {
        gap: 16px;
    }
}

/* ========================================
   PROCESS SECTION - Our Proven Process
   ======================================== */
.process-section {
    padding: 100px 0;
    background: var(--bg-alt);
    overflow: hidden;
}

/* Text colors for process section */
.process-section .section-header p {
    color: var(--text-secondary);
}



.process-steps {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 60px;
}

.process-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.step-content {
    flex: 1;
    max-width: 500px;
}

.step-number {
    display: block;
    font-size: 64px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.step-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Animation Container */
.animation-container {
    position: relative;
    width: 380px;
    max-width: 100%;
    height: 320px;
    perspective: 1200px;
}

/* Process Cards with 3D tilt effect */
.process-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 220px;
    background: #23345e;
    border-radius: 16px;
    transform: translate(-50%, -50%) rotateX(8deg) rotateY(-8deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    overflow: hidden;
}

/* Shadow card behind for depth */
.process-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: #0e1628;
    border-radius: 20px;
    z-index: -1;
    transform: translateZ(-20px) rotateX(2deg) rotateY(2deg);
}

/* ============================================
   STEP 01: DISCOVERY CARD
   ============================================ */
.card-discovery {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.data-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.row-line {
    height: 10px;
    background: #1e2d50;
    border-radius: 5px;
    flex-grow: 1;
}

.row-line.short {
    width: 50%;
    flex-grow: 0;
}

.row-line.medium {
    width: 70%;
    flex-grow: 0;
}

.row-line.long {
    width: 90%;
    flex-grow: 0;
}

/* Crosshair/Target */
.crosshair {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 20px;
    left: 60px;
    z-index: 5;
}

.crosshair svg {
    width: 100%;
    height: 100%;
}

/* Location Pins */
.location-pin {
    position: absolute;
    width: 24px;
    height: 32px;
    z-index: 6;
}

.location-pin svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-light);
    filter: drop-shadow(0 2px 4px rgba(3, 181, 218, 0.3));
}

.location-pin.pin-1 {
    top: 15px;
    right: 40px;
}

.location-pin.pin-2 {
    top: 60px;
    right: 70px;
}

.location-pin.pin-3 {
    top: 30px;
    left: 20px;
    width: 16px;
    height: 22px;
    opacity: 0.6;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #23345e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(3, 181, 218, 0.15);
}

.floating-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-light);
    stroke-width: 2;
    fill: none;
}

.icon-chart {
    top: 20px;
    left: 15px;
}

.icon-document {
    top: 20px;
    right: 15px;
}


.icon-trend {
    bottom: 10px;
    left: 10px;
}

.icon-pie {
    bottom: 10px;
    right: 10px;
}

/* ============================================
   STEP 02: DEVELOPMENT CARD (Code Editor)
   ============================================ */
.card-development {
    background: #23345e;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(3, 181, 218, 0.15);
}

.code-header {
    height: 28px;
    background: #0e1628;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 5px;
    border-bottom: 1px solid rgba(3, 181, 218, 0.1);
}

.code-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.code-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 6px;
    margin-bottom: 2px;
}

/* Syntax highlighted token sizing */
.tk {
    height: 100%;
    border-radius: 2px;
}

.tk-n {
    width: 6px;
    height: 6px;
    background-color: #5ab196;
    border-radius: 1px;
    margin-right: 6px;
    flex-shrink: 0;
}

.tk-indent {
    background: transparent;
}

/* Colors based on code editor */
.tk-r {
    background-color: #e06c75;
}

.tk-b {
    background-color: #4ea8de;
}

.tk-y {
    background-color: #e5c07b;
}

.tk-w {
    background-color: #ffffff;
}

/* Width variations for tokens */
.tw-1 {
    width: 10px;
}

.tw-15 {
    width: 15px;
}

.tw-2 {
    width: 20px;
}

.tw-25 {
    width: 25px;
}

.tw-3 {
    width: 30px;
}

.tw-35 {
    width: 35px;
}

.tw-4 {
    width: 40px;
}

.tw-5 {
    width: 50px;
}

.tw-6 {
    width: 60px;
}

.tw-8 {
    width: 80px;
}

/* ============================================
   STEP 03: DEPLOYMENT CARD (Rocket)
   ============================================ */
.card-deployment {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #23345e;
    border: 1px solid rgba(3, 181, 218, 0.15);
}

.rocket-container {
    width: 60px;
    height: 60px;
    color: var(--primary-light);
    animation: rocketThrust 2s ease-in-out infinite;
}

@keyframes rocketThrust {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(2deg);
    }

    50% {
        transform: translateY(-5px) rotate(0deg);
    }

    75% {
        transform: translateY(-2px) rotate(-2deg);
    }
}

.rocket-icon {
    width: 100%;
    height: 100%;
}

/* Speed lines decoration */
.speed-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(3, 181, 218, 0.5), transparent);
    width: 2px;
    border-radius: 2px;
    animation: speedDash 1s linear infinite;
}

@keyframes speedDash {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(80px);
        opacity: 0;
    }
}

.line-1 {
    left: 30%;
    top: 20%;
    height: 40px;
    animation-duration: 0.8s;
    animation-delay: 0s;
}

.line-2 {
    left: 50%;
    top: 10%;
    height: 60px;
    animation-duration: 1.2s;
    animation-delay: 0.2s;
}

.line-3 {
    left: 70%;
    top: 25%;
    height: 35px;
    animation-duration: 0.9s;
    animation-delay: 0.5s;
}

.line-4 {
    left: 85%;
    top: 15%;
    height: 50px;
    animation-duration: 1.1s;
    animation-delay: 0.1s;
}

/* Decorative elements */




/* Floating code icons (Step 2) */
.floating-code-icon {
    display: none;
    /* Hide for cleaner look */
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .process-steps {
        gap: 60px;
    }

    .process-step,
    .process-step:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .step-content {
        max-width: 100%;
    }

    .animation-container {
        width: 320px;
        height: 280px;
    }

    .process-card {
        width: 240px;
        height: 190px;
    }
}

@media (max-width: 480px) {
    .animation-container {
        width: 280px;
        height: 240px;
    }

    .process-card {
        width: 200px;
        height: 160px;
    }

    .step-number {
        font-size: 48px;
    }

    .step-content h3 {
        font-size: 20px;
    }
}

/* ============================================
   ANIMATION DEMO STYLES (Adapted)
   ============================================ */

/* 3D Card Effect */
.process-card {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
}

.animation-container .process-card {
    transform: translate(-50%, -50%) rotateX(15deg) rotateY(-10deg);
    box-shadow: -10px -10px 20px rgba(3, 181, 218, 0.08), 10px 10px 30px rgba(0, 0, 0, 0.4), 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateX(15deg) rotateY(-10deg);
    }

    50% {
        transform: translate(-50%, -48%) rotateX(12deg) rotateY(-8deg);
    }
}

/* Floating Icons Animation */
.floating-icon {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animation-container .floating-icon {
    opacity: 1;
    transform: scale(1);
}

.animation-container .icon-chart {
    transition-delay: 0.1s;
    animation: floatIcon1 5s ease-in-out infinite 0.5s;
}

.animation-container .icon-document {
    transition-delay: 0.2s;
    animation: floatIcon2 5s ease-in-out infinite 0.7s;
}

.animation-container .icon-trend {
    transition-delay: 0.3s;
    animation: floatIcon3 5s ease-in-out infinite 0.9s;
}

.animation-container .icon-pie {
    transition-delay: 0.4s;
    animation: floatIcon4 5s ease-in-out infinite 1.1s;
}

@keyframes floatIcon1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(5px, -10px) rotate(3deg);
    }

    50% {
        transform: translate(-5px, -5px) rotate(-2deg);
    }

    75% {
        transform: translate(3px, 5px) rotate(1deg);
    }
}

@keyframes floatIcon2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-8px, 5px) rotate(-3deg);
    }

    50% {
        transform: translate(5px, -8px) rotate(2deg);
    }

    75% {
        transform: translate(-3px, -3px) rotate(-1deg);
    }
}

@keyframes floatIcon3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, 5px) rotate(2deg);
    }

    50% {
        transform: translate(-5px, 10px) rotate(-3deg);
    }

    75% {
        transform: translate(5px, -5px) rotate(1deg);
    }
}

@keyframes floatIcon4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-5px, -8px) rotate(-2deg);
    }

    50% {
        transform: translate(8px, 5px) rotate(3deg);
    }

    75% {
        transform: translate(-3px, 8px) rotate(-1deg);
    }
}

/* Crosshair Animation */
.crosshair {
    transition: all 0.4s ease;
}

.animation-container .crosshair {
    animation: crosshairMove 6s ease-in-out infinite;
}

@keyframes crosshairMove {

    0%,
    100% {
        top: 30px;
        left: 80px;
    }

    25% {
        top: 50px;
        left: 150px;
    }

    50% {
        top: 100px;
        left: 120px;
    }

    75% {
        top: 80px;
        left: 60px;
    }
}

/* Location Pin Animation */
.animation-container .location-pin {
    animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Glow Effect */
.glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(3, 181, 218, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.animation-container .glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Card Pulse Inner Border */
.process-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(3, 181, 218, 0.25), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.animation-container .process-card::before {
    opacity: 1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Instruction Text */
.instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: opacity 0.3s ease;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.animation-container .instruction {
    opacity: 0;
}

/* ========================================
   PROJECTS PAGE (Nos Réalisations)
   ======================================== */

.projects-page {
    --bg-color: #fffcfc;
    --card-bg: #ffffff;
    --card-border: rgba(15, 76, 92, 0.15);
    --text-main: #171717;
    --text-dim: #4b5563;
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;

    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
}

.projects-page .navbar:not(.scrolled) {
    background: transparent;
    backdrop-filter: blur(10px);
}

.projects-page .hero-projects {
    padding: 250px 24px 60px;
    text-align: center;
}

.projects-page .hero-projects h1 {
    margin-bottom: 16px;
    color: var(--text-main);
}

.projects-page .hero-projects p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Project Card --- */
.project-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Pour que l'image suive l'arrondi du haut */
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.project-preview {
    aspect-ratio: 16 / 9;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.preview-text {
    color: #d1d5db;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Par défaut, l'image remplit toute la zone sans bords */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-img.fit-contain {
    object-fit: contain;
    /* Utile pour les captures mobiles si on veut les voir en entier */
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-content {
    padding: 1.25rem;
}

.project-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.project-content p {
    color: var(--text-dim);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* --- Tags --- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.50rem;
}

/* About Section */
.process-section {
    padding: 60px 0 60px;
    background: var(--bg-alt);
    overflow: hidden;
}

.about {
    padding: var(--section-padding) 1rem 60px;
    background: var(--bg-main);
    overflow: hidden;
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 24px;
    font-size: 2.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-hint);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
}

.visual-card {
    background: var(--bg-alt);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.about-logo-overlay {
    width: 200px;
    opacity: 0.8;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .about-stats {
        justify-content: center;
    }
}

/* Pricing Refinement */
.pricing-features {
    list-style: none;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.tag {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.tag-blue {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.tag-emerald {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

/* Utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}