/*
 * Mode Thème — coque du document (Theme_Mode_Controller).
 *
 * Lot T0 : compatibilité Divi. Le Theme Builder de Divi pose ces règles dans ses zones (`.et-l--header`,
 * `.et-l--body`, `.et-l--footer`) et le rendu du builder en hérite depuis toujours : interligne et retraits des
 * listes, empilement de l'en-tête au-dessus du contenu (menus déroulants, méga-menu). Reprises à l'identique sur nos
 * zones, même spécificité, et imprimées avant custom.css (comme la feuille de Divi), pour un rendu identique.
 * À revoir au lot T6 (défauts propres au builder, sans Divi).
 */
.atb-site-header { position: relative; z-index: 2; }
.atb-site-main,
.atb-site-footer { position: relative; z-index: 1; }

:is(.atb-site-header, .atb-site-main, .atb-site-footer) ul { list-style-type: disc; padding: 0 0 23px 1em; line-height: 26px; }
:is(.atb-site-header, .atb-site-main, .atb-site-footer) ol { list-style-type: decimal; list-style-position: inside; padding: 0 0 23px; line-height: 26px; }
:is(.atb-site-header, .atb-site-main, .atb-site-footer) ol li ol { padding: 2px 0 2px 35px; }

/* Lien d'évitement : visible seulement au clavier. */
.atb-site-skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.atb-site-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; padding: 10px 14px; background: #fff; color: #1d2327; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* Corps de secours (archive, recherche, 404 sans modèle) : Template_Library_Controller::render_fallback(). */
.atb-fallback { padding: 4rem 1rem; }
.atb-fallback__inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 1.5rem; }
.atb-fallback__title { font-size: 2rem; line-height: 1.2; padding: 0; }
.atb-fallback .atb-fallback__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; line-height: inherit; }
.atb-fallback__item { display: grid; gap: .25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--atb-border-color, color-mix(in srgb, currentColor 15%, transparent)); }
.atb-fallback__link { font-size: 1.2rem; font-weight: 600; color: var(--atb-primary, inherit); }
.atb-fallback__date { font-size: .85rem; opacity: .7; }
.atb-fallback__excerpt { padding: 0; }
.atb-fallback .search-form { display: flex; gap: .5rem; max-width: 30rem; }
