/* Adaptations des wrappers Elementor à la maquette ; les styles du kit restent distincts. */
body.uccello-site .elementor .e-con:where(:not(.e-atomic-element)) {
  display: block; width: auto; max-width: none; min-height: 0; min-width: 0;
  margin: 0; padding: 0; gap: 0; flex: none; align-self: auto;
  flex-direction: row; flex-wrap: nowrap; align-items: normal;
  align-content: normal; justify-content: normal;
  --container-default-padding-top: 0px; --container-default-padding-right: 0px;
  --container-default-padding-bottom: 0px; --container-default-padding-left: 0px;
}
body.uccello-site .elementor .elementor-widget { min-width: 0; margin: 0; }
body.uccello-site .elementor .uccello-fragment,
body.uccello-site .elementor .uccello-fragment > .elementor-widget-container,
body.uccello-site .elementor .elementor-widget-heading > .elementor-widget-container { display: contents; }
body.uccello-site .elementor .elementor-widget-text-editor { color: inherit; font: inherit; }
body.uccello-site .elementor .elementor-heading-title { font: inherit; color: inherit; margin: 0; padding: 0; letter-spacing: inherit; }
body.uccello-site .elementor .uc-titre .elementor-heading-title > span:not(.mot) { display: block; }
body.uc.uccello-site .elementor .uccello-fragment figure.exemple { margin: var(--espace-10) auto 0; }
body.uc.uccello-site .elementor .uccello-fragment figure.schema { margin-top: var(--espace-9); }
body.uc.uccello-site .elementor figcaption { font-style: normal; }
body.uccello-site .elementor-location-header,
body.uccello-site [data-elementor-type="header"] { position: sticky; top: 0; z-index: 50; }
body.uccello-site.admin-bar .elementor-location-header,
body.uccello-site.admin-bar [data-elementor-type="header"] { top: 32px; }
body.uccello-site .fond { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
body.uccello-site .elementor-editor-active .apparait,
body.uccello-site.elementor-editor-active .apparait,
body.uccello-site.elementor-editor-active .tuile-entree,
body.uccello-site.elementor-editor-active .mot { opacity: 1; transform: none; filter: none; }
@media (max-width: 782px) {
  body.uccello-site.admin-bar .elementor-location-header,
  body.uccello-site.admin-bar [data-elementor-type="header"] { top: 46px; }
}
@media (max-width: 600px) { body.uc.uccello-site .elementor .uccello-fragment figure.exemple { margin-top: var(--espace-9); } }

/* Éléments Atomic (Elementor 4) : seuls les états pilotés par le script restent ici.
   Les styles éditables sont dans les classes globales uc-* et les variables uc-* du kit. */
body.uc.uccello-site #entete.est-defile { background: rgba(250, 251, 254, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ligne); }
/* Titre en deux temps : chaque <span> du titre sur sa ligne, le second en gris clair. */
body.uc.uccello-site [data-uc-mots] > span:not(.mot) { display: block; }
body.uc.uccello-site [data-uc-mots] > span:not(.mot) + span:not(.mot) { color: var(--gris-clair); }
body.uc.uccello-site [data-uc-mots] .mot { display: inline-block; }
/* Les icônes SVG de la médiathèque héritent de la couleur du texte. */
body.uc.uccello-site .e-svg-base svg, body.uc.uccello-site [data-uc-icone] svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { body.uc.uccello-site #entete { transition: none; } }
/* Plan du site (widget Menu, classe pied-plan) : deux colonnes, comme la maquette. */
body.uc.uccello-site .pied-plan .elementor-nav-menu { display: grid; grid-template-columns: repeat(2, auto); gap: var(--espace-2) var(--espace-9); }
body.uc.uccello-site .pied-plan .elementor-item:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) { body.uc.uccello-site .pied-plan .elementor-nav-menu { grid-template-columns: 1fr 1fr; gap: var(--espace-2) var(--espace-6); } }
/* Les animations natives d'Elementor 4 ignorent « réduire les animations » : tout reste en place. */
@media (prefers-reduced-motion: reduce) {
  body.uc.uccello-site [data-interaction-id] { opacity: 1 !important; transform: none !important; translate: none !important; }
}
