@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);
}

/* --- 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;
}

/* --- HERO (HOME) --- */
.hero {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    background-image: url('../assets/img/image_accueil.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    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.1);
    z-index: 0;
}

.hero__content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.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);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.hero__learn-more {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    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:after {
    right: -5px;
}

.placeholder-img {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: var(--radius-lg);
}

/* --- SECTIONS --- */
.section {
    padding: var(--spacing-xl) 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.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;
}

.pain-point-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Vision */
.vision-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.vision-title h2 {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.typewriter-cursor {
    animation: blink 1s step-end infinite;
}

.vision-main-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.vision-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.handwritten-number {
    color: #1e2a5a;
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5rem;
}

/* Offers */
.offers-badge {
    display: none;
}

/* 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: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.example-item--reverse {
    direction: rtl;
}

.example-item--reverse>* {
    direction: ltr;
}

.example-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Contact & Footer Restoration */
.section--contact {
    background-color: #f8fafc;
}

.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);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: transparent;
}

.scroll-indicator__bar {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.1s;
}

/* 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;
    }
}

/* =========================================
   NEW AUTOMATION PAGE STYLES (Added)
   ========================================= */

/* Hero Auto */
.hero-auto {
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at top right, #f1f5f9 0%, transparent 40%),
        radial-gradient(circle at bottom left, #eff6ff 0%, transparent 40%);
}

.hero-auto__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-auto__content h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

.hero-auto__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-auto__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-visual-placeholder {
    aspect-ratio: 4/3;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-shape {
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    border-radius: 50%;
}

/* Pain Grid (New) */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pain-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.pain-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

/* Services (Numbered) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-header {
    max-width: 800px;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.service-card__number {
    position: absolute;
    top: -0.5rem;
    right: 1.5rem;
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.06;
    line-height: 1;
}

.service-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
}

/* Steps */
.steps-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    min-width: 900px;
}

.step-card {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.step-card__num {
    background: var(--color-primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding-bottom: 1.5rem;
    color: var(--color-text);
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* CTA Box */
.cta-box {
    background: #eff6ff;
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid #dbeafe;
}

.cta-box h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.cta-box p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive (New) */
@media (max-width: 1024px) {

    .pain-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-auto__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-auto__actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .pain-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}