/* ===================================
   Devis-Wallonie.be - Stylesheet
   Mobile-first responsive design
   =================================== */

/* Variables CSS */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #2C3E50;
    --success: #27AE60;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --bg: #FFFFFF;
    --bg-light: #F8F9FA;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    padding: 12px 0;
}

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

.logo img {
    height: 35px;
    width: auto;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.phone-link svg {
    color: var(--primary);
}

.phone-link small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .phone-link {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo img {
        height: 45px;
    }
    
    .btn-header {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge svg {
    color: #FFD700;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: white;
}

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

.hero-title .highlight-secondary {
    background: linear-gradient(90deg, var(--primary), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
    color: white;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 18px 40px;
    margin-bottom: 24px;
}

.hero-trust {
    margin-top: 24px;
}

.trust-stars {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.hero-trust p {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease;
}

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

.trust-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.trust-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.price-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.price-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}

.price-icon {
    font-size: 3rem;
    line-height: 1;
}

.price-card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.price-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.price-card-body {
    padding: 30px;
}

.price-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    flex-wrap: wrap;
}

.price-before, .price-after {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-comparison .label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-comparison .amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-after .amount.highlight {
    color: var(--success);
    font-size: 1.8rem;
}

.price-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.price-includes {
    list-style: none;
    margin-bottom: 30px;
}

.price-includes li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.price-includes li:last-child {
    border-bottom: none;
}

.btn-price {
    width: 100%;
}

@media (min-width: 768px) {
    .price-comparison {
        flex-wrap: nowrap;
    }
}

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

.form-intro {
    text-align: center;
    margin-bottom: 50px;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px var(--shadow);
    padding: 40px 30px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.progress-step.active span {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

@media (min-width: 768px) {
    .progress-step span {
        font-size: 0.9rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
    }
}

/* Form Steps */
.form-step {
    display: none;
}

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

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

.form-step h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-checkbox {
    margin-bottom: 24px;
}

.form-checkbox input {
    margin-right: 10px;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.form-buttons button {
    flex: 1;
}

.btn-next, .btn-prev, .btn-submit {
    width: 100%;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
}

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

.testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 1rem;
    color: var(--secondary);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    color: var(--secondary);
    transition: background 0.3s ease;
    font-family: var(--font-main);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    line-height: 1.7;
    color: var(--text);
}

.faq-answer strong {
    color: var(--secondary);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.btn-cta {
    background: white;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 18px 40px;
}

.btn-cta:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.cta-content small {
    display: block;
    margin-top: 20px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.7;
    opacity: 0.9;
    font-size: 0.95rem;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

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

.footer-trust {
    margin-top: 16px;
}

.footer-trust span {
    color: #FFD700;
    font-size: 1.2rem;
}

.footer-phone {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 8px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 8px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-legal {
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header, .cta-section, .form-section {
        display: none;
    }
}
