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

body {
    font-family: 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #4a90e2;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-logo h2:hover {
    color: #357abd;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #4a90e2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a90e2;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

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

/* Animation flottante */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 60px;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
}

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

/* section communes */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    background: linear-gradient(45deg, #4a90e2, #667eea);
    border-radius: 2px;
}

/* services section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
    }
    
    .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s ease;
    }
    
    .service-card:hover::before {
    left: 100%;
    }
    
    .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4a90e2;
    }
    
    .service-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    }
    
    .service-card:hover .service-icon {
    transform: scale(1.1);
    }
    
    .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    }
    
    .service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    }
    
    /* Portfolio Section */
    .portfolio {
    padding: 100px 0;
    background: white;
    }
    
    .portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    }
    
    .filter-btn {
    padding: 12px 25px;
    border: 2px solid #4a90e2;
    background: transparent;
    color: #4a90e2;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    }
    
    .filter-btn.active,
    .filter-btn:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    }
    
    .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    }
    
    .portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .portfolio-item.hidden {
    display: none;
    }
    
    .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
    
    .portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    }
    
    .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    }
    
    .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(102, 126, 234, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
    }
    
    .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    }
    
    .portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
    }
    
    .portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    }
    
    .portfolio-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1rem;
    }
    
    /* About Section */
    .about {
    padding: 100px 0;
    background: #f8f9fa;
    }
    
    .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    }
    
    .about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
    }
    
    .about-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666;
    line-height: 1.8;
    }
    
    .stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    }
    
    .stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
    }
    
    .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 0.5rem;
    }
    
    .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    }
    
    .about-image {
    position: relative;
    }
    
    .about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    }
    
    .about-image:hover img {
    transform: scale(1.02);
    }
    
    /* Contact Section */
    .contact {
    padding: 100px 0;
    background: white;
    }
    
    .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    }
    
    .contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    }
    
    .contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #666;
    line-height: 1.8;
    }
    
    .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    }
    
    .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    }
    
    .contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    }
    
    .contact-item i {
    font-size: 1.3rem;
    color: #4a90e2;
    width: 25px;
    text-align: center;
    }
    
    .contact-item span {
    color: #333;
    font-weight: 500;
    }
    
    .contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    
    .form-group {
    margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }
    
    .form-group textarea {
    resize: vertical;
    min-height: 120px;
    }
    
    .contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 1rem;
    }
    
    /* Footer */
    .footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    }
    
    .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
    margin-bottom: 1.5rem;
    color: #4a90e2;
    font-weight: 600;
    }
    
    .footer-section h3 {
    font-size: 1.5rem;
    }
    
    .footer-section p {
    color: #bdc3c7;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    }
    
    .footer-section ul {
    list-style: none;
    }
    
    .footer-section ul li {
    margin-bottom: 0.8rem;
    }
    
    .footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
    }
    
    .footer-section ul li a:hover {
    color: #4a90e2;
    padding-left: 5px;
    }
    
    .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    }
    
    .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    }
    
    .social-links a:hover {
    transform: translateY(-3px);
    background: #357abd;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
    }
    
    .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    }
    
    /* Animations pour les stats */
    @keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
    }
    
    .stat.animate {
    animation: countUp 0.6s ease;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
    .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
    }
    
    .nav-menu.active {
    left: 0;
    }
    
    .nav-toggle {
    display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
    font-size: 2.5rem;
    }
    
    .hero-subtitle {
    font-size: 1.1rem;
    }
    
    .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    }
    
    .hero-buttons .btn {
    width: 80%;
    max-width: 300px;
    }
    
    .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    }
    
    .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    }
    
    .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    }
    
    .about-text h2 {
    text-align: center;
    }
    
    .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    }
    
    .stats {
    justify-content: center;
    gap: 2rem;
    }
    
    .portfolio-filters {
    justify-content: center;
    gap: 0.5rem;
    }
    
    .filter-btn {
    margin: 0.25rem;
    padding: 10px 20px;
    font-size: 0.9rem;
    }
    
    .section-title {
    font-size: 2rem;
    }
    
    .contact-form {
    padding: 2rem 1.5rem;
    }
    
    .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    }
    
    .social-links {
    justify-content: center;
    }
    }
    
    @media (max-width: 480px) {
    .hero-title {
    font-size: 2rem;
    }
    
    .hero-subtitle {
    font-size: 1rem;
    }
    
    .section-title {
    font-size: 1.8rem;
    }
    
    .service-card {
    padding: 2rem 1.5rem;
    }
    
    .about-text p,
    .contact-info p {
    font-size: 1rem;
    }
    
    .stats {
    flex-direction: column;
    gap: 1.5rem;
    }
    
    .stat-number {
    font-size: 2.5rem;
    }

    .contact-form {
    padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
    padding: 12px 15px;
    }
    
    .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
    width: 90%;
    }
}
    
    /* Animations et effets de scroll */
    .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    }
    
    .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    }
    
    /* Loading spinner pour les interactions */
    .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }
    
    /* Success message styling */
    .success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin-top: 1rem;
    display: none;
    }
    
    .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin-top: 1rem;
    display: none;
    }