@tailwind base;
@tailwind components;
@tailwind utilities;

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Custom Properties */
:root {
    --hasco-blue: #1E3A8A;
    --hasco-orange: #F97316;
    --hasco-light-blue: #3B82F6;
    --hasco-dark: #1F2937;
    --transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animation-delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animation-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    color: #6B7280;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--hasco-blue);
}

.nav-link:not(.text-hasco-blue):hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--hasco-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Mobile Navigation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 200px;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #6B7280;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--hasco-blue);
    background-color: #F3F4F6;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--hasco-blue);
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.6));
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--hasco-orange), #FB923C);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    color: white;
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: var(--hasco-blue);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    color: var(--hasco-blue);
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--hasco-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    max-width: 3xl;
    margin: 0 auto;
}

/* Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--hasco-orange);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--hasco-orange);
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.experience-badge {
    background: linear-gradient(135deg, var(--hasco-orange), #FB923C);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
}

.experience-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hasco-blue);
}

.experience-description {
    color: #6B7280;
    line-height: 1.6;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Partners Marquee */
.partners-marquee {
    overflow: hidden;
    padding: 2rem 0;
}

.partners-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: 200%;
}

.partner-logo {
    flex: 0 0 200px;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Stats */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hasco-orange), #FB923C);
    border-radius: 50%;
}

/* Form Styles */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--hasco-blue);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #FAFAFA;
}

.form-input:focus {
    outline: none;
    border-color: var(--hasco-orange);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Footer */
.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--hasco-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .service-card,
    .experience-card,
    .value-card {
        padding: 1.5rem;
    }
    
    .partners-track {
        animation-duration: 20s;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--hasco-blue), var(--hasco-light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading {
    opacity: 0;
}

.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced hover effects */
.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.experience-card:hover .experience-badge {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Services Page Styles */
.service-overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--hasco-orange);
    height: 100%;
}

.service-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-overview-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-category-header {
    margin-bottom: 2rem;
}

.service-category-badge {
    background: linear-gradient(135deg, var(--hasco-orange), #FB923C);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.service-detail-item {
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--hasco-orange);
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.process-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--hasco-blue), var(--hasco-light-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.specialized-service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.specialized-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--hasco-orange);
}

.specialized-service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.reference-project-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--hasco-orange);
}

.reference-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.reference-project-header {
    margin-bottom: 1.5rem;
}

.reference-project-badge {
    background: linear-gradient(135deg, var(--hasco-orange), #FB923C);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.reference-project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hasco-blue);
    margin-bottom: 0.25rem;
}

.reference-project-location {
    color: #6B7280;
    font-size: 0.875rem;
}

.reference-project-description {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.reference-project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #F3F4F6;
    color: var(--hasco-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.advantage-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

 /* Styles pour la notification personnalisée */
        .notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 8px;
            color: #fff;
            font-family: Arial, sans-serif;
            font-size: 1rem;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: opacity 0.5s, visibility 0s 0.5s, transform 0.5s;
            z-index: 1000;
        }

        .notification.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            transition: opacity 0.5s, visibility 0s, transform 0.5s;
        }

        .notification.success {
            background-color: #27ae60;
        }

        .notification.error {
            background-color: #c0392b;
        }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.form-input:focus {
    outline: 2px solid var(--hasco-orange);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .partners-marquee,
    nav,
    footer {
        display: none;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}