/* ================================
   VARIABLES ET RESET
   ================================ */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* ================================
   NAVIGATION
   ================================ */

nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s 0.2s backwards;
}

a.cta-button,
a.cta-button:link,
a.cta-button:visited {
    display: inline-block;
    background: #ffffff !important;
    color: #2563eb !important;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.8s 0.4s backwards;
}

a.cta-button:hover,
a.cta-button:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: #ffffff !important;
    color: #2563eb !important;
}

/* ================================
   SECTIONS COMMUNES
   ================================ */

section {
    padding: 5rem 2rem;
}

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

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

/* ================================
   GRILLES ET CARDS
   ================================ */

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* ================================
   PROCESS SECTION
   ================================ */

.process-card {
    border-left: 4px solid var(--primary);
}

.process-number {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ================================
   PRICING SECTION
   ================================ */

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pricing-card {
    border-top: 5px solid #64748b;
    position: relative;
}

.pricing-card.popular {
    border-top-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-header {
    text-align: center;
}

.pricing-header h3 {
    color: #64748b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pricing-card.popular .pricing-header h3 {
    color: var(--primary);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--dark);
    margin: 1rem 0;
}

.pricing-subtitle {
    color: var(--secondary);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-btn {
    display: block;
    margin-top: 2rem;
    padding: 1rem;
    background: #64748b;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.pricing-btn:hover {
    background: var(--secondary);
}

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

.pricing-btn.primary:hover {
    background: var(--primary-dark);
}

.referral-box {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    border: 2px dashed #f59e0b;
}

.referral-box h3 {
    color: #92400e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.referral-box p {
    font-size: 1.3rem;
    color: #78350f;
    font-weight: bold;
}

.highlight {
    font-size: 1.5rem;
    color: #ef4444;
}

.referral-example {
    color: #92400e;
    margin-top: 1rem;
    font-size: 1rem !important;
    font-weight: normal !important;
}

/* ================================
   FORMULAIRES
   ================================ */

.quote-container {
    max-width: 700px;
    margin: 0 auto;
}

.quote-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.promo-banner h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: white;
}

.promo-banner p {
    margin: 0;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

input, textarea, select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

textarea {
    resize: vertical;
    min-height: 150px;
}

small {
    color: var(--secondary);
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-right: 0.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    background: var(--secondary);
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--secondary);
    font-size: 0.95rem;
}

/* ================================
   WHY QUOTE BOX
   ================================ */

.why-quote {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.why-quote h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.why-quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.why-quote-grid p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin: 0.3rem 0 0 0;
}

/* ================================
   FAQ SECTION
   ================================ */

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

.faq-question {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
    background: var(--light);
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    background: var(--light);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.contact-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

/* ================================
   FOOTER
   ================================ */

footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* ================================
   ANIMATIONS
   ================================ */

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

/* ================================
   PAGE DE CONFIRMATION
   ================================ */

.confirmation-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light) 0%, #e0f2fe 100%);
    padding: 2rem;
}

.confirmation-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-box h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.confirmation-box p {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.confirmation-details {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.confirmation-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.confirmation-details ul {
    list-style: none;
}

.confirmation-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

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

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

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: right 0.3s;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .burger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .confirmation-box {
        padding: 2rem;
    }
    
    .confirmation-box h1 {
        font-size: 2rem;
    }
}