/* Variables globales */
:root {
    --primary-color: #750069;
    --primary-light: #9A008C;
    --primary-dark: #5C0053;
    --secondary-color: #42bd2e;
    --secondary-light: #4FE438;
    --secondary-dark: #359624;
    --text-dark: #2D3748;
    --text-gray: #718096;
    --text-light: #A0AEC0;
    --bg-light: #F7FAFC;
    --bg-gray: #EDF2F7;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--bg-light);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from { 
        transform: translateX(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Styles du slider vertical */
#vertical-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
    margin: 0;
    max-width: 1200px;
}

.v-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.v-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Structure de carte uniforme */
.expertise-card {
    display: flex;
    height: 500px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.expertise-image {
    flex: 0 0 45%;
    height: 100%;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.expertise-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
    overflow-y: auto;
}

.expertise-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.expertise-list li i {
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.expertise-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Grid compact pour les tests visuels */
.tests-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.test-compact-item {
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    text-align: center;
    border-left: 3px solid var(--secondary-color);
}

/* Scrollbar pour les tests */
.tests-compact-grid::-webkit-scrollbar {
    width: 4px;
}

.tests-compact-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tests-compact-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Navigation verticale */
.vertical-nav {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-dark);
}

/* Partner Slider Styles */
.partner-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
}

.partner-logo {
    padding: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    min-width: 220px;
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partner-logo {
        min-width: 200px;
    }
}

@media (min-width: 769px) {
    .partner-logo {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .partner-logo {
        padding: 0.5rem;
    }
}

/* Styles du Slider */
.slide {
    transition: opacity 0.7s ease-in-out;
}

.slide.hidden {
    opacity: 0;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
}

.slider-dot {
    transition: all 0.3s ease;
}

.slider-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Animation du contenu du slider */
.slide h1, .slide h2 {
    opacity: 0;
    transform: translateY(20px);
}

.slide p {
    opacity: 0;
    transform: translateX(-20px);
}

.slide.active h1, 
.slide.active h2 {
    animation: fadeIn 0.7s ease-out forwards;
    animation-delay: 0.2s;
}

.slide.active p {
    animation: slideIn 0.7s ease-out forwards;
    animation-delay: 0.4s;
}

.slide.active .btn-container {
    opacity: 0;
    animation: fadeIn 0.7s ease-out forwards;
    animation-delay: 0.6s;
}

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Styles communs */
.page-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
        line-height: 3.5rem;
    }
}

.section-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Boutons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--white);
    color: var(--white);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Effets de survol améliorés */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Style pour le menu mobile */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Style pour le logo en mode mobile */
@media (max-width: 768px) {
    .logo-mobile {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        max-width: 60px;
    }
}

/* Composants spécifiques */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cartes et sections */
.service-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Formulaires */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Navigation */
.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 0;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}



/* Responsive design */
@media (max-width: 900px) {
    #vertical-slider {
        height: auto;
    }
    
    .expertise-card {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    
    .expertise-image {
        flex: 0 0 250px;
        width: 100%;
    }
    
    .expertise-content {
        padding: 2rem;
        min-height: auto;
    }
    
    .expertise-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .tests-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 200px;
    }
    
    .test-compact-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}