/* iDémarches — front. Tout est préfixé .idem- et rangé sous .idem-root.
   Les couleurs viennent des réglages admin : variables --idem-* injectées en ligne (voir IDEM_Shortcodes::assets()).
   Les variables ci-dessous ne sont que des valeurs de repli. */
.idem-root {
	/* Réglages admin (repli) */
	--idem-search-bg: #f4f1ff;
	--idem-accent: #8b6cff;
	--idem-accent-strong: #734dff;
	--idem-accent-on: #fff;
	--idem-tag-bg: #eee9ff;
	--idem-border: #e3e6ec;
	--idem-section-bg: #f1edff;
	--idem-card-border: #e3e1ec;
	--idem-mute: #5b6475;
	/* Neutres fixes (texte, cartes) */
	--idem-ink: #1f2430;
	--idem-white: #fff;
	/* Encadrés (fond + trait, texte --idem-ink : contraste >= 4,5:1) */
	--idem-co-asavoir-bg: #eaf3ff;
	--idem-co-asavoir-bd: #2d5fa8;
	--idem-co-anoter-bg: #fff6e0;
	--idem-co-anoter-bd: #8a5a00;
	--idem-co-attention-bg: #fdeceb;
	--idem-co-attention-bd: #b3261e;
	--idem-co-rappel-bg: #eaf7ee;
	--idem-co-rappel-bd: #1d7a43;
	--idem-co-plus-bg: #f1edff;
	--idem-co-plus-bd: #5a3fc0;
	--idem-co-ou-bg: #f3f4f6;
	--idem-co-ou-bd: #4b5563;
	--idem-ok-bg: #e6f4ec;
	--idem-ok: #0f6a3f;
	color: var(--idem-ink);
	container-type: inline-size;
}

/* ---------- Isolation : neutralise le CSS du thème (Divi…) sans !important ----------
   Double classe = spécificité 0,2,1 : passe devant `p`, `.et_pb_text p`, `.entry-content ul`… */
.idem-root.idem-root :is(p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dd, figure, blockquote, address, table, caption, fieldset, legend) { margin: 0; padding: 0; border: 0; }
.idem-root.idem-root :is(h1, h2, h3, h4, h5, h6) { font-family: inherit; text-transform: none; letter-spacing: 0; line-height: 1.3; color: var(--idem-ink); }
.idem-root.idem-root { font-size: 1rem; line-height: 1.6; }

.idem-root *, .idem-root *::before, .idem-root *::after { box-sizing: border-box; }
.idem-root a { color: inherit; }
.idem-root .idem-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.idem-root .idem-ico { flex: 0 0 auto; }
.idem-root .idem-ext { margin-left: .25em; vertical-align: -.1em; }
.idem-root .idem-empty { padding: 1.25rem; border: 1px dashed var(--idem-border); border-radius: .625rem; color: var(--idem-mute); }
.idem-root [hidden] { display: none !important; }

/* RGAA 10.7 : focus visible partout */
.idem-root a:focus-visible,
.idem-root button:focus-visible,
.idem-root summary:focus-visible,
.idem-root input:focus-visible,
.idem-root [tabindex]:focus-visible { outline: 3px solid var(--idem-accent-strong); outline-offset: 2px; }
.idem-root [tabindex="-1"]:focus { outline: none; }
.idem-root .idem-choice-opt:has(input:focus-visible) { outline: 3px solid var(--idem-accent-strong); outline-offset: 2px; }

/* ---------- Rythme vertical : une seule méthode (flex colonne + gap) ---------- */
.idem-root :is(.idem-body, .idem-block, .idem-acc-body, .idem-chap, .idem-situation, .idem-cas, .idem-callout, .idem-way-body, .idem-panel-body, .idem-step-body, .idem-box-body, .idem-help-text, .idem-choiceblock, .idem-panel, .idem-step, .idem-ways, .idem-ways-list, .idem-guided, .idem-cases, .idem-fiche-main) { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.idem-root .idem-fiche-main { gap: 1.25rem; }
.idem-root .idem-panel, .idem-root .idem-step { gap: .5rem; }
.idem-root .idem-callout { gap: .375rem; }

/* Listes de contenu : puces dans la colonne, retour à la ligne aligné sur le texte */
.idem-root.idem-root :is(.idem-body, .idem-acc-body, .idem-callout, .idem-box-body, .idem-help-text, .idem-way-body, .idem-panel-body, .idem-step-body, .idem-faq, .idem-refs) :is(ul, ol):not(.idem-list, .idem-glinks, .idem-gtree, .idem-steps, .idem-moments-grid, .idem-crumbs ol, .idem-toc ol) { padding-left: 1.375em; list-style: disc outside; }
.idem-root.idem-root :is(.idem-body, .idem-acc-body, .idem-callout, .idem-box-body, .idem-help-text, .idem-way-body, .idem-panel-body, .idem-step-body, .idem-faq, .idem-refs) ol:not(.idem-steps, .idem-toc ol) { list-style: decimal outside; }
.idem-root.idem-root :is(.idem-body, .idem-acc-body, .idem-callout, .idem-box-body, .idem-help-text, .idem-way-body, .idem-panel-body, .idem-step-body, .idem-faq, .idem-refs) :is(ul, ol):not(.idem-list, .idem-glinks, .idem-gtree, .idem-steps, .idem-moments-grid) li + li { margin-top: .375rem; }
.idem-root :is(.idem-body, .idem-acc-body, .idem-callout, .idem-box-body, .idem-help-text) li > * + * { margin-top: .375rem; }

/* ---------- Zone haute ---------- */
.idem-root .idem-top { background: var(--idem-search-bg); border: 1px solid var(--idem-card-border); border-radius: .875rem; padding: 1.375rem; margin-bottom: 1.375rem; }
.idem-root.idem-root .idem-pagetitle { margin: 0 0 .875rem; font-size: 1.35em; font-weight: 700; line-height: 1.3; }
.idem-root .idem-search { display: flex; gap: .5rem; margin: 0 0 .875rem; }
.idem-root .idem-search input[type="search"] { flex: 1 1 auto; min-width: 0; padding: .6875rem .875rem; border: 1px solid var(--idem-mute); border-radius: .5625rem; background: var(--idem-white); font: inherit; color: inherit; }
.idem-root .idem-search button,
.idem-root .idem-btn { display: inline-block; padding: .6875rem 1.125rem; border: 0; border-radius: .5625rem; background: var(--idem-accent-strong); color: var(--idem-accent-on); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3; }
.idem-root .idem-btn { text-align: center; }
.idem-root .idem-search button:hover, .idem-root .idem-btn:hover { filter: brightness(.93); }
.idem-root .idem-publics { display: flex; gap: .375rem; margin-top: .75rem; flex-wrap: wrap; }
.idem-root .idem-publics a { padding: .375rem .875rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9em; border: 1px solid var(--idem-card-border); background: var(--idem-white); }
.idem-root .idem-publics a[aria-current="page"] { background: var(--idem-accent-strong); border-color: var(--idem-accent-strong); color: var(--idem-accent-on); }

/* Chevron CSS commun (summary) */
.idem-root .idem-chev { flex: 0 0 auto; width: .5625rem; height: .5625rem; margin: 0 .25rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.idem-root details[open] > summary > .idem-chev { transform: rotate(225deg) translateY(-2px); }

/* Moments de vie : une ligne repliable, grille qui passe à la ligne */
.idem-root .idem-moments > summary { display: flex; align-items: center; gap: .625rem; padding: .375rem .125rem; cursor: pointer; list-style: none; }
.idem-root .idem-moments > summary::-webkit-details-marker { display: none; }
.idem-root .idem-moments > summary::marker { content: ""; }
.idem-root .idem-moments > summary .idem-chev { margin: 0 .125rem 0 0; color: var(--idem-accent-strong); }
.idem-root .idem-moments-t { font-weight: 600; color: var(--idem-accent-strong); }
.idem-root .idem-moments .idem-count { font-weight: 500; font-size: .875em; color: var(--idem-mute); }
.idem-root.idem-root .idem-moments-grid { list-style: none; margin: .625rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13.125rem, 100%), 1fr)); gap: .5rem; }
.idem-root .idem-moments-grid a { display: flex; align-items: center; gap: .5rem; height: 100%; padding: .5625rem .75rem; border: 1px solid var(--idem-card-border); border-radius: .625rem; background: var(--idem-white); font-weight: 600; font-size: .9em; color: var(--idem-ink); text-decoration: none; overflow-wrap: anywhere; }
.idem-root .idem-moments-grid a::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--idem-accent-strong); }
.idem-root .idem-moments-grid a:hover, .idem-root .idem-moments-grid a:focus-visible { border-color: var(--idem-accent-strong); background: var(--idem-section-bg); }

/* ---------- Deux colonnes ---------- */
.idem-root .idem-cols { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1.75rem; align-items: start; }
/* Menu des thèmes : carte à filets, chevron à droite, ligne active en bandeau plein (couleurs des réglages) */
.idem-root.idem-root .idem-themes ul { display: block; margin: 0; padding: 0; list-style: none; border: 1px solid var(--idem-card-border); border-radius: .75rem; overflow: hidden; background: var(--idem-white); }
.idem-root.idem-root .idem-themes li + li { border-top: 1px solid var(--idem-border); }
.idem-root .idem-themes a { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .625rem 1rem; border-radius: 0; font-weight: 600; text-decoration: none; color: var(--idem-ink); overflow-wrap: anywhere; }
.idem-root .idem-themes a > span { flex: 1 1 auto; min-width: 0; }
.idem-root .idem-themes a::after { content: ""; flex: 0 0 auto; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.idem-root .idem-themes a:hover { background: var(--idem-search-bg); }
.idem-root .idem-themes a[aria-current="page"] { background: var(--idem-accent-strong); color: var(--idem-accent-on); }
.idem-root .idem-themes a[aria-current="page"]::after { opacity: 1; }
.idem-root .idem-themes a:focus-visible { outline: 3px solid var(--idem-accent-strong); outline-offset: -3px; }
/* Accordéon « Thème : … » : summary masqué en large (liste toujours affichée), visible en étroit (voir @container 860px) */
.idem-root details.idem-themes-acc { display: block; }
.idem-root .idem-themes-acc > summary { display: none; }
.idem-root .idem-themes-acc > summary::-webkit-details-marker { display: none; }
.idem-root .idem-themes-acc > summary::marker { content: ""; }
/* En large, la liste reste affichée même si l'accordéon a été refermé en étroit (navigateurs gérant ::details-content). */
.idem-root details.idem-themes-acc::details-content { content-visibility: visible; }
.idem-root .idem-detail { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.idem-root .idem-dhead { display: flex; flex-direction: column; gap: .5rem; }
.idem-root .idem-h-theme, .idem-root .idem-h-demarche { font-size: 1.5em; font-weight: 700; overflow-wrap: anywhere; }
.idem-root .idem-lead { color: var(--idem-mute); }

/* Groupes = cartes en mosaïque (colonnes CSS : pas de trou entre cartes de hauteurs différentes) */
.idem-root .idem-groups { display: block; columns: 20rem; column-gap: 1rem; margin-bottom: -1rem; }
.idem-root .idem-groups > .idem-group { break-inside: avoid; margin: 0 0 1rem; display: block; width: 100%; }
.idem-root .idem-groups--one { columns: auto; }
.idem-root .idem-group { border: 1px solid var(--idem-card-border); border-radius: .75rem; overflow: hidden; background: var(--idem-white); min-width: 0; }
.idem-root .idem-group > .idem-h-section { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; background: var(--idem-section-bg); border-bottom: 1px solid var(--idem-card-border); font-size: 1em; font-weight: 700; overflow-wrap: anywhere; }
.idem-root .idem-count { flex: 0 0 auto; font-size: .8em; font-weight: 500; color: var(--idem-mute); }
.idem-root.idem-root .idem-list { list-style: none; margin: 0; padding: .375rem; }
.idem-root.idem-root .idem-list li a { display: flex; align-items: center; justify-content: space-between; gap: .625rem; padding: .625rem; border-radius: .5rem; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.idem-root.idem-root .idem-list li a::after { content: ""; flex: 0 0 auto; width: .5rem; height: .5rem; margin-left: auto; border-right: 2px solid var(--idem-accent-strong); border-top: 2px solid var(--idem-accent-strong); transform: rotate(45deg); }
.idem-root.idem-root .idem-list li a:hover { background: var(--idem-search-bg); }
.idem-root .idem-link-label { flex: 1 1 auto; min-width: 0; }
.idem-root .idem-meta { display: inline-flex; align-items: center; gap: .3125rem; margin-left: auto; white-space: nowrap; font-size: .8em; font-weight: 500; color: var(--idem-mute); }
.idem-root .idem-meta + .idem-meta { margin-left: 0; }
.idem-root .idem-meta .idem-ico { vertical-align: middle; }
.idem-root.idem-root .idem-results { border: 1px solid var(--idem-card-border); border-radius: .75rem; overflow: hidden; background: var(--idem-white); }
.idem-root.idem-root .idem-results li + li { border-top: 1px solid var(--idem-border); }
.idem-root.idem-root .idem-snippet { display: block; padding: 0 1rem .625rem; margin-top: -.25rem; color: var(--idem-mute); font-size: .9em; }
.idem-root .idem-crumbs { font-size: .875em; color: var(--idem-mute); }
.idem-root.idem-root .idem-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem; }
.idem-root .idem-crumbs li + li::before { content: "\203A"; margin-right: .375rem; }
.idem-root .idem-crumbs a { color: var(--idem-mute); text-decoration: none; }
.idem-root .idem-crumbs a:hover { text-decoration: underline; }
.idem-root .idem-help { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.5rem 1.75rem; border-radius: .75rem; background: var(--idem-search-bg); border: 1px solid var(--idem-card-border); }
.idem-root .idem-help > div { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.idem-root .idem-help > .idem-btn { flex: none; }
.idem-root .idem-help span { color: var(--idem-mute); font-size: .92em; }

/* ---------- Fiche ---------- */
.idem-root .idem-fiche { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.75rem; align-items: start; }
.idem-root .idem-fiche-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; min-width: 0; }
.idem-root .idem-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.idem-root .idem-tag { padding: .1875rem .75rem; border-radius: 999px; background: var(--idem-tag-bg); font-size: .82em; font-weight: 600; }
.idem-root .idem-srclink { font-size: .875em; color: var(--idem-accent-strong); }
.idem-root .idem-body a, .idem-root .idem-faq a, .idem-root .idem-refs a, .idem-root .idem-help-text a { color: var(--idem-accent-strong); overflow-wrap: anywhere; }
.idem-root .idem-body a.idem-btn { color: var(--idem-accent-on); }
.idem-root .idem-floattitle { font-weight: 700; }

/* Échelle de titres : la taille suit la profondeur, pas la balise */
.idem-root .idem-t1 { font-size: 1.125em; font-weight: 700; }
.idem-root .idem-t2 { font-size: 1.0625em; font-weight: 700; }
.idem-root .idem-t3 { font-size: 1em; font-weight: 700; }
.idem-root .idem-subtitle { font-size: .95em; font-weight: 700; color: var(--idem-ink); }
.idem-root .idem-acc > summary .idem-subtitle, .idem-root .idem-way > summary .idem-subtitle { font-size: 1em; }
.idem-root .idem-h-section { overflow-wrap: anywhere; }

/* Encadrés */
.idem-root .idem-callout { padding: .75rem 1rem; border-left: 4px solid var(--idem-co-asavoir-bd); background: var(--idem-co-asavoir-bg); border-radius: 0 .625rem .625rem 0; }
.idem-root .idem-callout--anoter { border-color: var(--idem-co-anoter-bd); background: var(--idem-co-anoter-bg); }
.idem-root .idem-callout--attention { border-color: var(--idem-co-attention-bd); background: var(--idem-co-attention-bg); }
.idem-root .idem-callout--rappel { border-color: var(--idem-co-rappel-bd); background: var(--idem-co-rappel-bg); }
.idem-root .idem-callout--pourensavoirplus { border-color: var(--idem-co-plus-bd); background: var(--idem-co-plus-bg); }
.idem-root .idem-callout--ou { border-color: var(--idem-co-ou-bd); background: var(--idem-co-ou-bg); }
.idem-root .idem-callout-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.idem-root .idem-callout--asavoir .idem-callout-ico { color: var(--idem-co-asavoir-bd); }
.idem-root .idem-callout--anoter .idem-callout-ico { color: var(--idem-co-anoter-bd); }
.idem-root .idem-callout--attention .idem-callout-ico { color: var(--idem-co-attention-bd); }
.idem-root .idem-callout--rappel .idem-callout-ico { color: var(--idem-co-rappel-bd); }
.idem-root .idem-callout--pourensavoirplus .idem-callout-ico { color: var(--idem-co-plus-bd); }
.idem-root .idem-callout--ou .idem-callout-ico { color: var(--idem-co-ou-bd); }
.idem-root .idem-svc .idem-btn { display: inline-block; width: auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Tableaux : région focusable, barre de défilement native visible */
.idem-root .idem-tablewrap { overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.idem-root .idem-table { border-collapse: collapse; width: 100%; min-width: 30rem; }
.idem-root .idem-table th, .idem-root .idem-table td { padding: .5rem .625rem; border: 1px solid var(--idem-card-border); text-align: left; vertical-align: top; }
.idem-root .idem-table th { background: var(--idem-section-bg); }
.idem-root .idem-table caption { text-align: left; font-weight: 700; padding-bottom: .375rem; }

/* Accordéons natifs, empilés */
/* Les <details> restent en bloc : un flex + gap ajouterait l'écart même fermé (contenu masqué). L'espacement est dans .idem-acc-body. */
.idem-root details.idem-acc, .idem-root details.idem-way, .idem-root details.idem-moments { display: block; gap: 0; }
.idem-root .idem-acc { border: 1px solid var(--idem-card-border); border-radius: .625rem; background: var(--idem-white); overflow: hidden; }
.idem-root .idem-acc + .idem-acc { margin-top: -1px; }
.idem-root .idem-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; cursor: pointer; list-style: none; min-width: 0; font-size: 1em; }
.idem-root .idem-acc > summary::-webkit-details-marker { display: none; }
.idem-root .idem-acc > summary::marker { content: ""; }
.idem-root .idem-acc > summary:hover { background: var(--idem-search-bg); }
.idem-root .idem-acc > summary > :is(h1, h2, h3, h4, h5, h6, p, .idem-acc-q, .idem-gtitle) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.idem-root .idem-acc > summary > :is(.idem-acc-q, .idem-gtitle) { font-weight: 600; font-size: 1em; }
.idem-root .idem-acc[open] > summary { background: var(--idem-section-bg); }
.idem-root .idem-acc-body { padding: .875rem 1rem 1rem; }
.idem-root .idem-faq, .idem-root .idem-tips { display: flex; flex-direction: column; gap: 0; }
.idem-root .idem-faq > .idem-h-section, .idem-root .idem-tips > .idem-h-section, .idem-root .idem-faq > .idem-subtitle { margin-bottom: .625rem; }
.idem-root .idem-refs { font-size: 1em; }
.idem-root .idem-faq, .idem-root .idem-tips, .idem-root .idem-refs { margin-top: .5rem; }

/* Composant choix (amélioré par front.js) : carte à l'image des « step » de la maquette */
.idem-root .idem-panel[hidden] { display: none; }
.idem-root.idem-root .idem-choice { display: flex; flex-direction: column; gap: .75rem; min-width: 0; padding: 1rem; border: 1px solid var(--idem-card-border); border-radius: .75rem; }
/* Légende dans la carte (float = plus de légende « rendue » sur le trait) ; l'écart légende/options est le gap du flex (.75rem). */
.idem-root.idem-root .idem-choice > legend { float: left; width: 100%; padding: 0; margin: 0; font-weight: 700; font-size: 1.0625em; line-height: 1.4; }
.idem-root .idem-choice > legend + * { clear: both; }
.idem-root .idem-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: .625rem; }
.idem-root .is-long .idem-choice-grid, .idem-root .idem-choice-grid.is-long { grid-template-columns: minmax(0, 1fr); }
.idem-root .idem-choice-opt { display: flex; gap: .625rem; align-items: flex-start; padding: .75rem .875rem; border: 1.5px solid var(--idem-card-border); border-radius: .625rem; background: var(--idem-white); cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.idem-root.idem-root .idem-choice-opt input[type="radio"] { width: 1.125rem; height: 1.125rem; margin: .125rem 0 0; padding: 0; accent-color: var(--idem-accent-strong); flex: none; }
.idem-root .idem-choice-opt small { display: block; font-weight: 500; color: var(--idem-mute); font-size: .875em; }
.idem-root .idem-choice-opt:hover { background: var(--idem-search-bg); }
.idem-root .idem-choice-opt:has(input:checked) { border-color: var(--idem-accent-strong); background: var(--idem-section-bg); }
/* Une fois amélioré : le fieldset porte l'intitulé, les titres de panneaux restent pour les lecteurs d'écran. */
.idem-root .idem-choiceblock.is-enhanced > .idem-choice-title,
.idem-root .idem-choiceblock.is-enhanced > .idem-panel > .idem-panel-title,
.idem-root .idem-guided.is-enhanced > .idem-guided-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.idem-root .idem-gui { display: flex; flex-direction: column; gap: .875rem; }
.idem-root .idem-gui-go { display: flex; flex-wrap: wrap; gap: .5rem; }
.idem-root .idem-gui-go .idem-btn { text-align: left; }

/* Étapes séquentielles */
.idem-root.idem-root .idem-steps { list-style: none; counter-reset: idem-step; display: flex; flex-direction: column; gap: 1rem; }
.idem-root .idem-step { counter-increment: idem-step; position: relative; padding-left: 2.75rem; }
.idem-root .idem-step::before { content: counter(idem-step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--idem-accent-strong); color: var(--idem-accent-on); font-weight: 700; display: grid; place-items: center; }

/* Modes de demande */
.idem-root .idem-ways-list { gap: .625rem; }
.idem-root .idem-way { border: 1px solid var(--idem-card-border); border-radius: .625rem; background: var(--idem-white); }
.idem-root .idem-way--top { border-color: var(--idem-accent-strong); box-shadow: 0 0 0 3px var(--idem-section-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--idem-accent-strong) 18%, transparent); }
/* Carte en ligne : badge juste après l'intitulé, rien à droite */
.idem-root .idem-way-tl { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.idem-root .idem-way-tl > .idem-way-title { flex: 0 1 auto; }
.idem-root .idem-way > summary, .idem-root .idem-way-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8125rem .875rem; min-width: 0; }
.idem-root .idem-way > summary > .idem-chev { margin-left: auto; }
.idem-root .idem-way > summary { cursor: pointer; list-style: none; border-radius: .625rem; }
.idem-root .idem-way > summary::-webkit-details-marker { display: none; }
.idem-root .idem-way > summary::marker { content: ""; }
.idem-root .idem-way > summary:hover { background: var(--idem-search-bg); }
.idem-root .idem-way[open] > summary { background: var(--idem-section-bg); border-radius: .625rem .625rem 0 0; }
.idem-root .idem-way-title { flex: 1 1 auto; min-width: 0; font-size: 1em; font-weight: 600; overflow-wrap: anywhere; }
.idem-root .idem-way-ico { flex: 0 0 auto; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: .5625rem; background: var(--idem-section-bg); color: var(--idem-accent-strong); }
.idem-root .idem-way-body { padding: .25rem 1rem 1rem 3.75rem; }
.idem-root .idem-badge { flex: 0 0 auto; padding: .1875rem .5rem; border-radius: 999px; background: var(--idem-ok-bg); color: var(--idem-ok); font-size: .75em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Recherche guidée */
.idem-root .idem-gtree, .idem-root .idem-glinks { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.idem-root .idem-help-text { color: var(--idem-mute); font-size: .92em; gap: .375rem; }

/* ---------- Colonne latérale : encarts en cartes, comme les groupes ---------- */
.idem-root .idem-box { padding: 0; overflow: hidden; border: 1px solid var(--idem-card-border); border-radius: .75rem; background: var(--idem-white); }
.idem-root .idem-box > .idem-h-section { margin: 0; padding: .75rem 1rem; background: var(--idem-section-bg); border-bottom: 1px solid var(--idem-card-border); font-size: 1em; font-weight: 700; }
.idem-root .idem-box-body { padding: .875rem 1rem 1rem; gap: .625rem; }
.idem-root .idem-box-body .idem-btn { display: block; }
.idem-root .idem-box-note { font-size: .875em; color: var(--idem-mute); }
.idem-root.idem-root .idem-box-link { font-size: .9em; border-top: 1px solid var(--idem-border); padding-top: .625rem; }
.idem-root .idem-box a:not(.idem-btn) { color: var(--idem-accent-strong); }
.idem-root.idem-root .idem-toc ol { padding-left: 1.375em; list-style: decimal outside; display: flex; flex-direction: column; gap: .25rem; }
.idem-root .idem-toc a { color: var(--idem-ink); }
.idem-root .idem-accueil { display: flex; flex-direction: column; gap: .25rem; font-size: .95em; }
.idem-root .idem-accueil + .idem-accueil { margin-top: .375rem; padding-top: .75rem; border-top: 1px solid var(--idem-border); }
.idem-root .idem-accueil strong { font-weight: 700; }
.idem-root.idem-root .idem-accueil address { font-style: normal; }
.idem-root .idem-hours { color: var(--idem-mute); }

/* Pied */
.idem-root.idem-root .idem-credit { margin: 1.375rem 0 0; padding-top: .75rem; border-top: 1px solid var(--idem-border); font-size: .875em; color: var(--idem-mute); text-align: right; }
.idem-root .idem-credit a { color: var(--idem-mute); }
.idem-root.is-loading .idem-app { opacity: .55; transition: opacity .15s; }
.idem-root { position: relative; }
.idem-root .idem-progress { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 2px; overflow: hidden; border-radius: 2px; pointer-events: none; }
.idem-root .idem-progress::before { content: ""; position: absolute; inset: 0; background: var(--idem-accent-strong); transform-origin: left center; animation: idem-progress 1.1s ease-out infinite; }
@keyframes idem-progress { 0% { transform: translateX(-100%) scaleX(.3); } 60% { transform: translateX(10%) scaleX(.6); } 100% { transform: translateX(100%) scaleX(.3); } }

/* ---------- Largeur du conteneur (le shortcode peut se trouver dans une colonne étroite) ---------- */
@container (max-width: 1000px) {
	.idem-root .idem-fiche { grid-template-columns: minmax(0, 1fr); }
	.idem-root .idem-fiche-side { position: static; }
}
@container (max-width: 860px) {
	.idem-root .idem-cols { grid-template-columns: minmax(0, 1fr); }
	.idem-root .idem-themes-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; padding: .625rem 1rem; border: 1px solid var(--idem-card-border); border-radius: .75rem; background: var(--idem-white); cursor: pointer; list-style: none; font-weight: 600; }
	.idem-root .idem-themes-acc > summary:hover { background: var(--idem-search-bg); }
	.idem-root .idem-themes-acc[open] > summary { background: var(--idem-section-bg); border-radius: .75rem .75rem 0 0; }
	.idem-root .idem-themes-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
	.idem-root .idem-themes-label strong { font-weight: 700; }
	.idem-root.idem-root .idem-themes-acc[open] > ul { border-top: 0; border-radius: 0 0 .75rem .75rem; }
	.idem-root details.idem-themes-acc:not([open])::details-content { content-visibility: hidden; }
}
@container (max-width: 560px) {
	.idem-root .idem-top { padding: 1rem; }
	.idem-root .idem-search { flex-direction: column; }
	.idem-root .idem-help { flex-direction: column; align-items: stretch; }
	.idem-root .idem-way-body { padding-left: 1rem; }
	.idem-root .idem-groups { columns: auto; }
	.idem-root.idem-root .idem-credit { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.idem-root *, .idem-root *::before, .idem-root *::after { transition: none !important; scroll-behavior: auto !important; }
	.idem-root .idem-progress::before { animation: none; transform: none; }
}
