/* V1.9.114 — 25/11/2026 — Enseignements uniquement.
 * Référence À propos / Dons V1.9.113 : cadre 1120px, padding 24/16,
 * rayon 9px, titre 24px, boutons Calibri 16px gras, rouge #D71932.
 * Anciennes valeurs du catalogue non disponibles dans les sources reçues :
 * écart visuel signalé, cause exacte de la cascade non confirmée.
 * Correctif local provisoire, sans modification de la charte commune.
 * Sélecteurs catalogue/header attestés par catalogues.php et sections.php.
 * Navigation externe non modifiée faute de DOM source ; recette requise.
 */
#teachings {box-sizing:border-box!important;max-width:1120px!important;width:100%!important;margin-inline:auto!important;margin-block:26px!important;}
#teachings .kae-catalogue, #teachings.kae-catalogue {box-sizing:border-box!important;max-width:1120px!important;width:100%!important;padding:24px!important;border:1px solid #D71932!important;border-radius:9px!important;background:#fff!important;}
#teachings .ka-enseignements-entete h2 {font:700 24px/1.3 Calibri,Carlito,sans-serif!important;color:#D71932!important;}
#teachings .ka-enseignements-retour, #teachings .kae-filters button, #teachings .kae-pager button:not(:disabled) {box-sizing:border-box!important;font:700 16px/1.4 Calibri,Carlito,sans-serif!important;color:#D71932!important;border:1px solid #D71932!important;border-radius:6px!important;padding:9px 13px!important;min-height:38px!important;background:#fff!important;}
@media(max-width:700px){#teachings .kae-catalogue,#teachings.kae-catalogue{padding:16px!important;}}

/* V1.9.115 — 25/11/2026 — Enseignements uniquement.
 * Audit 1.0.7 (24): bandeau/boutons 45px, cadre/boutons 26px
 * haut et bas, x=392.5px contre 472.5px pour Visite (viewport 1920).
 * Cause confirmée pour le cadre: margin-block:26px de V1.9.114.
 * Navigation externe: classe bouton observée kae-nav-1013-button;
 * structure parent exacte non fournie, ciblage par voisinage à valider.
 * Cibles 26/16px, décalage 80px sur grand écran comme Visite.
 * Correctif local provisoire, charte future; conserver recherche, liens,
 * autres rubriques et mobile. Recette navigateur en attente.
 */
body section#teachings.ka-enseignements {margin-block:0!important;}
body :is(div,nav):has(> a.kae-nav-1013-button):has(+ section#teachings),
body :is(div,nav):has(> :is(div,nav) > a.kae-nav-1013-button):has(+ section#teachings) {margin-top:6px!important;margin-bottom:16px!important;}
body section#teachings + :is(div,nav):has(a.kae-nav-1013-button) {margin-top:16px!important;margin-bottom:26px!important;}
@media(min-width:1500px){
 body section#teachings.ka-enseignements,
 body :is(div,nav):has(a.kae-nav-1013-button):has(+ section#teachings),
 body section#teachings + :is(div,nav):has(a.kae-nav-1013-button) {position:relative!important;left:80px!important;transform:none!important;width:calc(100% - 28px)!important;max-width:1120px!important;margin-inline:auto!important;box-sizing:border-box!important;}
}

/* V1.9.116 — 25/11/2026 — Enseignements, navigation haute uniquement.
 * Audit 1.0.7 (34), 1251 relevés : distance bandeau 46px, cadre 16px, x 472.5px.
 * Marge haute locale 26 -> 6px pour compenser les 20px résiduels.
 * Origine exacte de ces 20px dans le parent non confirmée par le CSV.
 * Cible mesurée 26px ; correctif provisoire avant intégration charte.
 * Recette 1.9.115 : 6/7 OK ; préserver marge basse, alignement, recherche,
 * navigation et autres rubriques. Recette 1.9.116 sur préproduction requise.
 */

/* V1.9.117 — 25/11/2026 — Enseignements uniquement.
 * Audit graphique 1.0.7 (35), 95 relevés : pagination 15px/37px,
 * padding 7px 12px ; texte courant 15px/300 ; H3 résultats 22px/400.
 * Cause observée : styles calculés du catalogue ; la règle source exacte
 * n'est pas disponible ici. Pagination désactivée exclue du style V1.9.114.
 * Référence À propos : 16px/700, padding 9px 13px, bordure 1px,
 * interligne 1.4 (hauteur attendue 42.4px). H3 de section : 18px/700.
 * Correctif local provisoire avant intégration à la charte commune.
 * Recette V1.9.116 : 5/5 OK. Ne pas modifier marges, alignement,
 * recherche, liens ou état disabled. Recette V1.9.117 à effectuer.
 */
#teachings button.kae-prev, #teachings button.kae-next {
  box-sizing:border-box!important;
  font:700 16px/1.4 Calibri,Carlito,sans-serif!important;
  padding:9px 13px!important; min-height:38px!important;
  border-width:1px!important; border-radius:6px!important;
}
#teachings button.kae-prev:not(:disabled), #teachings button.kae-next:not(:disabled) {
  color:#D71932!important; border-color:#D71932!important; background:#fff!important;
}
#teachings button.kae-prev:disabled, #teachings button.kae-next:disabled {
  cursor:not-allowed!important;
}
#teachings .kae-summary, #teachings .kae-count, #teachings .kae-tile,
#teachings .kae-filters label, #teachings input.kae-search,
#teachings select.kae-year, #teachings select.kae-month {
  font-family:Calibri,Carlito,sans-serif!important;
  font-size:15px!important; font-weight:400!important;
}
#teachings h3:has(.kae-total) {
  font-family:Calibri,Carlito,sans-serif!important;
  font-size:18px!important; font-weight:700!important; color:#D71932!important;
}
#teachings h3 .kae-total {font-size:inherit!important;font-weight:inherit!important;}

/* V1.9.122 — 26/11/2026 — Enseignements, audit CSV 63 (95 lignes).
 * Cadre calculé 22px/300, rayon 12px, texte #111111 ; navigation gap 8px,
 * rouge #C7192C. Cible À propos : 15px/400, rayon 9px, #222222,
 * Calibri/Carlito, gap 10px, rouge #D71932. Le sélecteur historique
 * .kae-catalogue ne couvre pas nécessairement le cadre section#teachings.
 * Surcharge locale provisoire ; mutualisation après production.
 * Conserver dimensions, marges, titres, pagination et scripts ; recette WP requise. */
body section#teachings.ka-enseignements {
 font-family:Calibri,Carlito,sans-serif!important;font-size:15px!important;
 font-weight:400!important;color:#222222!important;
 border-radius:9px!important;border-color:#D71932!important;
}
body #teachings :is(.kae-summary,.kae-count,.kae-tile,.kae-filters label) {color:#222222!important;}
body :is(div,nav):has(> a.kae-nav-1013-button) {gap:10px!important;}
body a.kae-nav-1013-button {font-family:Calibri,Carlito,sans-serif!important;color:#D71932!important;border-color:#D71932!important;}

/* V1.9.123 — 26/11/2026 — Enseignements uniquement, VI/FR/EN.
 * Référence Magazines V1.3.13 validée 12/12 : fond beige, padding 14,
 * rayon 9, marge basse 14, gap 10. Capture : ancien cadre intérieur blanc
 * englobant recherche et résultats. Neutraliser sa bordure et son retrait
 * uniquement s'il est imbriqué dans le cadre principal.
 * Source du catalogue externe non fournie : sélecteurs issus du CSS local
 * existant, application effective à confirmer. Correctif provisoire avant
 * mutualisation charte. Aucun changement JS, navigation ou recherche.
 */
body #teachings .kae-catalogue {border:0!important;padding:0!important;background:transparent!important;max-width:100%!important;margin:0!important;}
body #teachings :is(.kae-filters,.kae-summary) {box-sizing:border-box!important;background:var(--ka-fond,#fff8e7)!important;border:1px solid #D71932!important;border-radius:9px!important;padding:14px!important;margin:0 0 14px!important;font:400 15px/1.45 Calibri,Carlito,sans-serif!important;color:#222!important;}
body #teachings .kae-filters {gap:10px!important;}
body #teachings .kae-filters :is(input,select) {box-sizing:border-box;min-width:0;max-width:100%;background:#fff;}

/* 26/11/2026 — Simplification demandée : recherche automatique, suppression des commandes et du titre redondants. Référence Événements. Conserver les nœuds lus par JS, les filtres, la pagination et les autres rubriques. Correctif local avant mutualisation de la charte ; recette WP à effectuer. */
body #teachings .kae-filters :is(button[type=submit],button[type=reset]){display:none!important;}
body #teachings .kae-filters :is(div,span):has(> button[type=submit]):not(:has(input,select)){display:none!important;}
body #teachings h3:has(.kae-total){display:none!important;}
body #teachings .kae-results-head{justify-content:flex-end!important;margin-bottom:14px!important;}
body #teachings .kae-pager{justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap;}
body #teachings button:is(.kae-prev,.kae-next):disabled{color:#D71932!important;border-color:#D71932!important;background:#fff!important;opacity:.4!important;}

body #teachings .kae-summary[data-ka-compact-ready]{display:none!important;}
body #teachings .kae-summary.kae-compact-summary{display:block!important;}
