/* GestRestoSco - Styles de l'espace client */

/* FAQ */
.faq-header {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    padding: 40px 0 30px;
    margin: -1.5rem -1.5rem 2rem;
}

.faq-search-box {
    background: white;
    border-radius: 25px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.faq-search-box input {
    border: none;
    outline: none;
    font-size: .95em;
    flex: 1;
    background: transparent;
}

.faq-category {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-category-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: .9rem 1.2rem;
}

.cat-icon,
.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: .9rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: background .15s;
    user-select: none;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question.open {
    background: #eff6ff;
    color: #1d4ed8;
}

.faq-answer {
    display: none;
    padding: 0 1.2rem 1rem;
    font-size: .86rem;
    color: #374151;
    line-height: 1.65;
}

.faq-answer.show {
    display: block;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 1.2rem;
    margin: .4rem 0;
}

.faq-answer li {
    margin-bottom: 4px;
}

.toggle-icon {
    margin-left: auto;
    color: #9ca3af;
    transition: transform .25s;
    font-size: .8em;
    flex-shrink: 0;
}

.faq-question.open .toggle-icon {
    transform: rotate(180deg);
    color: #1d4ed8;
}

.badge-prio {
    padding: 2px 7px;
    border-radius: 20px;
    font-size: .65em;
    font-weight: 700;
    flex-shrink: 0;
}

.prio-high {
    background: #dc2626;
    color: white;
}

.prio-med {
    background: #f59e0b;
    color: #1e293b;
}

.prio-info {
    background: #0891b2;
    color: white;
}

.tip-inline {
    background: #ecfdf5;
    border-radius: 6px;
    padding: .6rem .9rem;
    margin-top: .7rem;
    font-size: .88em;
    color: #065f46;
}

.warn-inline {
    background: #fffbeb;
    border-radius: 6px;
    padding: .6rem .9rem;
    margin-top: .7rem;
    font-size: .88em;
    color: #92400e;
}

.info-inline {
    background: #e0f2fe;
    border-radius: 6px;
    padding: .6rem .9rem;
    margin-top: .7rem;
    font-size: .88em;
    color: #0c4a6e;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    display: none;
}

.anchor-target {
    scroll-margin-top: 80px;
}

/* Guide utilisateur */
.guide-header {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    color: white;
    padding: 40px 0 30px;
    margin: -1.5rem -1.5rem 2rem;
}

.toc-sticky {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.module-card {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    margin-bottom: 1.5rem;
}

.module-card .card-header {
    border-radius: 10px 10px 0 0 !important;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: .9rem 1.2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .75rem;
    margin-top: .75rem;
}

.feature-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: .85rem 1rem;
    border-left: 4px solid #e5e7eb;
}

.feature-item.blue {
    border-left-color: #3b82f6;
}

.feature-item.green {
    border-left-color: #10b981;
}

.feature-item.orange {
    border-left-color: #f59e0b;
}

.feature-item.purple {
    border-left-color: #8b5cf6;
}

.feature-item.teal {
    border-left-color: #06b6d4;
}

.feature-item.red {
    border-left-color: #ef4444;
}

.feature-item h6 {
    font-size: .83rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.feature-item ul {
    margin: 0;
    padding-left: 1rem;
    font-size: .8rem;
    color: #4b5563;
}

.feature-item ul li {
    margin-bottom: 2px;
}

.tip-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: .85rem 1.1rem;
    margin-top: .85rem;
    font-size: .85rem;
    color: #065f46;
}

.warn-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: .85rem 1.1rem;
    margin-top: .85rem;
    font-size: .85rem;
    color: #92400e;
}

.toc-link {
    display: block;
    font-size: .82rem;
    padding: .3rem .75rem;
    border-radius: 6px;
    color: #4b5563;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.toc-link:hover,
.toc-link.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.haccp-table th {
    background: #f1f5f9;
    font-size: .82rem;
}

.haccp-table td {
    font-size: .82rem;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: .85rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}