@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-secondary: #0f172a;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.sf-font {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

/* --- HEADER & NAV --- */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.header__logo a img {
    height: 72px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.header.scrolled .header__logo img {
    height: 50px;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    align-items: center;
}

.nav__menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__menu a:hover,
.nav__menu a.active {
    color: var(--color-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-secondary);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-secondary);
}

.btn--outline:hover {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: white;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

/* --- HERO (HOME) --- */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* The Blur Overlay (Full Section) */
.hero__blur-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 0;
    /* Mask removed - full blur */
}

.hero__content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
    /* Removed Global Glass Card logic */
}

/* Restore Info Box background since it's now on top of the blur layer */
.hero__info-box {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: inline-block;
}

.hero__text h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: #1E2A5A;
    margin-bottom: var(--spacing-md);
    /* Remove text shadow for cleaner look on blur */
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero__learn-more {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding-right: 20px;
    position: relative;
}

.hero__learn-more:after {
    content: '→';
    position: absolute;
    right: 0;
    transition: right 0.3s;
}

.hero__learn-more:hover {
    color: var(--color-primary-dark);
}

.hero__learn-more:hover:after {
    right: -5px;
}

.hero__visual {
    /* Removed all visual styling (borders, shadows, background) */
    background: transparent;
    min-height: 400px;
    position: relative;
}

/* Removed .hero__video-window */

.placeholder-img {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: var(--radius-lg);
}

/* --- SECTIONS --- */
.section {
    padding: var(--spacing-xl) 0;
}

.section--offers {
    background-color: #eff6ff;
    margin-top: 4rem;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--bg-blue {
    background-color: #eff6ff;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section__header h2 {
    font-size: 2.5rem;
    color: #1E2A5A;
    margin-bottom: var(--spacing-sm);
}

.section__intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* --- HOME SECTIONS RESTORATION --- */
/* Pain Points (Home) */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pain-point-card {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pain-point-card:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pain-point-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.pain-point-card:nth-child(1) .pain-point-icon {
    color: #2563eb;
    /* Blue */
}

.pain-point-card:nth-child(2) .pain-point-icon {
    color: #ef4444;
    /* Red */
}

.pain-point-card:nth-child(3) .pain-point-icon {
    color: #eab308;
    /* Yellow/Gold */
}

.pain-point-card:nth-child(4) .pain-point-icon {
    color: #22c55e;
    /* Green */
}

/* Vision */
.vision-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.vision-title h2 {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.typewriter-text {
    color: #f97316;
    /* Orange */
    font-family: 'Consolas', 'Monaco', 'Lucida Console', 'Courier New', monospace;
    font-weight: 600;
    margin-left: 0.5rem;
}

.typewriter-cursor {
    animation: blink 1s step-end infinite;
}

.vision-main-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.vision-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-weight: 500;
}

.vision-list {
    list-style: none;
    padding-left: 0;
}

/* Decorative Plane (Expert Section) */
.section--expert .container {
    position: relative;
}

.floating-plane-expert {
    position: absolute;
    right: 0;
    top: 20px;
    width: 150px;
    /* Slightly smaller for this section */
    height: auto;
    z-index: 10;
    transform: rotate(-10deg);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.floating-plane-expert:hover {
    transform: rotate(0deg) scale(1.1);
}

@media (max-width: 1200px) {
    .floating-plane-expert {
        right: -20px;
        width: 100px;
        opacity: 0.8;
    }
}

@media (max-width: 900px) {
    .floating-plane-expert {
        display: none;
        /* Hide on smaller screens to avoid overlap with text */
    }
}

.vision-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.handwritten-number {
    color: #2563eb;
    font-family: 'Segoe Script', 'Bradley Hand', 'Brush Script MT', cursive;
    font-size: 2.5rem;
    font-weight: bold;
    min-width: 3rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

/* Offers */
.offers-badge {
    display: block;
    width: 120px;
    height: auto;
    position: absolute;
    top: 50px;
    left: 80px;
    transform: rotate(-8deg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    z-index: 10;
}

.section--offers .section__header {
    position: relative;
    padding-top: 10px;
}

/* Hidden by default/handled in structure */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.card {
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.card__list {
    list-style: none;
    margin-bottom: var(--spacing-sm);
}

.card__list li::before {
    content: "✓";
    color: var(--color-primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

.card__benefit {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.portfolio-item {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.portfolio-item__content {
    padding: var(--spacing-md);
}

.placeholder-img--portfolio {
    width: 100%;
    height: 240px;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.testimonial {
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial__text {
    font-style: italic;
    margin-bottom: 1rem;
}

/* Examples */
.example-item {
    display: flex;
    /* Switched to flex for better control over visual size */
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-lg);
    /* Reduced margin */
    transition: all 0.5s ease;
}

.example-item--reverse {
    flex-direction: row-reverse;
}

.example-visual {
    flex: 0 0 50%;
    /* Constrain the visual part to 50% of the container */
    max-width: 50%;
}

.example-content {
    flex: 1;
}

.example-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.example-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.example-details {
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Expanded State */
.example-item.is-expanded {
    display: block;
}

.example-item.is-expanded .example-visual,
.example-item.is-expanded .example-short-text {
    display: none;
    /* Hide image and short text */
}

.example-item.is-expanded .example-details {
    display: block;
    opacity: 1;
    margin-top: 1rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.example-item.is-expanded .example-content {
    max-width: 100%;
}

.example-image {
    width: 100%;
    max-height: 300px;
    /* Optional: limit height to further reduce scroll */
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Specific overrides for Exemples section to reduce height */
#exemples {
    padding: 2rem 0;
}

#exemples .example-item {
    margin-bottom: 2rem;
    /* Reduced spacing */
}

#exemples .example-item:last-child {
    margin-bottom: 0;
}

#exemples .example-content h3 {
    font-size: 1.25rem;
    /* Reduced font size from 1.75rem */
}

#exemples .example-image {
    max-height: 180px;
    /* Reduced visual height */
}

/* Contact & Footer Restoration */
.section--contact {
    position: relative;
    background-color: #f8fafc;
    padding: 6rem 0;
}

.section--contact::before {
    display: none;
}

.section--contact .container {
    position: relative;
    z-index: 2;
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact__item {
    margin-bottom: 1.5rem;
}

.contact__item h3 {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.contact__item a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a {
    color: var(--color-text);
    text-decoration: none;
}

.footer__bottom {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Aero-Style Progress Bar */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 1001;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.scroll-indicator__bar {
    height: 100%;
    background: linear-gradient(to bottom,
            #1e40af 0%,
            #1e3a8a 50%,
            #1e40af 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow:
        0 0 10px rgba(30, 64, 175, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border-radius: 0 3px 3px 0;
}

/* Responsive basics */
@media (max-width: 1024px) {

    .portfolio-grid,
    .testimonials,
    .offers-grid,
    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__content,
    .example-item,
    .contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .portfolio-grid,
    .testimonials,
    .offers-grid,
    .pain-points-grid,
    .header__content,
    .footer__content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .nav {
        display: none;
    }

    /* Mobile nav would need JS logic restored fully, simpler here */
    .mobile-only {
        display: block;
    }

    .header__contact-desktop {
        display: none;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Consultation Section */
.section--consultation {
    background: white;
    padding: 4rem 0;
    color: #1e2a5a;
}

.section--consultation h2,
.section--consultation p {
    color: #1e2a5a;
}

.section--consultation .container {
    max-width: 900px;
}

.section--consultation .section__header {
    margin-bottom: 0;
}

.section--consultation .section__header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.consultation-content {
    background: #2d2d2d;
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.consultation-content p {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.consultation-content p:last-of-type {
    margin-bottom: 2.5rem;
}

.btn--consultation {
    background: #1e2a5a;
    color: white;
    border-color: #1e2a5a;
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
}

.btn--consultation:hover {
    background: #162041;
    border-color: #162041;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 42, 90, 0.4);
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--color-bg-alt);
}

.faq-toggle {
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-light);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    background-color: var(--color-bg-alt);
}