/* ========================================
   MH_AiSolution — Style Principal
   Palette: Gris pâle, Jaune, dégradé vers Bleu
   ======================================== */

:root {
    /* Couleurs principales */
    --gray-50: #f8f9fa;
    --gray-100: #f0f1f3;
    --gray-200: #e2e4e8;
    --gray-300: #c8ccd3;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --yellow-300: #fde047;

    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #0c1a3a;

    --gradient-main: linear-gradient(135deg, var(--yellow-400) 0%, var(--blue-500) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #0c1a3a 50%, #111827 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--gray-900);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--yellow-400);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--yellow-300);
}

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

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========= NAVBAR ========= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-mh { color: var(--yellow-400); }
.logo-separator { color: var(--gray-500); }
.logo-ai { color: var(--blue-400); }

/* Nav logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-text {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-logo-brain {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Hero logo */
.hero-logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-logo-text {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.hero-logo-brain {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.2));
}

/* Footer logo */
.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-text {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-logo-brain {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}
.nav-links a:hover { color: #fff; }

.nav-cta {
    background: var(--gradient-main);
    color: var(--gray-900) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
}
.nav-cta:hover {
    opacity: 0.9;
    color: var(--gray-900) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========= HERO ========= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(250, 204, 21, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--yellow-400);
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line1 {
    display: block;
    color: var(--gray-100);
}

.hero-line2 {
    display: block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-line2 em {
    font-style: italic;
    position: relative;
    -webkit-text-fill-color: var(--yellow-300);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--gray-900);
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.3);
    color: var(--gray-900);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--gray-200);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.stat-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.stat strong {
    display: block;
    color: var(--gray-100);
    font-size: 0.9rem;
    font-weight: 600;
}
.stat small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ========= SECTIONS COMMON ========= */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--yellow-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-100);
    margin-bottom: 16px;
}

.section-header.light h2 {
    color: #fff;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 550px;
    margin: 0 auto;
}

.section-header.light p {
    color: rgba(255,255,255,0.6);
}

/* ========= SERVICES ========= */
.services {
    padding: 120px 0;
    background: var(--gray-900);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250,204,21,0.3), rgba(59,130,246,0.3), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--transition);
}

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

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

.service-card.featured {
    border-color: rgba(250, 204, 21, 0.2);
    background: rgba(250, 204, 21, 0.03);
}

.service-card.featured::before {
    opacity: 1;
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-900);
    background: var(--yellow-400);
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--yellow-400);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

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

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

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--gray-300);
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow-400);
    font-weight: 700;
}

/* ========= EXPERTISE ========= */
.expertise {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, var(--blue-900) 0%, var(--gray-900) 100%);
    overflow: hidden;
}

.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 2;
}

.expertise-item {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
}

.expertise-item:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.expertise-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.expertise-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.expertise-item p {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========= PROCESSUS ========= */
.processus {
    padding: 120px 0;
    background: var(--gray-900);
}

.process-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--yellow-400), var(--blue-500));
    opacity: 0.3;
}

.process-step {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.step-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--gray-800);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-400);
    position: relative;
    z-index: 2;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step-content {
    padding-top: 4px;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--yellow-400);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-100);
    margin: 4px 0 8px;
}

.step-content p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========= CTA SECTION ========= */
.cta-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-900) 100%);
    overflow: hidden;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 550px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 2;
}

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

/* ========= CONTACT ========= */
.contact {
    padding: 120px 0;
    background: var(--gray-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--yellow-400);
    background: rgba(250,204,21,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item strong {
    display: block;
    color: var(--gray-100);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.contact-item a {
    color: var(--gray-400);
    font-size: 0.95rem;
}
.contact-item a:hover { color: var(--yellow-400); }

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--gray-400);
    transition: all var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: rgba(250,204,21,0.1);
    border-color: rgba(250,204,21,0.3);
    color: var(--yellow-400);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--gray-100);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    outline: none;
    transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group select {
    color: var(--gray-500);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--gray-800);
    color: var(--gray-100);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--yellow-400);
    box-shadow: 0 0 0 3px rgba(250,204,21,0.1);
}

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

/* ========= FOOTER ========= */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: var(--gray-900);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gray-200); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.8rem;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.98);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .hero { padding: 100px 20px 60px; }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

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

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

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .process-timeline::before {
        left: 27px;
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animate elements on scroll */
.service-card,
.expertise-item,
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.expertise-item.visible,
.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow effects */
.service-card.featured .service-icon {
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.3));
}
