:root {
    --primary: #2563eb;
    --secondary: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --text: #475569;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Emergency Bar */
.emergency-bar {
    background: var(--danger);
    color: white;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-weight: 600;
}

.pulse {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.emergency-phone {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s;
}

.emergency-phone:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pipe {
    position: absolute;
    background: white;
    border-radius: 2px;
}

.pipe-1 {
    width: 20px;
    height: 4px;
    top: 15px;
    left: 12px;
}

.pipe-2 {
    width: 4px;
    height: 20px;
    top: 12px;
    left: 20px;
}

.water-drop {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    top: 25px;
    right: 10px;
    animation: drip 2s infinite;
}

@keyframes drip {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0; }
}

.brand-text strong {
    display: block;
    color: var(--dark);
    font-size: 1.2rem;
}

.brand-text span {
    color: var(--text);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient);
    overflow: hidden;
}

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

.bubble {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 20s infinite;
}

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

.bubble-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.bubble-3 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.hero-visual {
    display: grid;
    gap: 20px;
}

.visual-card {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.visual-card h3 {
    color: var(--dark);
    margin-bottom: 5px;
}

.visual-card p {
    color: var(--text);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
}

.services-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

.service-item:hover::before,
.service-item.active::before {
    transform: scaleX(1);
}

.service-icon {
    position: relative;
    margin-bottom: 20px;
}

.icon-bg {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-icon span {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.service-item h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.service-item p {
    color: var(--text);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    text-align: left;
}

.service-list li {
    padding: 8px 0;
    color: var(--text);
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.service-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary);
}

/* Urgences Section */
.urgences {
    padding: 100px 0;
    background: white;
}

.urgence-header {
    text-align: center;
    margin-bottom: 50px;
}

.urgence-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.urgence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.urgence-card {
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.urgence-card:hover {
    background: var(--primary);
    color: white;
    transform: translateX(10px);
}

.urgence-icon {
    font-size: 2rem;
}

.urgence-card h3 {
    flex: 1;
}

.urgence-arrow {
    opacity: 0;
    transition: opacity 0.3s;
}

.urgence-card:hover .urgence-arrow {
    opacity: 1;
}

.urgence-info {
    background: var(--light);
    padding: 40px;
    border-radius: 20px;
    display: none;
}

.urgence-info.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.btn-urgence {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--danger);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
}

/* Tarifs Section */
.tarifs {
    padding: 100px 0;
    background: var(--light);
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.tarif-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s;
}

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

.tarif-card.featured {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.tarif-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tarif-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.tarif-header h3 {
    color: var(--dark);
    margin-bottom: 20px;
}

.tarif-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price {
    color: var(--text);
    font-size: 0.9rem;
}

.tarif-price strong {
    font-size: 2.5rem;
    color: var(--primary);
}

.tarif-features {
    list-style: none;
    margin-bottom: 30px;
}

.tarif-features li {
    padding: 12px 0;
    color: var(--text);
}

.tarif-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tarif-btn:hover {
    background: var(--primary);
    color: white;
}

.tarif-btn.primary {
    background: var(--primary);
    color: white;
}

.tarif-btn.primary:hover {
    background: var(--dark);
    border-color: var(--dark);
}

.tarif-note {
    text-align: center;
    color: var(--text);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 300px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    background: var(--light);
    padding: 40px;
    border-radius: 20px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 30px;
}

.testimonial-author strong {
    display: block;
    color: var(--dark);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-cards {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-card h3 {
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-label {
    color: var(--text);
    font-size: 0.9rem;
}

.map-container {
    margin-top: 30px;
}

.map-placeholder {
    height: 200px;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.map-pin {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form h3 {
    color: var(--dark);
    margin-bottom: 30px;
}

.form-field {
    position: relative;
    margin-bottom: 20px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.field-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

.form-field textarea + .field-icon {
    top: 30px;
}

.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.submit-arrow {
    transition: transform 0.3s;
}

.form-submit:hover .submit-arrow {
    transform: translateX(5px);
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer p {
    color: var(--success);
    font-size: 0.9rem;
    margin: 5px 0;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    position: relative;
    padding-top: 100px;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    transform: translateY(-99%);
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    fill: var(--dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-cta h4 {
    margin-bottom: 20px;
}

.footer-phone {
    display: block;
    font-size: 1.8rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-phone:hover {
    transform: scale(1.05);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
}

.chat-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.chat-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: none;
    animation: slideUp 0.3s ease;
}

.chat-popup.active {
    display: block;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-header h4 {
    color: var(--dark);
}

.chat-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.chat-body {
    padding: 20px;
}

.chat-body p {
    margin-bottom: 20px;
    color: var(--text);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-options button {
    padding: 12px;
    background: var(--light);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.chat-options button:hover {
    background: var(--primary);
    color: white;
}

/* Animations */
.animate-fade {
    animation: fadeIn 1s ease;
}

.animate-slide {
    animation: slideIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-carousel {
        grid-template-columns: 1fr;
    }
    
    .urgence-grid {
        grid-template-columns: 1fr;
    }
    
    .tarifs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .chat-widget {
        left: 20px;
        bottom: 20px;
    }
    
    .chat-popup {
        width: calc(100vw - 40px);
    }
}