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

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

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 80px 20px;
    background: white;
}

.about .container {
    max-width: 900px;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about strong {
    color: #667eea;
    font-weight: 600;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
    color: white;
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 20px;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.portfolio-item h3 {
    padding: 1.5rem 1rem 0.5rem;
    color: #333;
}

.portfolio-item p {
    padding: 0 1rem 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
    background: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-card h4 {
    color: #667eea;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

.info-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #764ba2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #667eea;
        padding: 1rem;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services h2,
    .portfolio h2,
    .testimonials h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

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

    /* Masquer l'animation de tuyau sur mobile */
    .pipe-animation {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 0.5rem;
    }
}

/* Animation Tuyau au Scroll */
.pipe-container {
    position: fixed;
    right: 30px;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 999;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.pipe {
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, #a0a0a0 0%, #e0e0e0 50%, #808080 100%);
    position: relative;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

/* Jointures du tuyau pour le réalisme */
.pipe::before, .pipe::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 10px;
    left: -2px;
    background: linear-gradient(90deg, #808080 0%, #d0d0d0 50%, #606060 100%);
    border: 1px solid #555;
    border-radius: 2px;
}

.pipe::before { top: 20%; }
.pipe::after { top: 80%; }

.leak-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    z-index: 1;
}

.water-spray {
    position: absolute;
    top: 50%;
    left: -5px; /* Sort du côté gauche du tuyau */
    width: 0;
    height: 0;
    z-index: 2;
}

/* Création des gouttes d'eau */
.water-drop {
    position: absolute;
    background: #4facfe;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
}

.valve {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.valve-connector {
    position: absolute;
    width: 34px;
    height: 24px;
    background: linear-gradient(90deg, #bf953f 0%, #fcf6ba 50%, #bf953f 100%);
    border: 1px solid #8a6d3b;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.valve-body {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #fcf6ba, #bf953f);
    border-radius: 4px;
    z-index: 4;
    border: 1px solid #8a6d3b;
}

.valve-handle {
    position: absolute;
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, #ff4d4d 0%, #cc0000 100%);
    border-radius: 50%;
    border: 2px solid #990000;
    z-index: 5;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    /* Cross shape for the handle grip */
    clip-path: polygon(
        0% 35%, 35% 35%, 35% 0%, 65% 0%, 65% 35%, 100% 35%, 
        100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0% 65%
    );
    transition: transform 0.1s ease-out;
}

.handle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: silver;
    border-radius: 50%;
    border: 1px solid #666;
    z-index: 6;
}

@media (max-width: 768px) {
    .pipe-container {
        display: flex;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px;
        align-items: center;
    }

    .pipe {
        width: 100%;
        height: 20px;
        border-left: none;
        border-right: none;
        border-top: 1px solid #666;
        border-bottom: 1px solid #666;
        background: linear-gradient(180deg, #a0a0a0 0%, #e0e0e0 50%, #808080 100%);
        box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    }

    .pipe::before, .pipe::after {
        width: 10px;
        height: 24px;
        top: -3px;
        background: linear-gradient(180deg, #808080 0%, #d0d0d0 50%, #606060 100%);
    }

    .pipe::before { left: 20%; top: -3px; }
    .pipe::after { left: 80%; top: -3px; }

    .water-spray {
        left: 50%;
        top: -5px;
        transform: translateX(-50%);
    }
}