/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2E7D32;
    --light-green: #66BB6A;
    --dark-blue: #0D3B66;
    --background: #F5F7F6;
    --accent-yellow: #FFC857;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-right: auto;
    padding-right: 1rem;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo:visited {
    color: inherit;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text-top {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    letter-spacing: 0;
}

.logo-text-bottom {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    letter-spacing: 0;
    text-transform: none;
}

.logo:hover .logo-text-top,
.logo:hover .logo-text-bottom {
    color: var(--primary-green);
}

.logo-icon {
    width: 60px;
    height: 60px;
    position: relative;
    flex-shrink: 0;
}

.logo-icon svg,
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
}

/* Dropdown menu */
.nav-menu li {
    position: relative;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.nav-dropdown.active > a::after {
    transform: rotate(180deg);
}

.nav-dropdown.active > a,
.nav-dropdown.active > a:hover {
    color: var(--primary-green);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 5px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1001;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--background);
    color: var(--primary-green);
}

.btn-offerte {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    padding: 0.6rem 1.4rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.4;
    display: inline-block;
}

.btn-offerte:hover {
    background-color: #ffb020;
    color: var(--text-dark);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #ffb020;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

.btn-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--dark-blue);
}

/* Why Section */
.why-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.why-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

.why-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background);
    border-radius: 10px;
    transition: transform 0.3s;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.why-item i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.why-item h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--light-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Form Styles */
.form-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.form-section h2 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.success-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.4s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-modal-icon i {
    font-size: 3rem;
    color: var(--primary-green);
}

.success-modal h3 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-modal p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-modal-btn {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
}

.success-modal-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* FAQ Styles */
.faq-item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--primary-green);
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--dark-blue);
}

.faq-question h3 {
    margin: 0;
    color: var(--white);
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    transition: transform 0.3s;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Scan Styles */
.scan-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.scan-step {
    display: none;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.scan-step.active {
    display: block;
}

.scan-step h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.scan-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-green);
    transition: width 0.3s;
}

.radio-group,
.checkbox-group-scan {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-item,
.checkbox-item-scan {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.radio-item:hover,
.checkbox-item-scan:hover {
    background-color: #e8e8e8;
}

.radio-item input[type="radio"],
.checkbox-item-scan input[type="checkbox"] {
    width: auto;
}

.scan-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Results Page */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.result-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.result-card.priority-1 {
    border-left: 5px solid var(--primary-green);
}

.result-card.priority-2 {
    border-left: 5px solid var(--light-green);
}

.result-card.priority-3 {
    border-left: 5px solid var(--accent-yellow);
}

.result-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.result-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.result-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-text-top {
        font-size: 1.1rem;
    }

    .logo-text-bottom {
        font-size: 0.75rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-text-top {
        font-size: 1.1rem;
    }

    .logo-text-bottom {
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    /* Mobile dropdown */
    .nav-dropdown > a {
        padding: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--background);
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .dropdown-menu a {
        padding-left: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .why-content,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .scan-buttons {
        flex-direction: column;
    }

    .scan-buttons .btn {
        width: 100%;
    }

    .result-buttons {
        flex-direction: column;
    }

    .result-buttons .btn {
        width: 100%;
    }
}
