/*
 * Composants des centres d'aide (codes courts dn_aide et classes CSS des contenus Elementor).
 * Couleurs : variables --navy, --accent… définies par le plugin à partir du Kit Elementor (Réglages du site › Couleurs globales).
 */
:root {
	--font-title: var(--e-global-typography-primary-font-family), sans-serif;
	--font-body: var(--e-global-typography-text-font-family), sans-serif;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

.eyebrow { display: block; margin: 0; font-family: var(--font-title); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--eyebrow); }
.card-title { display: block; font-family: var(--font-title); font-weight: 700; font-size: 17px; color: var(--navy); }
.card-text { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--navy); background: var(--sky); padding: 4px 10px; border-radius: 999px; }
.badge--warm { color: var(--badge-ink); background: var(--badge-bg); }
.badge--outlined { border: 1px solid var(--badge-line); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 5px 12px; }
.icon-tile { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.icon-tile--accent { background: var(--brand); color: #fff; }
.icon-tile--warm { width: 40px; height: 40px; border-radius: 10px; background: var(--badge-bg); color: var(--warm-icon); }
body a.btn { display: inline-block; border: 0; background: var(--accent); color: var(--accent-ink); font-family: var(--font-title); font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 10px; text-decoration: none; cursor: pointer; }
body a.btn:hover { color: var(--accent-ink); filter: brightness(.92); }
body a.btn--ghost { background: transparent; color: #fff; border: 1px solid var(--navy-line); font-family: var(--font-body); font-weight: 600; }
.elementor-button:hover { filter: brightness(.94); }

/* En-tête */
body a.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
body a.brand:hover { color: #fff; }
.brand__logo { display: block; height: 30px; width: auto; }
.brand__name { font-family: var(--font-title); font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.brand__tag { font-size: 13px; color: var(--on-navy); border-left: 1px solid var(--navy-line); padding-left: 10px; white-space: nowrap; }
.e-con > .header-search { flex: 1 1 320px; max-width: 520px; }
.header-search:not(:has(form)) { display: none; } /* accueil : la recherche est dans le bandeau */
.quicklinks.e-con { --width: auto; width: auto; flex: 0 1 auto; margin-left: auto; } /* menu à droite du logo */
.quicklinks .elementor-button { font-family: var(--font-body); font-weight: 600; }

/* Recherche */
.searchbox { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--muted2); }
.searchbox input[type="search"] { flex: 1; min-width: 0; border: 0; outline: none; box-shadow: none; font: inherit; color: var(--ink); background: transparent; padding: 12px 0; }
.searchbox--compact { border-radius: 10px; padding: 0 14px; font-size: 15px; }
.searchbox--hero { width: 100%; border-radius: 14px; padding: 8px 8px 8px 20px; box-shadow: 0 10px 30px rgba(8, 40, 72, .25); font-size: 16px; }
.searchbox--hero button { border: 0; background: var(--accent); color: var(--accent-ink); font-family: var(--font-title); font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 10px; cursor: pointer; }
.searchbox--hero button:hover { background: var(--accent); filter: brightness(.92); }
.elementor-widget-shortcode .searchbox--compact { border: 1px solid var(--line); }
.elementor-location-header .searchbox--compact { border: 0; }

/* Accueil */
.dn-hero { background-repeat: no-repeat; background-position: right max(24px, calc(50% - 680px)) bottom 0; background-size: 380px auto; }
.dn-hero .elementor-widget-shortcode, .dn-hero .elementor-widget-text-editor { width: 100%; }
.hero__chips p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
body .hero__chips a { color: #fff; border: 1px solid var(--navy-line); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
body .hero__chips a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.quick__card, .module-card { transition: box-shadow .15s, border-color .15s; }
.quick__card:hover, .module-card:hover, .tutorial-card:hover, .result:hover, .pager a:hover { box-shadow: 0 6px 20px rgba(16, 50, 90, .12); border-color: var(--brand) !important; }
.chips p { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; }
body .chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; text-decoration: none; color: var(--navy); }
body .chips a:hover { border-color: var(--navy); }

/* Page d'aide */
.sidenav { display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.sidenav .eyebrow { padding: 0 12px 6px; }
.sidenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
body .sidenav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text2); text-decoration: none; }
body .sidenav a:hover { background: var(--sky2); color: var(--navy); }
body .sidenav a[aria-current="page"], body .sidenav .current_page_item > a { background: var(--sky); color: var(--navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.sidenav__sub { margin-left: 14px !important; }
.sidenav__sub ul { margin-left: 14px; }
@media (min-width: 801px) {
	.elementor-widget-shortcode:has(.sidenav) { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
.breadcrumb { font-size: 13px; color: var(--muted2); display: flex; gap: 8px; flex-wrap: wrap; }
body .breadcrumb a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted2); }
/* Sommaire (widget Table des matières d'Elementor Pro, réglé par ses variables) */
body .toc { --box-border-width: 0; --box-padding: 0; --box-background-color: transparent; --header-background-color: transparent;
	--separator-width: 0; --header-color: var(--eyebrow); --item-text-color: var(--text2); --item-text-hover-color: var(--navy);
	--item-text-active-color: var(--navy); --marker-color: var(--brand); }
body .toc .elementor-toc__header { padding: 0 0 8px 14px; }
body .toc .elementor-toc__header-title { font-family: var(--font-title); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--eyebrow); }
body .toc .elementor-toc__body { padding: 0 0 0 14px; border-left: 2px solid var(--line); }
body .toc .elementor-toc__list-item-text { font-size: 14px; line-height: 1.4; }
body .toc .elementor-toc__list-item-text.elementor-item-active { font-weight: 600; }
.aside-card { background: var(--sky); border-radius: 12px; padding: 16px; }
.aside-card p { margin: 0 0 6px; }
.aside-card strong { color: var(--navy); }
body .aside-card a { font-weight: 600; }

/* Contenu rédigé (widget Contenu de la publication, classe « entry ») */
.entry { color: var(--text2); }
.entry .elementor-widget-text-editor:first-child p:first-child { font-size: 18px; line-height: 1.6; }
.entry .elementor-widget-heading { margin-top: 20px; }
.entry .elementor-heading-title { scroll-margin-top: 16px; }
body .entry a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry strong { color: var(--ink); }
.entry .entry-image img { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.entry .widget-image-caption { font-size: 13px; color: var(--muted2); margin-top: 8px; text-align: left; }
.entry iframe { max-width: 100%; border: 0; border-radius: 12px; }
.entry ol { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.entry ol > li { position: relative; padding-left: 44px; min-height: 30px; counter-increment: step; }
.entry ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.entry ol > li > p { margin: 4px 0 0; }
.entry ul { padding-left: 22px; }
.entry li + li { margin-top: 4px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.entry th { background: var(--sky2); text-align: left; font-family: var(--font-title); color: var(--navy); }
.entry th, .entry td { padding: 12px 16px; vertical-align: top; border: 0; }
.entry tr + tr td { border-top: 1px solid var(--line2); }
.faq .elementor-toggle-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq .elementor-tab-title { border: 0 !important; padding: 16px 18px; font-weight: 600; font-size: 15px; }
.faq .elementor-tab-title a, .faq .elementor-toggle-icon { color: var(--ink); }
.faq .elementor-tab-content { border: 0 !important; padding: 0 18px 16px; color: var(--text2); }

/* Encadrés : astuce, information, attention */
.callout { position: relative; border-radius: 12px; padding: 16px 18px 16px 52px; font-size: 14px; line-height: 1.6; background: var(--sky); color: var(--ink); }
.callout::before { content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; background: var(--callout-icon, var(--navy)); -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain; }
.callout p { margin: 0 0 8px; }
.callout--info { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.callout--tip, .callout--warning { background-color: var(--warm-bg); color: var(--warm-ink); --callout-icon: var(--warm-icon); }
.callout--tip { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9V16h7v-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.callout--warning { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 16H3l9-16zM12 10v4M12 17v.5'/%3E%3C/svg%3E"); }
.callout strong { color: inherit; }

/* Articles liés, tutoriels */
.tutorials h2 { margin: 0 0 14px; font-family: var(--font-title); font-size: 24px; color: var(--navy); }
.tutorials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
body a.tutorial-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.tutorial-card__thumb { height: 120px; background: var(--sky); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.tutorial-card__title { padding: 14px 16px; font-size: 14px; font-weight: 600; }
body a.tutorial-cta { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; }
.tutorial-cta .icon-tile { width: 56px; height: 56px; }

/* Module additionnel */
.module-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--badge-line); border-radius: 14px; padding: 18px 20px; }
.module-status p { flex: 1 1 300px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--text2); }
.module-status strong { color: var(--ink); }
.module-cta { background: var(--navy); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.module-cta .badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.module-cta h2 { margin: 0; color: #fff; font-family: var(--font-title); font-size: 24px; }
.module-cta p { margin: 0; font-size: 15px; color: var(--on-navy); }
.module-cta ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.module-cta li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 10px; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Avis et navigation */
.feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: 14px; font-weight: 600; color: var(--ink); }
.feedback__actions { display: flex; gap: 8px; font-weight: 400; }
.feedback button { border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; cursor: pointer; }
.feedback button:hover, .feedback button:focus { border-color: var(--navy); background: #fff; color: var(--navy); }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
body .pager a { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; background: #fff; }
.pager span { font-size: 12px; color: var(--muted2); }
.pager strong { font-family: var(--font-title); color: var(--navy); }
.pager__next { text-align: right; grid-column: -2; }

/* Recherche et archives */
.listing__title { font-family: var(--font-title); font-size: clamp(26px, 4vw, 34px); color: var(--navy); margin: 0; }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
body a.result { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; }
.nav-links { display: flex; gap: 12px; margin-top: 24px; }

@media (max-width: 800px) {
	.dn-hero { background-size: 220px auto; background-position: right 12px bottom 0; }
	.searchbox--hero button { padding: 12px 14px; }
	.pager__next { grid-column: auto; }
	.elementor-widget-shortcode:has(.sidenav) { border-top: 1px solid var(--line); padding-top: 20px; }
}
