/* Base Styles */
:root {
    --primary-color: #25D366;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
header {
    width: 100%;
    padding: 12px 0;
    background: var(--white);
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo & Branding */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: var(--transition);
}

.logo-text:hover {
    opacity: 0.9;
}

.highlight {
    color: var(--primary-color);
}

.badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links button {
    background: var(--light-bg);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 10px 22px;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
}

.nav-links button:hover {
    background: var(--text-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle */
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 12px;
    margin: -12px;
    -webkit-tap-highlight-color: transparent;
}

.menu-icon .circle {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
    pointer-events: none;
}

.menu-icon:hover .circle {
    background-color: var(--primary-color);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
    background: var(--light-bg);
    text-align: center;
    position: relative;
    margin: -30px -20px 0;
    overflow: hidden;
    padding: 40px 0;
    isolation: isolate;
}

.hero .content {
    color: #333;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 20px 0;
    position: relative;
    z-index: 4;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%, rgba(0,0,0,0.03)), 
                linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%, rgba(0,0,0,0.03));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(24px, 5vw, 48px);
    margin: 0 0 20px 0;
    line-height: 1.4;
    color: #333;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero .subtitle {
    font-size: clamp(16px, 2.5vw, 24px);
    margin-bottom: 30px;
    color: #666;
    font-weight: 400;
}

.hero .btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #000;
}

.features {
    padding: 40px 20px;
    background: #fff;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: -15px;
}

.feature {
    text-align: center;
    padding: 30px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.feature p {
    color: #666;
    margin: 0;
    font-weight: 400;
}

.services {
    padding: 20px 0;
    background: #fff;
    margin-top: -160px;
    position: relative;
    z-index: 3;
}

.services h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
    padding-top: 0;
    background: white;
    padding: 15px;
    position: relative;
    z-index: 4;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-item h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.service-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-align: center;
    margin-top: -15px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 18px;
    margin: 0 0 10px 0;
    opacity: 0.9;
    font-weight: 400;
}

.cta .phone {
    font-size: 32px;
    font-weight: 600;
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.floating-contact {
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.whatsapp-button i {
    font-size: 32px;
    color: #25D366;
}

.sms-button i {
    font-size: 32px;
    color: #007AFF;
}

.whatsapp-button span, .sms-button span {
    display: none;
}

.whatsapp-button, .sms-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}

footer {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

/* Styles pour les numéros de téléphone */
.cta-phone, .footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    margin: 15px 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(37, 211, 102, 0.2);
}

/* Style spécifique pour le numéro dans la section CTA */
.cta-phone {
    font-size: 1.8rem;
    padding: 15px 40px;
    margin: 25px 0;
    background: #fff;
    color: #25D366;
    border: 2px solid #25D366;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-phone:hover {
    color: #fff;
    background: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta-phone:hover::before {
    opacity: 0;
}

.cta-phone i {
    color: #25D366;
    transition: all 0.3s ease;
}

.cta-phone:hover i {
    color: #fff;
    transform: scale(1.1);
}

.footer-phone {
    font-size: 1.2rem;
    padding: 10px 20px;
    margin: 5px 0 15px;
}

.cta-phone:hover, .footer-phone:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta-phone i, .footer-phone i {
    font-size: 1.2em;
    color: #25D366;
}

.footer-legal {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
    margin: 10px 0;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .hours {
    flex: 1;
    min-width: 250px;
}

.contact-info h4, .hours h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
}

.contact-info p, .hours p {
    margin: 10px 0;
}

.repair-button-container {
    display: none;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .floating-contact,
    .menu-icon {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .btn {
        display: none;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-icon {
        display: flex;
    }
    
    .hero {
        min-height: 60vh;
        margin-top: -40px;
    }
    
    .hero .content {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .features {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .floating-contact {
        flex-direction: column;
        right: 15px;
        bottom: 15px;
        width: auto;
    }
    
    .floating-contact a {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .service-item {
        padding: 20px 15px;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .cta .phone {
        font-size: 1.4rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-legal {
        text-align: center;
        margin: 40px auto 0;
        max-width: 100%;
        padding: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-top: 1px solid #eee;
        perspective: 1px; /* Standard property */
        -webkit-perspective: 1px; /* Safari/Chrome */
    }
    
    .footer-legal p {
        margin: 5px 0;
        line-height: 1.6;
        text-align: center;
        width: 100%;
    }
    
    footer a {
        color: inherit;
        text-decoration: none;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    footer a[href^="tel:"] {
        color: var(--text-color);
        font-weight: 500;
        padding: 4px 8px;
        border-radius: 4px;
        background: rgba(37, 211, 102, 0.1);
    }

    footer a[href^="tel:"]:hover {
        background: rgba(37, 211, 102, 0.2);
        text-decoration: none;
        transform: translateY(-1px);
    }

    footer a[href^="tel:"]::before {
        content: "📱";
        font-size: 1.1em;
    }
    
    .footer-legal a:hover {
        text-decoration: underline;
    }
    
    .footer-legal p:first-child {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    header {
        padding: 12px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .repair-button-container {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 10px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: none !important;
        transition: none !important;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        perspective: 1000;
        -webkit-perspective: 1000;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
    }

    .repair-button-container .btn {
        display: block;
        width: 90%;
        padding: 15px;
        font-size: 18px;
        font-weight: 600;
        background: #25D366;
        color: white;
        border-radius: 25px;
        text-decoration: none;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: none;
        transform: none !important;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        -webkit-perspective: 1000;
        box-sizing: border-box;
        overflow: hidden;
    }

    .repair-button-container .btn:hover, 
    .repair-button-container .btn:active {
        background: #128C7E;
        transform: none !important;
    }

    .floating-contact {
        bottom: 85px;
        right: 15px;
    }

    main {
        padding-bottom: 80px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-icon {
        display: flex;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .feature {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .services {
        padding: 0;
        margin-top: -60px;
        position: relative;
        z-index: 10;
        background: transparent;
    }

    .services h2 {
        margin-top: 0;
        padding-top: 0;
        font-size: 28px;
        margin-bottom: 30px;
        position: relative;
        z-index: 11;
        background: white;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        position: relative;
        z-index: 10;
        background: white;
        margin-top: -10px;
    }

    .hero {
        z-index: 1;
    }

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