/* Shared reading rule: wrap between words; keep amounts, units and short dates intact. */
body :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,figcaption,label,summary,button,a,span,strong,small,td,th) {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
body :is(h1,h2,h3,h4) { text-wrap: balance; }
body :is(p,li,dd,figcaption) { text-wrap: pretty; }
body a[href^="mailto:"], body .technical-address { overflow-wrap: anywhere !important; }
@media (max-width: 600px) {
  body main h1 { font-size: clamp(1.85rem, 7.8vw, 2.6rem) !important; }
  body main h2 { font-size: clamp(1.5rem, 6.5vw, 2.1rem) !important; }
  body main h3 { font-size: clamp(1.25rem, 5.5vw, 1.7rem) !important; }
}

/* Each sentence starts on its own line; short meaning groups stay together. */
body .agenda-preview > div { min-width: 0; }
body .agenda-preview .agenda-preview-title { letter-spacing: -.02em; word-spacing: normal; line-height: 1.25; }
body .agenda-preview .agenda-preview-title > span { display: block; }

/* One heading and price treatment for every training offer. */
body .course-title-main { display: block; color: #07356c; }
body .course-title-detail { display: block; color: #176a70; font-size: .78em; line-height: 1.35; margin-top: .28em; letter-spacing: -.015em; }
body .formation-card .card-price { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; margin: auto 0 1rem; padding-top: .5rem; }
body .formation-card .card-price-label { color: #36566a; font-size: 1rem; font-weight: 600; line-height: 1.4; }
body .formation-card .card-price strong { display: block; color: #96365f; font-size: 1.35rem; line-height: 1.25; white-space: nowrap; }
body :is(.price-panel, .pricing-rate-list, .agenda-event-actions) strong { color: #96365f; }

/* Reserve the same footer space in each catalogue card, at every breakpoint. */
body .formation-card .card-price-note { color: #36566a; font-size: .9rem; font-weight: 400; line-height: 1.4; min-height: 2.8em; }
body .formation-card .card-tags { margin-top: 0; min-height: 2.65em; }
@media (max-width: 620px) {
  body .formation-card .card-price-note { min-height: 0; }
  body .formation-card .card-price-note:empty { display: none; }
  body .formation-card .card-tags { min-height: 0; }
}

/* Compact catalogue cards: shared footer alignment without oversized empty slots. */
body .formation-grid { align-items: stretch; }
body .formation-grid .formation-card { min-height: 0; padding: 1.5rem; }
body .formation-grid .formation-card h3 { margin: 1rem 0 .75rem; font-size: clamp(1.25rem, 1.65vw, 1.55rem); line-height: 1.25; }
body .formation-grid .formation-card > p:not(.card-price):not(.card-tags) { margin: 0 0 1rem; font-size: 1rem; line-height: 1.55; }
body .formation-grid .formation-card .card-price { gap: .25rem; margin: auto 0 .85rem; padding-top: .25rem; }
body .formation-grid .formation-card .card-price-note { min-height: 1.4em; }
body .formation-grid .formation-card .card-price-note:empty { visibility: hidden; }
body .formation-grid .formation-card .card-tags { margin: 0 0 .75rem; min-height: 0; line-height: 1.45; }
body .formation-grid .formation-card .text-link { margin-top: 0; }
@media (max-width: 620px) {
  body .formation-grid .formation-card { padding: 1.25rem; }
  body .formation-grid .formation-card h3 { font-size: 1.35rem !important; }
  body .formation-grid .formation-card .card-price { margin-top: 0; }
  body .formation-grid .formation-card .card-price-note:empty { display: none; }
}
