/* ============================================================
   Centre d'aide /help — styles spécifiques (charte yourtext.guru)
   Couleurs charte : #4517AD (vert/violet), #001f3f (bleu nuit),
   #b6e4d5 (menthe), #475668 (texte), #f1fafb (bleu clair)
   ============================================================ */
:root {
    --help-green: #4517AD;
    --help-green-dark: #37119a;
    --help-dark: #001f3f;
    --help-mint: #b6e4d5;
    --help-text: #475668;
    --help-bg: #f1fafb;
    --help-border: #e5e8eb;
}

.dtr-py-80 { padding-top: 80px; padding-bottom: 80px; }

/* ---- Hero ---- */
.dtr-help-hero__subtitle {
    color: var(--help-text);
    font-size: 18px;
    max-width: 640px;
    margin: 18px auto 0;
}
.dtr-help-hero__search { margin: 34px auto 0; }
.dtr-help-hero--compact .dtr-help-hero__subtitle { font-size: 16px; }
.dtr-help-hero--article { text-align: left; }
.dtr-help-article__h1 { color: var(--help-dark); margin: 14px 0 0; }

/* ---- Barre de recherche + autocomplétion ---- */
.dtr-help-search { position: relative; max-width: 640px; margin: 0 auto; }
.dtr-help-search__field {
    display: flex; align-items: stretch; background: #fff;
    border-radius: 12px; overflow: hidden; border: 1px solid var(--help-border);
    box-shadow: 0 8px 30px rgba(0, 31, 63, .10);
}
.dtr-help-search__field:focus-within { border-color: var(--help-green); }
.dtr-help-search__icon { align-self: center; margin-left: 18px; color: #9aa6b5; flex: none; }
/* Override the global theme input styling (it forces a 2px grey border / radius). */
.dtr-help-search .dtr-help-search__input {
    flex: 1; min-width: 0; padding: 16px 14px; font-size: 16px; height: auto;
    color: var(--help-dark); font-family: inherit; outline: 0;
    border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    margin: 0 !important; background: transparent !important;
    -webkit-appearance: none; appearance: none;
}
.dtr-help-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.dtr-help-search__btn {
    border: 0; background: var(--help-green); color: #fff; padding: 0 28px;
    font-weight: 600; cursor: pointer; font-family: inherit; font-size: 15px;
    transition: background .15s;
}
.dtr-help-search__btn:hover { background: var(--help-green-dark); }
.dtr-help-search__suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff;
    border-radius: 12px; border: 1px solid var(--help-border);
    box-shadow: 0 14px 44px rgba(0, 31, 63, .16); overflow: hidden; z-index: 60; text-align: left;
}
.dtr-help-suggest__item { display: block; padding: 12px 18px; border-bottom: 1px solid #f0f2f5; color: var(--help-dark); text-decoration: none; }
.dtr-help-suggest__item:last-child { border-bottom: 0; }
.dtr-help-suggest__item:hover, .dtr-help-suggest__item.is-active { background: var(--help-bg); }
.dtr-help-suggest__cat { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--help-green); font-weight: 600; margin-bottom: 2px; }
.dtr-help-suggest__title { display: block; font-weight: 600; }
.dtr-help-suggest__excerpt { display: block; font-size: 13px; color: #6b7888; margin-top: 2px; }
.dtr-help-suggest__empty { padding: 14px 18px; color: #6b7888; }

/* ---- Grille des catégories ---- */
.dtr-help-cats { margin-top: 6px; }
.dtr-help-cat-col { margin-bottom: 28px; }
.dtr-help-cat {
    display: flex; flex-direction: column; height: 100%; background: #fff;
    border-radius: 14px; padding: 28px 26px; text-decoration: none;
    border: 1px solid var(--help-border); transition: transform .15s, box-shadow .15s;
}
.dtr-help-cat:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 31, 63, .12); }
.dtr-help-cat__icon {
    width: 54px; height: 54px; border-radius: 14px; background: #f1ecff; color: var(--help-green);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.dtr-help-cat__icon svg { width: 26px; height: 26px; }
.dtr-help-cat__title { color: var(--help-dark); font-size: 20px; margin: 0 0 8px; }
.dtr-help-cat__desc { color: var(--help-text); font-size: 14px; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.dtr-help-cat__count { color: var(--help-green); font-weight: 600; font-size: 13px; }

/* ---- Articles populaires / listes ---- */
.dtr-help-popular { margin-top: 50px; }
.dtr-help-section-title { color: var(--help-dark); font-size: 26px; margin: 0 0 26px; }
.dtr-help-card {
    display: block; background: #fff; border-radius: 12px; padding: 22px 24px; text-decoration: none;
    border: 1px solid var(--help-border); transition: transform .15s, box-shadow .15s; margin-bottom: 18px; height: calc(100% - 18px);
}
.dtr-help-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 31, 63, .10); }
.dtr-help-card__title { color: var(--help-dark); font-size: 17px; line-height: 1.4; margin: 0 0 6px; }
.dtr-help-card__excerpt { color: var(--help-text); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.dtr-help-card__more { color: var(--help-green); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ---- Layout principal + sidebar ---- */
.dtr-help-layout { margin-top: 26px; }
.dtr-help-aside > * { margin-bottom: 26px; }
.dtr-help-aside__search .dtr-help-search { max-width: none; }
.dtr-help-sidebar { background: #fff; border-radius: 12px; padding: 20px 22px; border: 1px solid var(--help-border); }
.dtr-help-sidebar__title { color: var(--help-dark); font-size: 16px; margin: 0 0 14px; }
.dtr-help-sidebar__list { list-style: none; margin: 0; padding: 0; }
.dtr-help-sidebar__list li { margin: 0 0 4px; }
.dtr-help-sidebar__list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--help-text); text-decoration: none; font-size: 14px; transition: background .12s, color .12s; }
.dtr-help-sidebar__list a:hover { background: var(--help-bg); color: var(--help-green); }
.dtr-help-sidebar__list li.is-active a { background: #f1ecff; color: var(--help-green); font-weight: 600; }

/* ---- Fil d'Ariane ---- */
.dtr-help-breadcrumb { font-size: 13px; color: #7a8696; margin-bottom: 8px; }
.dtr-help-breadcrumb a { color: var(--help-green); text-decoration: none; }
.dtr-help-breadcrumb a:hover { text-decoration: underline; }
.dtr-help-breadcrumb__sep { margin: 0 8px; color: #b6bfc9; }
.dtr-help-breadcrumb__current { color: #7a8696; }

/* ---- Corps de l'article ---- */
.dtr-help-article__body { color: var(--help-text); font-size: 16px; line-height: 1.7; }
.dtr-help-article__body h2 { color: var(--help-dark); font-size: 24px; margin: 34px 0 14px; line-height: 1.3; }
.dtr-help-article__body h3 { color: var(--help-dark); font-size: 20px; margin: 28px 0 12px; }
.dtr-help-article__body h4 { color: var(--help-dark); font-size: 17px; margin: 22px 0 10px; }
.dtr-help-article__body p { margin: 0 0 16px; }
.dtr-help-article__body ul, .dtr-help-article__body ol { margin: 0 0 18px; padding-left: 24px; }
.dtr-help-article__body li { margin: 0 0 8px; }
.dtr-help-article__body a { color: var(--help-green); text-decoration: underline; }
.dtr-help-article__body img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0; box-shadow: 0 2px 16px rgba(0, 31, 63, .10); }
/* Vidéos YouTube — chargement au clic (RGPD) : rien n'est chargé depuis Google avant le clic. */
.dtr-help-video { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; margin: 24px auto; border-radius: 10px; overflow: hidden; background: #0f1b2d; cursor: pointer; }
.dtr-help-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.dtr-help-video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 31, 63, .78); cursor: pointer; transition: background .15s, transform .15s; }
.dtr-help-video__play::before { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.dtr-help-video:hover .dtr-help-video__play { background: var(--help-green); transform: translate(-50%, -50%) scale(1.06); }
.dtr-help-video__hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); text-align: center; }
.dtr-help-video.is-playing { cursor: default; background: #000; }
.dtr-help-video.is-playing .dtr-help-video__play,
.dtr-help-video.is-playing .dtr-help-video__hint,
.dtr-help-video.is-playing .dtr-help-video__poster { display: none; }
.dtr-help-video .dtr-help-video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; aspect-ratio: auto; }
.dtr-help-article__body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.dtr-help-article__body th, .dtr-help-article__body td { border: 1px solid var(--help-border); padding: 10px 12px; text-align: left; }
.dtr-help-article__body th { background: var(--help-bg); color: var(--help-dark); }
.dtr-help-article__body blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--help-mint); color: #5a6675; }
.dtr-help-article__body pre { background: #0f1b2d; color: #e7edf5; padding: 16px 18px; border-radius: 10px; overflow: auto; font-size: 14px; }
.dtr-help-article__body code { background: #f1ecff; color: var(--help-green); padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.dtr-help-article__body pre code { background: transparent; color: inherit; padding: 0; }

/* ---- Encarts convertis depuis Zoho (callouts) ---- */
.dtr-kb-note { display: block; position: relative; margin: 22px 0; padding: 16px 18px; border-radius: 10px; background: var(--help-bg); border-left: 4px solid var(--help-green); }
.dtr-kb-note > div { margin: 0; }
.dtr-kb-note--info { background: #eef4ff; border-left-color: #2f6fed; }
.dtr-kb-note--tip { background: #eefaf3; border-left-color: #1fa971; }
.dtr-kb-note--warning { background: #fff6ed; border-left-color: #e8833a; }
.dtr-kb-note--note { background: #f6f7f9; border-left-color: #8893a5; }

/* ---- Précédent / suivant ---- */
.dtr-help-prevnext { display: flex; gap: 16px; margin-top: 40px; border-top: 1px solid var(--help-border); padding-top: 26px; }
.dtr-help-prevnext__slot { flex: 1; }
.dtr-help-prevnext__slot--next { text-align: right; }
.dtr-help-prevnext__link { display: inline-block; text-decoration: none; color: var(--help-dark); }
.dtr-help-prevnext__link:hover strong { color: var(--help-green); }
.dtr-help-prevnext__label { display: block; font-size: 12px; color: #8893a5; margin-bottom: 4px; }
.dtr-help-prevnext__link strong { font-size: 15px; transition: color .12s; }

/* ---- Résultats de recherche ---- */
.dtr-help-results-title { color: var(--help-dark); font-size: 22px; margin: 18px 0 24px; }
.dtr-help-result__cat { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--help-green); font-weight: 600; margin-bottom: 6px; }
.dtr-help-search-hint { color: var(--help-text); font-size: 16px; margin: 18px 0; }
.dtr-help-cat-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dtr-help-cat-links a { display: inline-block; padding: 10px 18px; background: #fff; border: 1px solid var(--help-border); border-radius: 30px; color: var(--help-dark); text-decoration: none; font-size: 14px; font-weight: 600; transition: background .12s, color .12s; }
.dtr-help-cat-links a:hover { background: var(--help-green); color: #fff; border-color: var(--help-green); }
.dtr-help-empty { color: var(--help-text); font-size: 16px; }
.dtr-help-empty .dtr-help-cat-links { margin-top: 14px; }

/* ---- CTA support ---- */
.dtr-help-cta { padding: 20px 0 90px; }
.dtr-help-cta__box { background: #fff; border: 1px solid var(--help-border); border-radius: 16px; padding: 46px 30px; max-width: 760px; margin: 0 auto; }
.dtr-help-cta__box h3 { font-size: 24px; margin: 0 0 10px; }
.dtr-help-cta__text { color: var(--help-text); font-size: 16px; margin: 0 0 26px; }
.dtr-help-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .dtr-help-aside { margin-top: 30px; }
}
@media (max-width: 575px) {
    .dtr-help-search__btn { padding: 0 16px; }
    .dtr-help-prevnext { flex-direction: column; }
    .dtr-help-prevnext__slot--next { text-align: left; }
    .dtr-help-cta__actions { flex-direction: column; }
}
