/* Base styles and resets */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #e2e8f0;
    --gray-dark: #94a3b8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --body-font: 'Inter', sans-serif;
    --container-width: 1280px;
    --header-height: 80px;
    /* Language switcher specific variables */
    --text-light: white;
    --primary: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

/* Header and Navigation */
#main-header {
    height: var(--header-height);
    transition: all 0.3s ease;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

#main-header.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#main-nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: transparent;
    transition: all 0.3s ease;
}

#main-header.scrolled #main-nav {
    background-color: transparent;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

#main-header.scrolled .logo-link {
    color: white;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    margin: 0 0.5rem;
    font-weight: 500;
    color: white;
    position: relative;
}

#main-header.scrolled .nav-link {
    color: white;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
}

#main-header.scrolled .nav-link:hover,
#main-header.scrolled .nav-link.active {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#main-header.scrolled .nav-link::after {
    background-color: var(--primary-light);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#mobile-menu {
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--dark-color);
    border-bottom: 1px solid var(--gray-color);
    font-weight: 500;
}

.mobile-link.primary {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hide mobile menu on larger screens */
@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }

    .mobile-language-switcher {
        display: none !important;
    }

    .language-switcher {
        display: flex !important;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-globe-icon {
    color: var(--text-light);
    font-size: 0.875rem;
    opacity: 0.8;
}

.lang-link {
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 28px;
    text-align: center;
}

.lang-link:hover {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.2);
    transform: scale(1.05);
}

.lang-link.active {
    color: white;
    background-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.lang-separator {
    color: var(--text-light);
    opacity: 0.4;
    font-size: 0.75rem;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.mobile-lang-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-lang-header i {
    color: var(--primary);
}

.mobile-lang-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    border: 1px solid transparent;
}

.mobile-lang-link:hover {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(4px);
}

.mobile-lang-link.active {
    color: white;
    background-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.mobile-lang-link.active i {
    color: white;
}

.mobile-lang-link i {
    color: var(--primary);
    font-size: 0.875rem;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--dark-color);
    color: white;
}

.section-gray {
    background-color: var(--gray-color);
}

.section-primary {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

/* Feature list */
.feature-list {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.feature-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* Grid system */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid var(--gray-dark);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid var(--gray-dark);
    border-radius: 0.375rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

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

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Testimonials */
.testimonial {
    text-align: center;
    padding: 2rem;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-position {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Stats */
.stats-container {
    text-align: center;
}

.stat {
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--gray-dark);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    color: var(--gray-dark);
}

.contact-item i {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-dark);
}

/* FAQ styling */
.faq-item {
    border-bottom: 1px solid var(--gray-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.active {
    max-height: 200px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-content {
    margin-left: 0.75rem;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* About page team section */
.team-member-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-member-info {
    text-align: center;
    padding: 1.5rem;
}

.team-member-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-member-position {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Values section */
.value-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Animations and transitions */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.bg-gray {
    background-color: var(--gray-color);
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.5rem;
}

.mb-6 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.5rem;
}

.mt-6 {
    margin-top: 2rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-8 {
    margin-left: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

/* AI Finance Tips Page */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--primary-light);
    color: white;
}

.tag.active {
    background-color: var(--primary-color);
    color: white;
}

.ai-response {
    min-height: 150px;
    background-color: var(--light-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.sources-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-color);
}

.source-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.source-icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.ai-typing {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.text-error {
    color: var(--error-color);
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray-500 {
    color: var(--secondary-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 50;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 0.2rem;
}

.cookie-link {
    color: var(--primary-light);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    min-width: 120px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .cookie-text {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-cookie {
        flex: 1;
        max-width: 160px;
    }
}

/* Page Header */
.page-header {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

/* Footer logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
}

/* Services page */
/* Services Page */
.service-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.service-block {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-block:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-toggle:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.service-block.active .toggle-icon {
    transform: rotate(180deg);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.service-block.active .service-details {
    max-height: 2000px;
}

/* Styles spécifiques pour les sous-textes des services */
.service-features {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-group {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-group:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06));
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-left-width: 6px;
}

.feature-group:hover::before {
    transform: scaleX(1);
}

.feature-group h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.feature-group h4 i {
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-group:hover h4 i {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.feature-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.feature-group li {
    padding: 1rem 0 1rem 2.5rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    line-height: 1.6;
    color: #334155;
}

.feature-group li:last-child {
    border-bottom: none;
}

.feature-group li:before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.feature-group li:hover {
    color: var(--primary-dark);
    padding-left: 3rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-right: 1rem;
}

.feature-group li:hover:before {
    transform: translateX(0.5rem) scale(1.2);
    color: var(--primary-dark);
    opacity: 1;
}

/* Step Accordion Styles */
.step-accordion .step-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.step-accordion .step-header:hover {
    background: rgba(37, 99, 235, 0.05);
    margin: 0 -1rem;
    padding: 1rem 1rem;
    border-radius: 8px;
}

.step-accordion .step-header h4 {
    margin: 0;
    flex: 1;
}

.step-toggle-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.step-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
}

.step-accordion.step-active .step-content {
    padding: 1rem 0;
}

.step-content ul {
    margin: 0;
    padding-top: 1rem;
}

/* Override previous styles for step accordions */
.step-accordion.feature-group {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.step-accordion.feature-group:hover {
    transform: none;
    border-left-width: 5px;
}

.step-accordion .step-header h4 i {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-accordion:nth-child(1) .step-header h4 i {
    background: #10b981;
}

.step-accordion:nth-child(2) .step-header h4 i {
    background: #f59e0b;
}

.step-accordion:nth-child(3) .step-header h4 i {
    background: #8b5cf6;
}

.step-accordion:nth-child(4) .step-header h4 i {
    background: #ef4444;
}

.step-accordion:nth-child(5) .step-header h4 i {
    background: #14b8a6;
}

@media (max-width: 768px) {
    .service-features {
        grid-template-columns: 1fr;
    }

    .feature-group {
        padding: 1rem;
    }

    .feature-group h4 {
        font-size: 1rem;
    }

    .step-accordion .step-header h4 {
        font-size: 0.95rem;
    }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    h1, .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    .desktop-menu {
        display: none;
    }

    .language-switcher {
        display: none;
    }

    .mobile-menu-btn {
        display: block !important;
        padding: 0.75rem;
        min-height: 44px;
        min-width: 44px;
    }

    .mobile-language-switcher {
        display: flex;
    }

    #mobile-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .card {
        margin: 0 0.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    /* Improve form inputs on mobile */
    .form-control, .form-select {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    .btn {
        padding: 1rem 1.5rem;
        min-height: 48px;
        font-size: 1rem;
    }

    /* Better spacing for hero content */
    .hero-content {
        padding: 0 1.5rem;
        margin-top: 2rem;
    }

    /* Improve table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 360px) {
    h1, .hero-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .card {
        margin: 0 0.25rem;
    }

    .mobile-link {
        padding: 1.25rem 0;
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    .btn, .nav-link, .mobile-link, .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step-accordion .step-header {
        min-height: 48px;
        padding: 1rem 0;
    }

    .tag {
        min-height: 36px;
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 1.5rem 0;
    }
}

/* Intro Animation */
.intro-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-color);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    will-change: opacity;
}

.intro-animation.fade-out {    opacity: 0;
    pointer-events: none;
}

.intro-logo {
    width: 300px;
    height: auto;
    filter: blur(15px);
    animation: logoIntro 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, filter;
}

@keyframes logoIntro {
    0% {
        transform: scale(3);
        filter: blur(15px);
    }
    100% {
        transform: scale(1);
        filter: blur(0);
    }
}