:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --white: #ffffff;
    --success: #059669;
    --danger: #dc2626;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo i {
    font-size: 28px;
}

.logo:hover {
    color: var(--primary-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(37, 99, 235, 0.85) 50%, rgba(59, 130, 246, 0.85) 100%),
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.benefit-item i {
    font-size: 24px;
    color: var(--accent-color);
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Form Section */
.form-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.form-header p {
    font-size: 16px;
    opacity: 0.95;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 25px 0 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
}

.diagnostic-form {
    padding: 40px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.form-step h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.step-description {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Window Types Grid */
.window-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.window-type-card {
    cursor: pointer;
    position: relative;
}

.window-type-card .window-checkbox {
    position: absolute;
    opacity: 0;
}

.window-type-card .card-content {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.window-type-card .card-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.window-type-card .window-checkbox:checked + .card-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.window-type-card .card-content i {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.window-type-card .card-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.window-type-card .card-content p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.window-type-card .features {
    list-style: none;
    text-align: left;
    margin: 15px 0;
    flex-grow: 1;
}

.window-type-card .features li {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-type-card .features i {
    font-size: 12px;
    color: var(--success);
}

/* Property Types */
.property-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.property-card {
    cursor: pointer;
    position: relative;
}

.property-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.property-card .card-content {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
}

.property-card .card-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.property-card input[type="radio"]:checked + .card-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.property-card .card-content i {
    font-size: 52px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.property-card .card-content h4 {
    font-size: 20px;
    color: var(--dark-color);
}

/* Input Groups */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.input-group label i {
    color: var(--primary-color);
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.trust-item i {
    color: var(--success);
    font-size: 20px;
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--white);
}

.why-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
}

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

.why-card {
    padding: 30px;
    border-radius: 16px;
    background: var(--white);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-wrapper i {
    font-size: 32px;
    color: var(--white);
}

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

.why-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.process-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark-color);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--border-color));
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.step-content p {
    color: #6b7280;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

/* Aides Section */
.aides-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.aides-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 50px;
}

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

.aide-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.aide-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.aide-icon i {
    font-size: 32px;
    color: var(--white);
}

.aide-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.aide-montant {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 20px;
}

.aide-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
}

.aide-card ul li {
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.aide-cta {
    text-align: center;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.aide-cta p {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.aide-cta .btn {
    margin-top: 20px;
}

.faq-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
}

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

.faq-item {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--dark-color);
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section p strong {
    color: var(--white);
    font-weight: 600;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 15px;
}

.footer-bottom a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.85;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    color: #9ca3af;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

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

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.modal-icon i {
    font-size: 40px;
    color: var(--white);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.modal-content p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-content .btn {
    margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .site-header {
        padding: 10px 0;
    }

    .logo {
        font-size: 16px;
    }

    .logo i {
        font-size: 22px;
    }

    .main-nav {
        gap: 15px;
        font-size: 14px;
    }

    .main-nav a:not(.btn-nav) {
        display: none;
    }

    .btn-nav {
        padding: 8px 16px;
        font-size: 14px;
    }

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

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

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

    .window-types-grid {
        grid-template-columns: 1fr;
    }

    .property-types {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .aides-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .form-section {
        padding: 40px 0;
    }

    .diagnostic-form {
        padding: 20px;
    }

    .form-header {
        padding: 30px 20px;
    }

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

    .why-section,
    .process-section,
    .faq-section {
        padding: 50px 0;
    }

    .modal-content {
        padding: 30px 20px;
    }
}