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

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

/* --- Outer Body with Plumbing & Technical Wallpaper Background --- */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #333333;
    background-color: #0f171e;
    background-image: 
        /* Subtle water circuit grid lines */
        linear-gradient(90deg, rgba(41, 128, 185, 0.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(41, 128, 185, 0.15) 1px, transparent 1px),
        /* Top cyan water glow */
        radial-gradient(circle at 20% 15%, rgba(41, 128, 185, 0.3) 0%, transparent 55%),
        /* Bottom heating copper/orange glow */
        radial-gradient(circle at 80% 85%, rgba(230, 126, 34, 0.25) 0%, transparent 55%),
        /* Deep industrial gradient base */
        linear-gradient(135deg, #1a252f 0%, #0d1319 100%);
    background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100%, 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- Solid App Container (Fixed Mobile Width on Web View) --- */
.site-wrapper {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    overflow: hidden;
}

main {
    flex: 1;
    width: 100%;
    padding: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* --- Header Layout --- */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    flex-shrink: 0;
}

.header-container {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.05rem;
    line-height: 1.1;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.brand-blue {
    color: #2c3e50;
    font-weight: bold;
}

.brand-red {
    color: #c0392b;
    font-weight: bold;
}

.brand-text .taglines {
    font-size: 0.55rem;
    color: #555555;
    font-weight: bold;
    line-height: 1.15;
    white-space: nowrap;
}

.rbq-text {
    color: #2c3e50;
    font-weight: bold;
}

.contact-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.phone-link {
    font-size: 1.05rem;
    font-weight: bold;
    color: #c0392b;
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
}

.phone-link:hover {
    text-decoration: underline;
}

.email-link {
    font-size: 0.65rem;
    color: #333333;
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
}

.email-link:hover {
    text-decoration: underline;
}

.service-area {
    font-size: 0.55rem;
    color: #666666;
    line-height: 1.15;
    white-space: nowrap;
}

.header-action-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 8px;
    width: 100%;
}

.action-row-inner {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

/* --- High-Visibility Pulsing Glow Animation for Soumission Button --- */
@keyframes submissionGlow {
    0% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 0 rgba(41, 128, 185, 0.9);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 16px 6px rgba(41, 128, 185, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 0 rgba(41, 128, 185, 0);
        transform: scale(1);
    }
}

.btn-soumission-large {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 42px;
    background-color: #e67e22;
    color: #ffffff;
    text-align: center;
    padding: 0 4px;
    font-size: 0.92rem;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    animation: submissionGlow 1.8s infinite ease-in-out;
    transition: background-color 0.2s ease;
}

.btn-soumission-large:hover {
    background-color: #d35400;
}

.btn-home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #34495e;
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.home-btn-img {
    width: 22px;
    height: auto;
    object-fit: contain;
}

.btn-home-icon:hover, .btn-home-icon.active {
    background-color: #e67e22;
    color: #ffffff;
}

.hamburger-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    color: #2c3e50 !important;
    font-size: 1.6rem !important;
    padding: 0 4px !important;
    height: 32px !important;
    line-height: 1 !important;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: none !important;
}

.main-nav {
    display: none;
}

.main-nav.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 15px;
    gap: 10px;
}

.main-nav .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #34495e;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    justify-content: flex-start;
}

.main-nav .btn:hover, .main-nav .btn.active {
    background-color: #e67e22;
    color: #ffffff;
}

/* --- Home Page 2x4 Gradient Image Cards Grid --- */
.home-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    flex: 1;
}

.home-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: filter 0.2s ease;
    overflow: hidden;
    position: relative;
}

.home-card:hover {
    filter: brightness(1.08);
}

.card-blue {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    border: 1px solid #5499c7;
}

.card-orange {
    background: linear-gradient(135deg, #e67e22 0%, #b94e00 100%);
    border: 1px solid #f39c12;
}

.card-yellow {
    background: linear-gradient(135deg, #f1c40f 0%, #d4ac0d 100%);
    border: 1px solid #f7dc6f;
    color: #2c3e50;
}

.card-yellow .card-title {
    color: #2c3e50;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.card-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.card-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.15;
    white-space: nowrap;
}

.card-subtitle {
    font-size: 0.78rem;
    font-weight: normal;
    color: #f8f9fa;
    line-height: 1.15;
    white-space: nowrap;
}

.card-subtext {
    font-size: 0.52rem;
    color: #fdebd0;
    line-height: 1.15;
}

/* --- Content Sections (For other pages) --- */
.hero-section, .service-section, .promo-section {
    background-color: #ffffff;
    padding: 16px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

.hero-section h1, .service-section h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.service-section ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.service-section li {
    background-color: #f8f9fa;
    padding: 8px 10px;
    border-left: 4px solid #f39c12;
    border-radius: 2px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* --- Animated Truck Container & Sequence (Entrepreneur Page) --- */
.truck-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 15px auto 0 auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.exhaust-smoke {
    position: absolute;
    right: 15%;
    bottom: 25px;
    width: 18px;
    height: 18px;
    background: rgba(180, 180, 180, 0.6);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.truck-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: truckDriveSequence 9s infinite ease-in-out;
}

@keyframes truckDriveSequence {
    0%, 40% {
        transform: translateX(0) translateY(0);
    }
    5%, 15%, 25%, 35% {
        transform: translateX(0) translateY(-1px);
    }
    10%, 20%, 30% {
        transform: translateX(0) translateY(1px);
    }
    43% {
        transform: translateX(8px) translateY(0);
    }
    52% {
        transform: translateX(-130%) translateY(0);
        opacity: 1;
    }
    53% {
        transform: translateX(130%) translateY(0);
        opacity: 0;
    }
    69% {
        transform: translateX(130%) translateY(0);
        opacity: 1;
    }
    78% {
        transform: translateX(0) translateY(0);
    }
    80%, 100% {
        transform: translateX(0) translateY(0);
    }
}

.truck-container:has(.truck-img) .exhaust-smoke {
    animation: exhaustPuffSequence 9s infinite ease-in-out;
}

@keyframes exhaustPuffSequence {
    0%, 41% {
        opacity: 0;
        transform: scale(0.4) translate(0, 0);
    }
    43% {
        opacity: 0.85;
        transform: scale(1.4) translate(10px, -5px);
    }
    48% {
        opacity: 0.4;
        transform: scale(2.5) translate(25px, -15px);
    }
    52%, 100% {
        opacity: 0;
        transform: scale(3.5) translate(40px, -25px);
    }
}

/* --- 4-Column Footer Layout (No Separators) --- */
footer {
    background-color: #1a252f;
    color: #ffffff;
    padding: 8px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px;
    font-size: 0.75rem;
    width: 100%;
    flex-shrink: 0;
}

.footer-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
}

.footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    padding: 0 2px !important;
}

.footer-col.footer-reviews {
    flex: 2.2 1 0% !important;
}

.footer-col.footer-payments {
    flex: 1.1 1 0% !important;
}

.footer-badge-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.footer-payment-img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2px;
}

.footer-stars {
    color: #f39c12;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.footer-review-title {
    font-size: 0.48rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
}

.btn-laisser-avis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #1d6fa5);
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.52rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    white-space: nowrap;
    width: 100%;
}

.payment-text {
    font-size: 0.42rem;
    color: #bdc3c7;
    line-height: 1.1;
    white-space: nowrap;
}

.payment-text span {
    font-size: 0.36rem;
    color: #95a5a6;
}

.footer-bottom {
    width: 100%;
    margin-top: 6px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ecf0f1;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 4px;
}