/* Styles de base critiques */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: #333; background: #fff; }
.navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; top: 0; width: 100%; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: #2563eb; }
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; }
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { color: white; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
.highlight { color: #fbbf24; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; transition: all 0.3s ease; }
.btn-primary { background: #fbbf24; color: #1f2937; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4); }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: #667eea; }
/* Styles pour le slider avant/après */
.image-compare { position: relative; width: 100%; max-width: 550px; margin-left: 50px; margin-right: auto; overflow: visible; }
.image-wrapper { position: relative; width: 100%; padding-bottom: 75%; overflow: hidden; background: transparent; border-radius: 16px; }
.image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; }
.image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.image--before { clip-path: inset(0 50% 0 0); transition: none; z-index: 1; will-change: clip-path; }
.image--after { clip-path: inset(0 0 0 50%); transition: none; z-index: 2; will-change: clip-path; }
.slider-control { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; z-index: 10; }
.slider-control:active { cursor: grabbing; }
.divider-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 5px; height: 100%; background: rgba(255, 255, 255, 1); box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.8); z-index: 4; pointer-events: none; transition: none; will-change: left; }
.divider { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: white; border-radius: 13px; z-index: 5; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.2s ease; pointer-events: none; will-change: left; }
.divider__icon { width: 40px; height: 40px; }
.image-wrapper:hover .divider { transform: translate(-50%, -50%) scale(1.1); }
.image-wrapper { cursor: grab; user-select: none; }
.image-wrapper:active { cursor: grabbing; }
.label { position: absolute; top: 20px; padding: 8px 16px; background: rgba(0,0,0,0.7); color: white; font-weight: 600; border-radius: 8px; font-size: 14px; z-index: 6; backdrop-filter: blur(10px); pointer-events: none; transition: all 0.1s ease-out; }
.services-preview { padding: 5rem 0; background: #f8fafc; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; color: #1f2937; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: white; padding: 2rem; border-radius: 12px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.service-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: white; font-size: 2rem; }
.service-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: #1f2937; }
.service-card p { color: #6b7280; line-height: 1.6; }

/* Styles pour "Pourquoi choisir SG REPAIR" */
.why-choose-us { padding: 80px 0; background: white; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.feature { text-align: center; padding: 30px; transition: all 0.3s ease; }
.feature:hover { transform: translateY(-5px); }
.feature-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #FFD700, #FFA500); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; transition: all 0.3s ease; }
.feature:hover .feature-icon { transform: scale(1.1); box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3); }
.feature-icon i { font-size: 1.8rem; color: white; }
.feature h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 15px; color: #333; }
.feature p { color: #666; }

@media (max-width: 768px) { 
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; } 
    .hero-title { font-size: 2.5rem; } 
    .services-grid, .features-grid { grid-template-columns: 1fr; }
    .image-compare { max-width: 100%; margin: 2rem auto 0; margin-left: 0; }
    .label { font-size: 12px; padding: 6px 12px; }
}
@media (max-width: 480px) { 
    .hero-title { font-size: 2rem; } 
    .hero-subtitle { font-size: 1rem; } 
    .section-title { font-size: 2rem; }
    .divider { width: 32px; height: 32px; }
    .divider__icon { width: 32px; height: 32px; }
    .label { top: 10px; font-size: 11px; padding: 4px 10px; }
    .label--before { left: 10px; }
    .label--after { right: 10px; }
}

.label--before { left: 20px; }
.label--after { right: 20px; }
.image-wrapper:focus-within { outline: 3px solid #fbbf24; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
