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

html {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Force all elements to respect viewport width */
*,
*::before,
*::after {
    max-width: 100%;
}

/* Prevent any element from causing horizontal scroll */
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
ul,
li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure sections don't overflow */
section {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    position: relative;
    contain: layout style;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
    will-change: transform, opacity;
    contain: layout style paint;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    will-change: auto;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
    will-change: transform, opacity;
    contain: layout style paint;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    will-change: auto;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hero */
.hero {
    width: 100vw;
    max-width: 100vw;
    height: 95vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('image/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-button {
    background-color: #4ba34d;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.hero-button:hover {
    background-color: #ffffff;
    color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.hero-button:active {
    transform: translateY(-1px);
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    position: relative;
    contain: layout style;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-description {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

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

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666666;
    line-height: 1.4;
}

.contact-button {
    background-color: #333333;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-button:hover {
    background-color: #555555;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.contact-button:active {
    transform: translateY(-1px);
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: block;
    box-sizing: border-box;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: #ffffff;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    position: relative;
    contain: layout style;
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    width: 100%;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
}

.services-description {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.8;
}

/* Services List */
.services-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0;
}

.service-list-item {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.service-list-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #4ba34d;
}

.service-icon {
    font-size: 2.5rem;
    color: #4ba34d;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-item-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Subscribe Section */
.subscribe-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
    position: relative;
    contain: layout style;
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

.subscribe-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 2.5rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    color: #333333;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #333333;
}

.form-input::placeholder {
    color: #999999;
}

.submit-button {
    background-color: #333333;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #555555;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-button {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-title {
        font-size: 2rem;
    }

    .stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-image {
        max-width: 100%;
    }

    .services-title {
        font-size: 2rem;
    }

    .services-images {
        flex-direction: column;
        gap: 20px;
    }

    .service-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-title {
        font-size: 1.75rem;
    }

    .about-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-button {
        width: 100%;
    }

    .services-section {
        padding: 60px 20px;
    }

    .services-title {
        font-size: 1.75rem;
    }

    .services-description {
        font-size: 1rem;
    }

    .subscribe-section {
        padding: 60px 20px;
    }

    .subscribe-title {
        font-size: 1.75rem;
    }

    .submit-button {
        width: 100%;
    }
}

/* Progress Bars / Gauges */
.stats-gauges {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.gauge-item {
    width: 100%;
}

.gauge-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.gauge-bar-container {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.gauge-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ba34d, #2e7d32);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(75, 163, 77, 0.3);
}

/* Devis Info Box */
.devis-info-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f0 100%);
    border-left: 5px solid #4ba34d;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.devis-info-box:hover {
    transform: translateY(-5px);
}

.devis-info-icon {
    font-size: 2.5rem;
    color: #4ba34d;
}

.devis-info-text h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 5px;
}

.devis-info-text p {
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .devis-info-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}