/* Guides d'utilisation (Views/Guides) */

.guide-btn {
    display: inline-block;
    background: #b0004f;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
}

    .guide-btn:hover,
    .guide-btn:focus {
        background: #8f003f;
        color: #fff;
        text-decoration: none;
    }

.guide-cards {
    margin-top: 2em;
}

.guide-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #b0004f;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

    .guide-card h3 {
        font-size: 1.4em;
        margin: 12px 0;
    }

        .guide-card h3 a {
            color: #212121;
        }

    .guide-card p {
        flex: 1 0 auto;
    }

    .guide-card .guide-btn {
        align-self: flex-start;
    }

.guide-card-icon {
    font-size: 2.2em;
    color: #b0004f;
}

.guide-meta {
    color: #6b7280;
    font-size: 0.9em;
}

    .guide-meta span + span {
        margin-left: 1.5em;
    }

.guide-breadcrumb {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 1.5em;
}

.guide-toc {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px 16px 16px 8px;
    margin-bottom: 2em;
}

    .guide-toc h2 {
        font-size: 1.1em;
        margin: 0 0 10px 12px;
        color: #b0004f;
    }

    .guide-toc ol {
        padding-left: 24px;
        margin: 0;
    }

        .guide-toc ol ol {
            list-style: lower-alpha;
            font-size: 0.92em;
        }

    .guide-toc li {
        margin: 4px 0;
    }

    .guide-toc a {
        color: #374151;
    }

        .guide-toc a:hover,
        .guide-toc a:focus,
        .guide-toc a.active {
            color: #b0004f;
        }

.guide-lead {
    font-size: 1.15em;
    line-height: 1.6;
}

.guide-actions > * {
    margin-right: 1em;
}

.guide-section {
    scroll-margin-top: 20px;
}

.guide-content .guide-level-2 {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5em;
    margin-top: 2em;
}

.guide-content h2 {
    font-size: 1.8em;
    color: #212121;
    margin-bottom: 0.8em;
}

    .guide-content h2 .fa {
        color: #b0004f;
        margin-right: 6px;
    }

.guide-content h3 {
    font-size: 1.35em;
    color: #b0004f;
    margin: 1.6em 0 0.6em;
}

.guide-content h4 {
    font-size: 1.1em;
    margin: 1.2em 0 0.5em;
}

.guide-content p,
.guide-content li {
    line-height: 1.7;
}

.guide-content code {
    color: #8f003f;
    background: #f9f2f4;
    white-space: normal;
    word-break: break-word;
}

.guide-section-summary {
    color: #4b5563;
    font-style: italic;
}

.guide-steps {
    counter-reset: guide-step;
    list-style: none;
    padding-left: 0;
}

    .guide-steps > li {
        counter-increment: guide-step;
        position: relative;
        padding-left: 44px;
        margin-bottom: 12px;
    }

        .guide-steps > li::before {
            content: counter(guide-step);
            position: absolute;
            left: 0;
            top: 0;
            width: 30px;
            height: 30px;
            line-height: 30px;
            border-radius: 50%;
            background: #b0004f;
            color: #fff;
            text-align: center;
            font-weight: 600;
        }

.guide-callout {
    border-left: 4px solid;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 1.2em 0;
}

    .guide-callout p:last-child,
    .guide-callout ul:last-child {
        margin-bottom: 0;
    }

.guide-callout-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.guide-callout-note {
    background: #eff6ff;
    border-color: #2563eb;
}

.guide-callout-tip {
    background: #f0fdf4;
    border-color: #16a34a;
}

.guide-callout-warning {
    background: #fffbeb;
    border-color: #d97706;
}

.guide-table caption {
    font-weight: 600;
    color: #212121;
}

.guide-figure {
    margin: 1.5em 0;
    text-align: center;
}

    .guide-figure img {
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        margin: 0 auto;
    }

    .guide-figure figcaption {
        color: #6b7280;
        font-size: 0.9em;
        margin-top: 8px;
    }

.guide-back {
    margin-top: 3em;
    text-align: right;
}

@media (max-width: 991px) {
    .guide-toc {
        position: static;
        max-height: none;
    }
}

@media print {
    .header, footer, hr, .cookie-banner, .skip-link, .alert,
    .guide-toc-column, .guide-actions, .guide-breadcrumb, .guide-back, #toTop {
        display: none !important;
    }

    .guide-content {
        width: 100%;
    }

    .guide-section {
        break-inside: auto;
    }

    .guide-callout, .guide-figure, .guide-table tr {
        break-inside: avoid;
    }

    .guide-content a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
    }
}
