:root {
    --primary: #4cc9f0;
    --secondary: #8d81e0;
    --accent: #b8f055;
    --dark: #f8f9fa;
    --darker: #edf2f7;
    --text: #2d3748;
    --text-light: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--glass);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.desktop-nav {
    display: none;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("img/77771633933991.jpg");
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #fff;
}

.badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
    color: white;
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(184, 240, 85, 0.4);
    color: var(--text);
    animation: pulse 2s infinite;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    gap: 0.5rem;
    min-width: 160px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 201, 240, 0.5);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(76, 201, 240, 0.1);
    transform: translateY(-3px);
}

section {
    padding: 5rem 0;
    position: relative;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--text);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(76, 201, 240, 0.5);
}

.service-card-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 2rem;
    color: white;
}

.service-card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.service-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.service-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.price-tag {
    margin-top: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(76, 201, 240, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(76, 201, 240, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.communes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.commune-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.commune-item:hover {
    background: rgba(76, 201, 240, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.testimonials-wrapper {
    overflow-x: auto;
    padding: 1rem 0;
    margin: 0 -1rem;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.testimonials {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 350px;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.testimonial-card:hover {
    border-color: rgba(76, 201, 240, 0.5);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    color: var(--text-light);
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.faq-answer {
    padding: 0 0 1.5rem;
    line-height: 1.6;
    color: var(--text-light);
}

.cta-section {
    text-align: center;
    padding: 5rem 0;
    background: radial-gradient(circle at center, rgba(76, 201, 240, 0.1), transparent 70%);
}

.cta-section h2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

footer {
    padding: 4rem 0 7rem;
    background: var(--darker);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--transition);
    width: 56px;
    height: 56px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-icon {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.devis-floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.5);
    z-index: 99;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(76, 201, 240, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0);
    }
}

.comparison-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.2rem;
    text-align: left;
}

.comparison-table td {
    padding: 1.2rem;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.feature-check {
    color: var(--primary);
    font-size: 1.2rem;
}

.section-center {
    text-align: center;
}

.section-center h2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }

    .communes {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .communes {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 2rem);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        max-width: 650px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .header-inner {
        height: 80px;
    }

    .desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .desktop-nav-item {
        color: var(--text);
        text-decoration: none;
        position: relative;
        transition: var(--transition);
    }

    .desktop-nav-item:hover {
        color: var(--primary);
    }

    .desktop-nav-item::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
    }

    .desktop-nav-item:hover::after {
        width: 100%;
    }

    .desktop-nav-item.active {
        color: var(--primary);
    }

    .desktop-nav-item.active::after {
        width: 100%;
    }

    .mobile-nav {
        display: none;
    }

    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .communes {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .devis-floating-btn {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 calc(33.333% - 2rem);
    }

    .hero {
        height: calc(100vh - 80px);
        padding-top: 80px;
        align-items: center;
    }

    .hero-content {
        max-width: 750px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .communes {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .communes {
        grid-template-columns: repeat(7, 1fr);
    }
}