/* ========== RESET & VARIABLES ========== */
:root {
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --accent-color: #e74c3c;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #ffffff;
    --bg-subtle: #fafafa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden;
}

/* ========== UTILITIES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 12px;
    color: var(--primary-color);
}

.section-header p {
    font-size: clamp(16px, 4vw, 18px);
    color: var(--text-light);
}

section {
    padding: 50px 0;
}

@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }
}

/* ========== EMERGENCY BANNER ========== */
.emergency-banner {
    background: #c0392b;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.emergency-banner a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(14px, 3vw, 16px);
}

/* ========== NAVBAR ========== */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 44px;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: clamp(16px, 4vw, 20px);
}

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

.logo-text {
    display: none;
}

@media (max-width: 768px) {
    .logo-text {
        display: inline;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 16px;
    }

    .nav-menu a::after {
        display: none;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(36px, 10vw, 64px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 16px;
    color: #ecf0f1;
    font-weight: 600;
}

.hero-description {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 30px;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SERVICES ========== */
.services {
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 30px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ========== GALLERY ========== */
.galerie {
    background: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item h3 {
    margin-top: 16px;
    color: var(--primary-color);
    font-size: 18px;
}

.gallery-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* Before/After Container */
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
}

.before-after-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-img {
    z-index: 1;
}

.after-img {
    z-index: 0;
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    cursor: col-resize;
    z-index: 2;
    transform: translateX(-50%);
}

.comparison-slider::before {
    content: '\25c0 \25b6';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 12px;
    white-space: nowrap;
    user-select: none;
}

/* ========== ABOUT ========== */
.apropos {
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text h3 {
    font-size: 20px;
    margin: 24px 0 16px 0;
    color: var(--primary-color);
}

.values-list {
    list-style: none;
    font-size: 15px;
    line-height: 2.2;
    color: var(--text-dark);
}

.values-list li {
    padding-left: 20px;
    position: relative;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-card p {
        font-size: 12px;
    }
}

/* ========== GUARANTEES ========== */
.guarantees {
    background: #ffffff;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.guarantee-card {
    background: white;
    padding: 28px 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.guarantee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guarantee-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.guarantee-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.guarantee-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== REVIEWS ========== */
.avis {
    background: #ffffff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.review-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent-color);
}

.review-stars {
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-card p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    font-style: italic;
}

.review-author {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
}

.review-cta {
    text-align: center;
}

.review-cta p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ========== CONTACT FORM ========== */
.contact {
    background: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.info-item {
    margin-bottom: 24px;
}

.info-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.info-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
}

/* Form Styling */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 20px;
    }
}

/* ========== BUTTONS ========== */
.cta-button {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.cta-button.primary:hover,
.cta-button.primary:active {
    background: var(--primary-light);
    transform: scale(1.02);
}

.cta-button.primary:active {
    transform: scale(0.98);
}

.cta-button.secondary {
    background: var(--accent-color);
    color: white;
}

.cta-button.secondary:hover {
    opacity: 0.9;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    opacity: 0.9;
    display: block;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 4px 0;
}

/* ========== ACCESSIBILITY & DARK MODE ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .contact-form {
        background: #2a2a2a;
        border-color: #404040;
    }

    .service-card,
    .review-card,
    .guarantee-card,
    .navbar {
        background: #2a2a2a;
        color: #e0e0e0;
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .service-card {
        padding: 20px 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .guarantees-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}
