/* style.css */
:root {
    --primary-color: #2D0F58; /* Violet foncé principal */
    --secondary-color: #4A1C82; /* Violet moyen pour accents et fonds alternatifs */
    --accent-color: #7B3FD3; /* Violet plus clair pour CTAs, hovers */
    --highlight-color: #A061FF; /* Violet très clair pour textes mis en avant */
    --text-light: #F0F4F8; /* Blanc cassé pour textes sur fonds sombres */
    --text-medium: #C0C8D0; /* Gris clair pour textes secondaires */
    --text-dark: #1A0831; /* Pour textes sur fonds clairs (si besoin) */
    --bg-main: var(--primary-color);
    --bg-alt: var(--secondary-color);
    --card-bg: #3A1B6D; /* Fond des cartes légèrement distinct */

    --font-family: 'Poppins', sans-serif; /* ou 'Inter', sans-serif */
    --container-width: 1140px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-medium: 0 8px 25px rgba(26, 8, 49, 0.25); /* Ombre plus prononcée */
    --transition-smooth: all 0.3s ease-in-out;
}

/* --- Reset & Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base pour rem */
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

a {
    text-decoration: none;
    color: var(--highlight-color);
    transition: var(--transition-smooth);
}
a:hover { color: var(--text-light); }

ul { list-style: none; }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--text-light);
}

h1 { font-size: clamp(2.8rem, 5vw, 4rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--highlight-color); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1.25em;
    color: var(--text-medium);
    font-weight: 300;
}

.section-padding { padding: var(--section-padding); }
.alt-bg { background-color: var(--bg-alt); }

.section-title {
    text-align: center;
    margin-bottom: 1em; /* Espace avant le sous-titre */
    position: relative;
}
.section-title::after { /* Ligne décorative sous le titre */
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5em auto 0;
    border-radius: var(--border-radius);
}
.subtitle-tag { /* Micro-tagline sous le titre de section */
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-medium);
    margin-top: 0.5em;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: var(--box-shadow-medium);
}
.btn-primary:hover {
    background-color: var(--highlight-color);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(123, 63, 211, 0.4);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--accent-color);
}
.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-3px);
}
.btn-tool {
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 10px 20px;
    margin-top: auto; /* Pousse en bas de la carte */
}
.btn-tool:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}
.btn-tool .fa-arrow-right { margin-left: 8px; }


/* --- Header & Navigation --- */
.site-header {
    padding: 15px 0;
    background-color: rgba(45, 15, 88, 0.85); /* primary-color avec transparence */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
}
.site-header.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}
.logo:hover { color: var(--highlight-color); }

.main-nav ul {
    display: flex;
    gap: 25px;
}
.main-nav a {
    color: var(--text-medium);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.main-nav a::after { /* Effet de soulignement au survol */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--text-light);
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.nav-toggler { /* Pour mobile */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.nav-toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    position: relative;
    transition: var(--transition-smooth);
}
.nav-toggler-icon::before, .nav-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-smooth);
}
.nav-toggler-icon::before { top: -8px; }
.nav-toggler-icon::after { bottom: -8px; }

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh; /* Ajuster au besoin */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    background-image: linear-gradient(rgba(45, 15, 88, 0.8), rgba(45, 15, 88, 0.95)), url('assets/images/hero-background.jpg'); /* Remplacez par votre image */
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}
.hero-background-overlay { /* Si l'image est trop claire */
    /* position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(45, 15, 88, 0.5); z-index: 0; */
}
.hero-section .container { position: relative; z-index: 1; }
.hero-title .highlight { color: var(--highlight-color); }
.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 2.5em auto;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-medium);
}
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Expertise Section --- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 3em;
}
.expertise-block {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.expertise-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(26, 8, 49, 0.35);
}
.expertise-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5em;
}
.expertise-block h3 { margin-bottom: 0.3em; }
.micro-tagline {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 1.5em;
    font-style: italic;
}
.expertise-block ul { margin: 1.5em 0; }
.expertise-block ul li {
    margin-bottom: 0.8em;
    display: flex;
    align-items: flex-start;
    color: var(--text-medium);
}
.expertise-block ul li .fa-check-circle {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.1em;
    margin-top: 3px; /* Alignement vertical */
}
.example-case {
    font-size: 0.9rem;
    background-color: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: calc(var(--border-radius) / 2);
    margin-top: 1.5em;
}
.example-case strong { color: var(--text-light); }
.expertise-visual img {
    border-radius: var(--border-radius);
    margin-top: 1.5em;
    box-shadow: var(--box-shadow-light);
}

/* --- IA Tools Section --- */
.tools-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3em;
}
.tool-card {
    background-color: var(--primary-color); /* Un peu plus sombre que le fond de section si alt-bg */
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: var(--transition-smooth);
}
.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 8, 49, 0.4);
}
.tool-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 0.75em;
    background-color: rgba(255,255,255,0.03);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}
.tool-card h4 { color: var(--text-light); margin-bottom: 0.5em; }
.tool-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    flex-grow: 1; /* Pour que le bouton reste en bas */
    margin-bottom: 1.5em;
}

/* --- Why Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3em;
}
.why-us-item {
    text-align: center;
    padding: 20px;
    /* background-color: var(--card-bg); Optionnel si fond de section déjà contrasté */
    border-radius: var(--border-radius);
    /* box-shadow: var(--box-shadow-light); */
}
.why-us-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5em;
}
.why-us-item h4 { margin-bottom: 0.3em; color: var(--highlight-color); }

/* --- Social Proof Section --- */
.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 2em;
}
.client-logo {
    max-height: 60px;
    max-width: 150px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.client-logo:hover { opacity: 1; }
.client-logo-placeholder {
    font-style: italic;
    color: var(--text-medium);
    opacity: 0.7;
}


/* --- Contact Section --- */
.contact-wrapper {
    max-width: 700px;
    margin: 2em auto 0;
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
}
.contact-wrapper > p { text-align: center; margin-bottom: 2em; }

.contact-form .form-group { margin-bottom: 1.5em; }
.contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--text-light);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    background-color: var(--primary-color);
    border-radius: calc(var(--border-radius) / 2);
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(123, 63, 211, 0.3);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button[type="submit"] { width: 100%; }

.form-status {
    margin-top: 1em;
    text-align: center;
    font-weight: 500;
}
.form-status.success { color: #28a745; }
.form-status.error { color: #dc3545; }

.contact-divider {
    text-align: center;
    margin: 2em 0;
    position: relative;
}
.contact-divider span {
    background-color: var(--card-bg);
    padding: 0 15px;
    position: relative;
    z-index: 1;
    color: var(--text-medium);
    font-weight: 500;
}
.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    z-index: 0;
}
.btn-calendly {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--text-dark); /* Fond très sombre pour le footer */
    color: var(--text-medium);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-about h4, .footer-links h4, .footer-social h4 {
    color: var(--text-light);
    margin-bottom: 1em;
    font-size: 1.1rem;
}
.footer-links ul li { margin-bottom: 0.5em; }
.footer-links a { color: var(--text-medium); }
.footer-links a:hover { color: var(--highlight-color); }
.footer-social a {
    color: var(--text-medium);
    font-size: 1.5rem;
    margin-right: 15px;
}
.footer-social a:hover { color: var(--highlight-color); }
.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.85rem;
}

/* --- Animations on Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.fade-in { opacity: 1; }
.animate-on-scroll.fade-in-up { transform: translateY(30px); }
.animate-on-scroll.fade-in-left { transform: translateX(-30px); }
.animate-on-scroll.fade-in-right { transform: translateX(30px); }
.animate-on-scroll.zoom-in { transform: scale(0.9); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Caché par défaut, géré par JS */
        position: absolute;
        top: 100%; /* Juste en dessous du header */
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 15px 0;
    }
    .main-nav.active { display: block; }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .main-nav ul li { width: 100%; text-align: center; }
    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        width: 100%;
    }
    .main-nav ul li a::after { display: none; /* Pas de soulignement en mode mobile menu */ }
    .nav-toggler { display: block; }

    .nav-toggler.active .nav-toggler-icon { background-color: transparent; }
    .nav-toggler.active .nav-toggler-icon::before { transform: translateY(8px) rotate(45deg); }
    .nav-toggler.active .nav-toggler-icon::after { transform: translateY(-8px) rotate(-45deg); }

    .hero-section { min-height: 75vh; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }

    .hero-cta-buttons { flex-direction: column; align-items: center; }
    .hero-cta-buttons .btn { width: 70%; max-width: 300px; }

    .expertise-grid, .why-us-grid, .tools-gallery, .footer-content {
        grid-template-columns: 1fr;
    }
    .contact-wrapper { padding: 25px; }
}

@media (max-width: 480px) {
    .container { width: 95%; }
    h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
}