/**
 * Guides Esthetic Academy — Styles spécifiques
 * Mobile-first, compatible Bootstrap 4 theme
 */

/* ─── SVG containers ─── */
.guides-svg-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.guides-svg-container svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.guides-svg-figure {
    margin: 1.5rem 0;
}

/* ─── Table responsive ─── */
.guides-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.guides-table-wrapper table {
    min-width: 500px;
}

/* ─── TOC (desktop) ─── */
.guides-toc {
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}

.guides-toc-list {
    margin: 0;
    padding: 0;
}

.guides-toc-item {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.guides-toc-item:last-child {
    border-bottom: none;
}

.guides-toc-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.guides-toc-link:hover,
.guides-toc-link.active {
    color: #1f1f1f;
    text-decoration: none;
}

/* ─── FAQ accordion ─── */
.guides-faq .card {
    border: 1px solid #e9ecef;
}

.guides-faq .btn-link {
    color: #1f1f1f;
    font-weight: 600;
    text-decoration: none;
    white-space: normal;
    text-align: left;
}

.guides-faq .btn-link:hover {
    text-decoration: none;
    color: #333;
}

.guides-faq .btn-link.collapsed {
    font-weight: 500;
}

/* ─── Sources ─── */
.guides-sources-list {
    padding-left: 1.2rem;
}

.guides-sources-list li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.guides-sources-list cite {
    font-style: normal;
}

/* ─── Internal links cards ─── */
.guides-link-card {
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #e9ecef;
}

.guides-link-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(30, 34, 40, 0.08);
    transform: translateY(-2px);
}

/* ─── CTA card ─── */
.guides-cta {
    border: none;
}

/* ─── Glossary auto-links ─── */
.guides-glossary-link {
    text-decoration: none;
    border-bottom: 1px dashed #1f1f1f;
    color: inherit;
}

.guides-glossary-link:hover {
    color: #1f1f1f;
    border-bottom-style: solid;
    text-decoration: none;
}

/* ─── Breadcrumb ─── */
.guides-breadcrumb {
    background: #f8f9fa;
}

/* ─── Section spacing ─── */
.guides-section h2 {
    scroll-margin-top: 100px;
}

/* ─── Text content ─── */
.guides-text {
    line-height: 1.8;
}

.guides-text p {
    margin-bottom: 1rem;
}

/* ─── Mobile-specific ─── */
@media (max-width: 991.98px) {
    .guides-sidebar {
        margin-top: 2rem;
    }

    .guides-article,
    .guides-article p,
    .guides-article li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .guides-toc-mobile .dropdown-item,
    .guides-faq .btn-link,
    .guides-link-card a,
    .guides-sources-list a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ─── Print styles ─── */
@media print {
    .guides-sidebar,
    .guides-toc-mobile,
    .guides-cta,
    .guides-breadcrumb {
        display: none;
    }
}
