:root {
    --dp-slate-950: #020617;
    --dp-slate-900: #0f172a;
    --dp-slate-800: #1e293b;
}

body {
    color: #1e293b;
}

/* Icon sizing (replaces Tailwind h-*/
w-* utilities used inline on SVGs) */
.icon-3 {
    width: 0.75rem;
    height: 0.75rem;
}

.icon-4 {
    width: 1rem;
    height: 1rem;
}

.icon-5 {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: #eff6ff;
    color: #2563eb;
    flex: none;
}

/* Navbar */
.dp-navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

.dp-logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    overflow: hidden;
    flex: none;
}

.dp-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero sections */
.dp-hero-dark {
    background: linear-gradient(
        to bottom,
        var(--dp-slate-900),
        var(--dp-slate-800),
        var(--dp-slate-900)
    );
    color: #fff;
}

.dp-hero-blue {
    background: linear-gradient(to bottom, #1d4ed8, #2563eb, #1d4ed8);
    color: #fff;
}

.dp-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Install command box */
.dp-install-box {
    background-color: #000c;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dp-install-box code {
    color: #dbeafe;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    overflow-x: auto;
}

.dp-copy-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    border-radius: 0.375rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dp-copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dp-copy-btn [data-icon="check"] {
    display: none;
}

.dp-copy-btn.is-copied [data-icon="copy"] {
    display: none;
}

.dp-copy-btn.is-copied [data-icon="check"] {
    display: inline-flex;
}

.dp-terminal {
    background-color: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.dp-terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    display: inline-block;
}

/* Cards */
.dp-feature-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.dp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.dp-product-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border-width: 2px;
    border-style: solid;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.dp-carousel-viewport {
    overflow: hidden;
    padding: 0.5rem 0.5rem 1.5rem;
}

.dp-carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.dp-carousel-item {
    width: min(22rem, 85vw);
    flex: 0 0 auto;
}

.dp-carousel-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
}

.dp-carousel-arrow:hover {
    background: #f1f5f9;
}

.dp-carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dp-carousel-dot {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: #cbd5e1;
}

.dp-carousel-dot.is-active {
    background: #2563eb;
}

.dp-pricing-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    position: relative;
}

.dp-pricing-card.is-highlighted {
    border: 2px solid #2563eb;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.dp-pricing-card:not(.is-highlighted) {
    border: 1px solid #e2e8f0;
}

.dp-pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    background-color: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.dp-feature-item {
    display: flex;
    gap: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
}

.dp-check {
    color: #2563eb;
    flex: none;
}

/* Radio "card" inputs (product / payment method pickers) */
.dp-radio-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #334155;
}

.dp-radio-card.text-center {
    flex-direction: column;
    text-align: center;
}

.dp-radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dp-radio-card:has(input:checked) {
    border-color: #2563eb;
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Changelog timeline */
.dp-timeline {
    list-style: none;
    padding-left: 2rem;
    border-left: 1px solid #e2e8f0;
    margin: 0;
}

.dp-timeline li {
    position: relative;
    padding-bottom: 2.5rem;
}

.dp-timeline li:last-child {
    padding-bottom: 0;
}

.dp-timeline-dot {
    position: absolute;
    left: -2.15rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background-color: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dbeafe;
}

/* Thème sombre (Bootstrap 5.3 data-bs-theme) : les couleurs claires codées
   en dur plus haut sont reprises via les variables Bootstrap. */
[data-bs-theme="dark"] body { color: var(--bs-body-color); }
[data-bs-theme="dark"] .bg-white { background-color: var(--bs-body-bg) !important; }
[data-bs-theme="dark"] .bg-light { background-color: var(--bs-tertiary-bg) !important; }
[data-bs-theme="dark"] .text-dark { color: var(--bs-emphasis-color) !important; }
[data-bs-theme="dark"] .dp-navbar { background-color: rgba(15, 23, 42, 0.9); border-bottom-color: var(--bs-border-color); }
[data-bs-theme="dark"] .dp-feature-card,
[data-bs-theme="dark"] .dp-product-card,
[data-bs-theme="dark"] .dp-pricing-card,
[data-bs-theme="dark"] .dp-feature-item { background-color: var(--bs-secondary-bg); border-color: var(--bs-border-color); }
[data-bs-theme="dark"] .dp-pricing-card.is-highlighted { border-color: #3b82f6; }
[data-bs-theme="dark"] .icon-box { background-color: rgba(59, 130, 246, 0.15); color: #93c5fd; }
[data-bs-theme="dark"] .dp-timeline { border-left-color: var(--bs-border-color); }
[data-bs-theme="dark"] .dp-timeline-dot { border-color: var(--bs-body-bg); box-shadow: 0 0 0 2px #1e3a8a; }
[data-bs-theme="dark"] .btn-dark { background-color: #e2e8f0; border-color: #e2e8f0; color: #0f172a; }
[data-bs-theme="dark"] .btn-outline-dark { color: #e2e8f0; border-color: #94a3b8; }
[data-bs-theme="dark"] .btn-outline-dark:hover { background-color: #e2e8f0; color: #0f172a; }
[data-bs-theme="dark"] .navbar-brand { color: var(--bs-emphasis-color) !important; }

/* Maquette du panel (hero de l'accueil) */
.dp-mock { background: rgba(2, 6, 23, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; overflow: hidden; text-align: left; }
.dp-mock-bar { display: flex; gap: 0.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dp-mock-body { display: flex; min-height: 11rem; }
.dp-mock-side { width: 28%; padding: 1rem; border-right: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 0.5rem; align-content: start; }
.dp-mock-side span, .dp-mock-line { display: block; height: 0.55rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.dp-mock-side span:first-child { background: #3b82f6; }
.dp-mock-main { flex: 1; padding: 1rem; display: grid; gap: 0.75rem; align-content: start; }
.dp-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.dp-mock-card { border-radius: 0.5rem; background: rgba(255, 255, 255, 0.07); padding: 0.6rem; font-size: 0.7rem; color: #cbd5e1; }
.dp-mock-card b { display: block; font-size: 1.1rem; color: #fff; }
.dp-mock-term { font-family: ui-monospace, monospace; font-size: 0.75rem; color: #86efac; padding: 0.75rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.dp-mock-term .cursor { display: inline-block; width: 0.5rem; height: 0.9rem; background: #86efac; vertical-align: middle; animation: dp-blink 1s steps(2) infinite; }
@keyframes dp-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dp-mock-term .cursor { animation: none; } }

/* Changelog : filtres et badges de type */
.dp-filter { border: 1px solid var(--bs-border-color); background: transparent; color: var(--bs-secondary-color); border-radius: 999px; padding: 0.25rem 0.85rem; font-size: 0.8rem; }
.dp-filter.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* Tableau comparatif Gratuit / Premium */
.dp-compare th, .dp-compare td { vertical-align: middle; }
.dp-compare .yes { color: #16a34a; font-weight: 700; }
.dp-compare .no { color: var(--bs-secondary-color); }

/* Pastilles « subtiles » (absentes de Bootstrap : text-bg-*-subtle). */
.text-bg-primary-subtle { background-color: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.text-bg-secondary-subtle { background-color: var(--bs-secondary-bg-subtle); color: var(--bs-secondary-text-emphasis); }
.text-bg-success-subtle { background-color: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.text-bg-danger-subtle { background-color: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.text-bg-warning-subtle { background-color: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.text-bg-info-subtle { background-color: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }


/* Centre d'aide */
.dp-help-hero { background: linear-gradient(180deg, #1d4ed8, #2563eb); color: #fff; padding: 2.25rem 0; }
.dp-help-hero-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.dp-help-search { display: flex; align-items: center; gap: .75rem; background: #fff; color: #64748b; padding: .35rem .35rem .35rem 1rem; border-radius: .25rem; }
.dp-help-search input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; padding: .6rem 0; color: #0f172a; background: transparent; min-width: 0; }
.dp-help-search button { border: 0; background: #2563eb; color: #fff; font-weight: 600; padding: .6rem 1.25rem; border-radius: .25rem; }
.dp-help-search button:hover { background: #1d4ed8; }
.dp-help-suggest { margin: 1rem 0 0; font-size: .9rem; }
.dp-help-suggest a { color: #fff; margin-left: .75rem; text-decoration: underline; }

.dp-help-page { background: #f3f5f9; padding: 2rem 0 4rem; }
.dp-help-crumbs { font-size: .9rem; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; color: #94a3b8; }
.dp-help-crumbs a { color: #1e293b; text-decoration: underline; }
.dp-help-title { font-size: 2.1rem; font-weight: 800; color: #1e293b; margin-bottom: 1.5rem; }
.dp-help-h2 { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin-bottom: 1rem; }
.dp-help-lead { color: #64748b; font-size: 1.1rem; }

.dp-help-card { display: flex; align-items: center; gap: 1.25rem; height: 100%; background: #fff; border-radius: .9rem; padding: 1.5rem; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); transition: box-shadow .15s, transform .15s; }
.dp-help-card:hover { box-shadow: 0 8px 20px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.dp-help-card-photo { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.dp-help-card-fallback { display: inline-flex; align-items: center; justify-content: center; color: #2563eb; }
.dp-help-card-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.dp-help-card-title { font-size: 1.2rem; font-weight: 800; color: #1e293b; }
.dp-help-card-text { color: #475569; font-size: .92rem; }
.dp-help-card-count { color: #94a3b8; font-size: .8rem; }

.dp-help-panel { background: #fff; border-radius: .9rem; padding: 1.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.dp-help-result { display: block; text-decoration: none; padding: .85rem 0; border-bottom: 1px solid #e2e8f0; }
.dp-help-panel .dp-help-result:last-child { border-bottom: 0; }
.dp-help-result-title { display: block; font-weight: 700; color: #2563eb; }
.dp-help-result-text { display: block; color: #475569; font-size: .92rem; }
.dp-help-result-trail { display: block; color: #94a3b8; font-size: .8rem; }

.dp-help-side-title { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin-bottom: 1rem; }
.dp-help-side a { display: block; padding: .5rem 0; font-size: .9rem; color: #1e293b; text-decoration: none; }
.dp-help-side a:hover { color: #2563eb; }
.dp-help-side a.is-active { color: #2563eb; font-weight: 700; }

.dp-help-article { padding: 1.75rem; }
.dp-help-content { line-height: 1.7; color: #1e293b; overflow-wrap: anywhere; }
.dp-help-content h2, .dp-help-content h3 { font-weight: 700; margin: 1.75rem 0 .75rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.dp-help-content h2:first-child, .dp-help-content h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.dp-help-content a { color: #2563eb; }
.dp-help-content .dp-anchor { opacity: 0; margin-left: .4rem; text-decoration: none; color: #94a3b8; }
.dp-help-content h2:hover .dp-anchor, .dp-help-content h3:hover .dp-anchor { opacity: 1; }
.dp-help-content img { max-width: 100%; height: auto; border: 1px solid #e2e8f0; border-radius: .5rem; }
.dp-help-content pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: .5rem; overflow-x: auto; }
.dp-help-content :not(pre) > code { background: #f1f5f9; padding: .1rem .35rem; border-radius: .25rem; font-size: .875em; }
.dp-help-content table { width: 100%; margin-bottom: 1rem; }
.dp-help-content th, .dp-help-content td { border: 1px solid #e2e8f0; padding: .4rem .6rem; }
.dp-help-content blockquote { border-left: 3px solid #2563eb; padding-left: 1rem; color: #475569; }
.dp-help-toc { list-style: none; padding: .75rem 1rem; margin: 0 0 1.5rem; background: #f8fafc; border-radius: .5rem; }
.dp-help-toc ul { list-style: none; padding-left: 1.25rem; }
.dp-help-toc li { margin: .15rem 0; }
.dp-help-tags { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dp-help-tags a { background: #eff6ff; color: #1d4ed8; padding: .15rem .65rem; border-radius: 999px; font-size: .8rem; text-decoration: none; }
.dp-help-related { font-size: .95rem; padding-left: 1.25rem; }
.dp-help-related a { color: #1e293b; }
.dp-help-related a:hover { color: #2563eb; }
@media (max-width: 575px) { .dp-help-search button { display: none; } .dp-help-hero-title { font-size: 1.6rem; } }
