/* Variables CSS */
:root {
    --primary-color: #39BFFF;
    --secondary-color: #2484C6;
    --accent-color: #00C851;
    --text-color: #000000;
    --text-light: #666666;
    --background-color: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #E9ECEF;
    --gray-dark: #44576B;
    --border-color: #DEE2E6;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 8px 16px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
    
    /* Animation variables */
    --animation-duration: 0.8s;
    --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Conteneur principal */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

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

.btn-outline:hover {
    background-color: var(--text-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-rounded {
    border-radius: 50px;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Section */
.trust-section,
.partners-section {
    padding: 80px 0;
    background-color: white;
    overflow: hidden;
}

.trust-slider {
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.trust-slider::before,
.trust-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.trust-slider::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.trust-slider::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.trust-slider-track {
    display: flex;
    gap: 4rem;
    animation: slideInfinite 30s linear infinite;
    width: max-content;
}

@keyframes slideInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.trust-slider-track:hover {
    animation-play-state: paused;
}

.trust-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 120px;
    padding: 1rem;
}

.trust-slide img {
    max-width: 220px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.trust-slide:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 158, 255, 0.1), rgba(0, 86, 179, 0.1));
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Service Features */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature {
    background-color: rgba(0, 158, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 2px;
    animation: loading-progress 2s ease-in-out infinite;
}


@keyframes loading-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 158, 255, 0.1);
}

.form-control.is-touched:invalid {
    border-color: #dc3545;
}

.form-control.is-touched:valid {
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.form-error {
    display: none;
    margin: 6px 0 0;
    font-size: 13px;
    color: #dc3545;
  }

  .form-control.is-invalid {
    border: 2px solid #dc3545 !important;
    outline: none;
  }

  .form-control.is-valid {
    border: 2px solid #28a745 !important;
    outline: none;
  }

  button[disabled] {
    opacity: .6;
    cursor: not-allowed;
  }
/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-up {
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .page-loader {
        display: none;
    }
}

@media (max-width: 768px) {
    .trust-slide {
        min-width: 150px;
        height: 80px;
    }

    .trust-slide img {
        max-width: 130px;
        max-height: 60px;
    }

    .trust-slider-track {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

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

    .btn {
        width: 100%;
        padding: 12px;
    }

    .btn-large {
        padding: 16px;
    }

    .trust-slide {
        min-width: 120px;
        height: 60px;
    }

    .trust-slide img {
        max-width: 100px;
        max-height: 50px;
    }

    .trust-slider-track {
        gap: 1.5rem;
        animation: slideInfinite 20s linear infinite;
    }
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour l'accessibilité */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Réduire les animations si préféré */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.mb-0 {
    margin-bottom: 0;
}

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

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

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

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

.mt-0 {
    margin-top: 0;
}

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

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

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

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