/* ===================================================================
   Espace Hydraulique - Site en Construction (Design System & Styles)
   Aesthetic: High-Tech Industrial, Fluid & Hydro Dynamics, Modern Glassmorphism
   =================================================================== */

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Palette de couleurs */
    --bg-dark: #070b12;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(22, 33, 58, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 162, 255, 0.35);

    --primary-blue: #0088ff;
    --primary-cyan: #00d2ff;
    --accent-teal: #00e5bc;
    --whatsapp-green: #25d366;
    --whatsapp-green-hover: #1ebd5a;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --glow-blue: rgba(0, 136, 255, 0.28);
    --glow-cyan: rgba(0, 210, 255, 0.22);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background canvas for fluid wave animation */
.fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

/* Ambient glow blobs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.glow-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.45) 0%, transparent 70%);
    top: -10%;
    right: 5%;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 210, 188, 0.35) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(60px) scale(1.15); }
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7, 11, 18, 0.6);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.brand-identity {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.brand-identity:hover {
    transform: translateY(-1px);
}

.logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 136, 255, 0.15);
    transition: var(--transition);
}

.logo-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 136, 255, 0.3), 0 0 0 1px #ffffff;
}

.brand-logo {
    height: 38px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

/* Status Badge */
.header-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.95rem;
    background: rgba(0, 162, 255, 0.08);
    border: 1px solid rgba(0, 162, 255, 0.25);
    border-radius: var(--radius-full);
}

.pulse-indicator {
    position: relative;
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-cyan);
    animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

.pulse-core {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
}

@keyframes pulsePing {
    75%, 100% {
        transform: scale(2.3);
        opacity: 0;
    }
}

.badge-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 4rem 0 5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 4.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    backdrop-filter: blur(6px);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-cyan);
    animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 60%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.75;
}

/* Progress Box */
.progress-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    max-width: 580px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f1f5f9;
}

.progress-percentage {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan), var(--accent-teal));
    position: relative;
    box-shadow: 0 0 16px var(--primary-cyan);
    animation: barShimmer 3s ease-in-out infinite alternate;
}

@keyframes barShimmer {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.25); }
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Section Header Shared */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 2.75rem;
}

/* Contact Section & Cards */
.contact-section {
    margin-bottom: 5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    max-width: 950px;
    margin: 0 auto;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: var(--transition);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.contact-card {
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 16px 45px rgba(0, 136, 255, 0.15);
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.15), rgba(0, 210, 255, 0.05));
    border: 1px solid rgba(0, 162, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-cyan);
    box-shadow: 0 4px 16px rgba(0, 136, 255, 0.15);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.card-body {
    margin-bottom: 2rem;
}

.card-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.contact-value {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    line-height: 1.3;
}

.contact-value:hover {
    color: var(--primary-cyan);
}

.card-status-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    outline: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #0070d6);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 136, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0099ff, var(--primary-blue));
    box-shadow: 0 6px 24px rgba(0, 136, 255, 0.55);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #25d366;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-green);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Services Preview */
.services-preview-section {
    margin-bottom: 5rem;
}

.preview-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sub-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-cyan);
    margin-bottom: 0.6rem;
}

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

.service-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 162, 255, 0.25);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(0, 136, 255, 0.1);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon-box svg {
    width: 24px;
    height: 24px;
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.service-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Formulaire Express */
.quick-inquiry-section {
    max-width: 820px;
    margin: 0 auto;
}

.inquiry-card {
    padding: 2.75rem 2.5rem;
}

.inquiry-text {
    text-align: center;
    margin-bottom: 2rem;
}

.inquiry-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.inquiry-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.express-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-group input,
.form-group textarea {
    background: rgba(5, 10, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
    background: rgba(5, 10, 20, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    align-self: flex-start;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.25rem 0;
    background: rgba(5, 8, 14, 0.85);
    margin-top: auto;
}

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

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.copyright strong {
    color: #ffffff;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.contact-pill svg {
    width: 14px;
    height: 14px;
    color: var(--primary-cyan);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-teal);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1.25rem 0;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-status-badge {
        align-self: flex-start;
    }

    .main-content {
        padding: 2.5rem 0 4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        width: 100%;
    }

    .card-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    .inquiry-card {
        padding: 1.75rem 1.25rem;
    }

    .btn-submit {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: center;
    }
}
