/* ============================================================
   FAQ PAGE - faq.css
   Thème vert Conciergerie Nantaise
   Remplace le bloc <style> inline de faq/index.php
   ============================================================ */

/* Hero FAQ */
.hero-faq {
    background: linear-gradient(135deg, #014d3c 0%, #016a53 50%, #01856a 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}
.hero-faq h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.hero-faq .subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}
.hero-faq-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    opacity: 0.85;
}
.hero-faq-breadcrumb a {
    color: white;
    text-decoration: none;
}
.hero-faq-breadcrumb a:hover {
    text-decoration: underline;
}

/* FAQ Content */
.faq-content {
    padding: 60px 20px;
    background: #f8f9fa;
}
.faq-category {
    max-width: 900px;
    margin: 0 auto 60px;
}
.faq-category h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #016a53;
    font-family: 'Montserrat', sans-serif;
}
.faq-category h2 i {
    color: #016a53;
    margin-right: 12px;
}

.category-intro {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 25px;
    font-style: italic;
}

.service-faq-title {
    font-size: 22px;
    color: #495057;
    margin: 30px 0 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}
.service-faq-title i {
    color: #016a53;
    margin-right: 8px;
    font-size: 18px;
}

/* FAQ Items */
.faq-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
    border-color: #016a53;
    box-shadow: 0 4px 16px rgba(1, 106, 83, 0.12);
}

.faq-question-btn {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s ease;
}
.faq-question-btn:hover {
    background: #f8f9fa;
}

.faq-question-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.faq-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    background: linear-gradient(135deg, #014d3c 0%, #016a53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-icon i {
    color: white;
    font-size: 14px;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    color: #495057;
    line-height: 1.8;
    font-size: 15px;
}
.faq-item.active .faq-answer {
    max-height: 3000px;
    padding: 0 25px 25px;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
}
.faq-answer ul.check-list {
    list-style: none;
    padding-left: 0;
}
.faq-answer ul.check-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.faq-answer ul.check-list i {
    color: #28a745;
    margin-top: 3px;
    flex-shrink: 0;
}

/* CTA Link inside answer */
.faq-cta-link {
    margin-top: 15px;
}
.faq-cta-link .btn-link {
    color: #016a53;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.faq-cta-link .btn-link:hover {
    color: #014d3c;
    text-decoration: underline;
}

/* Comparison table inside FAQ */
.comparison-table-faq {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}
.comparison-table-faq th {
    background: #016a53;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}
.comparison-table-faq td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}
.comparison-table-faq tr:last-child td {
    border-bottom: none;
}

/* Economy box */
.economy-box {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
}
.economy-box.positive {
    background: #f0fff4;
    border-left-color: #28a745;
}
.economy-box p { margin: 5px 0; }
.economy-box .savings {
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* FAQ Bottom CTA */
.faq-cta {
    background: linear-gradient(135deg, #014d3c 0%, #016a53 50%, #01856a 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.faq-cta h3 {
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}
.faq-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}
.faq-cta .btn {
    margin: 0 10px 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
.faq-cta .btn-primary {
    background: white;
    color: #016a53;
}
.faq-cta .btn-primary:hover {
    background: #e8f5f0;
    color: #014d3c;
}
.faq-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    color: white;
}
.faq-cta .btn-secondary:hover {
    background: white;
    color: #016a53;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-faq h1 {
        font-size: 32px;
    }
    .hero-faq .subtitle {
        font-size: 17px;
    }
    .faq-category h2 {
        font-size: 24px;
    }
    .faq-question-text {
        font-size: 16px;
    }
    .faq-cta {
        padding: 35px 20px;
    }
    .faq-cta h3 {
        font-size: 24px;
    }
    .faq-cta .btn {
        display: block;
        margin: 0 0 12px;
    }
}
