/* Atelier Lettre au Père Noël — amélioration progressive.
   Styles additionnels, sans refonte des créations 1.9.8 / 1.9.9.
   Exclut volontairement la page d'accueil et les vues autonomes. */

/* Éviter les débordements des contenus Elementor et des extensions. */
body:not(.home):not(.atelier-noel) :is(.entry-content, .elementor-widget-container) {
  overflow-wrap: break-word;
}
body:not(.home):not(.atelier-noel) :is(.entry-content, .elementor-widget-container) img {
  max-width: 100%;
  height: auto;
}
body:not(.home):not(.atelier-noel) .entry-content :is(iframe, video) {
  max-width: 100%;
}
body:not(.home):not(.atelier-noel) .entry-content :is(table, pre) {
  max-width: 100%;
  overflow-x: auto;
}

/* Bibliothèque magique : conserver les couleurs et illustrations de l'extension.
   Seulement des garde-fous de dimensionnement et de lisibilité. */
body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) {
  min-width: 0;
  max-width: 100%;
}
body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) *,
body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) *::before,
body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) *::after {
  box-sizing: border-box;
}
body:not(.home):not(.atelier-noel) .noel26-hero :is(h1, h2, p) {
  overflow-wrap: anywhere;
}
body:not(.home):not(.atelier-noel) .noel26-calendar :is(button, a) {
  min-width: 0;
}
@media (max-width: 767px) {
  body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) {
    width: 100%;
  }
  body:not(.home):not(.atelier-noel) .noel26-hero :is(h1, h2) {
    font-size: clamp(1.9rem, 8vw, 3.25rem);
    line-height: 1.12;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) *,
  body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) *::before,
  body:not(.home):not(.atelier-noel) :is(.noel26-hero, .noel26-categories, .noel26-calendar) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
