/* Styles généraux */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Styles de navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-purple);
    transition: width 0.3s ease;
}

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

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

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

/* Styles des formulaires */
.form-input {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent;
    transition: all 0.3s ease;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

/* Styles des cartes */
.service-card {
    @apply bg-white rounded-lg shadow-lg overflow-hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Effets de survol personnalisés */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Styles des sections */
.section-spacing {
    @apply py-16 md:py-24;
}

.section-title {
    position: relative;
    display: inline-block;
}

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

/* Styles responsifs personnalisés */
@media (max-width: 768px) {
    .mobile-menu {
        @apply fixed inset-0 bg-white z-50 transform transition-transform duration-300;
    }

    .mobile-menu.hidden {
        transform: translateX(-100%);
    }

    .mobile-menu.visible {
        transform: translateX(0);
    }
}

/* Styles d'accessibilité */
.skip-link {
    @apply sr-only focus:not-sr-only focus:absolute focus:top-0 focus:left-0 
           bg-white text-purple-700 px-4 py-2 z-50;
}

/* Animations des boutons */
.btn-animate {
    position: relative;
    overflow: hidden;
}

.btn-animate::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.5s ease;
}

.btn-animate:hover::after {
    left: 100%;
}

/* Utilitaires d'espacement et de mise en page */
.content-wrapper {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

.section-padding {
    @apply py-12 md:py-16 lg:py-20;
}

/* Styles pour les images */
.img-cover {
    @apply w-full h-full object-cover;
}

.img-contain {
    @apply w-full h-full object-contain;
}

/* Hero Section Styles */
.custom-hero-gradient {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* Animation styles */
[data-aos="fade-up"] {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Hero text responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}

/* Services Section Styles */
.service-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

.service-image {
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}