/* Élite Dental — habillage des contenus Elementor (widgets natifs + classes du thème) et Gutenberg/Spectra.
   Les classes .ed-* sont posées dans Elementor (Avancé › Classes CSS) : retirer une classe rend
   au widget son apparence Elementor par défaut, sans rien casser. */

/* ---------- Conteneurs Elementor porteurs d'une classe du thème ---------- */
.ed-theme .e-con[class*="ed-"] {
  --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0;
  --margin-top: 0; --margin-bottom: 0;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
  --content-width: 100%; --width: 100%;
}
.ed-theme .elementor-widget-text-editor p:last-child,
.ed-theme .elementor-widget-text-editor ul:last-child { margin-bottom: 0; }
.ed-theme .elementor-widget-text-editor p { margin: 0 0 var(--s-4); }
.ed-theme .elementor-widget { width: 100%; }

/* ---------- Typographie des widgets ---------- */
.ed-theme .ed-display .elementor-heading-title { font-family: var(--font); font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: var(--fw-light); letter-spacing: -0.01em; color: var(--text); margin: 0; }
.ed-theme .ed-h2 .elementor-heading-title { font-family: var(--font); font-size: var(--fs-h2); line-height: var(--lh-title); font-weight: var(--fw-regular); letter-spacing: -0.01em; color: var(--text); margin: 0; }
.ed-theme .ed-h3 .elementor-heading-title { font-family: var(--font); font-size: var(--fs-h3); line-height: var(--lh-title); font-weight: var(--fw-semibold); color: var(--text); margin: 0; }
.ed-theme .ed-lead, .ed-theme .ed-lead p { font-size: var(--fs-lead); line-height: 1.55; font-weight: var(--fw-light); color: var(--text-2); max-width: 48ch; }
.ed-theme .ed-prose { color: var(--text-2); max-width: var(--measure-text); }
.ed-theme .ed-prose h2 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); margin: var(--s-6) 0 var(--s-3); color: var(--text); }
.ed-theme .ed-list { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-2); }
.ed-theme .ed-list li { position: relative; padding-left: var(--s-5); }
.ed-theme .ed-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--measure); }

/* ---------- Boutons (widget Bouton + classe ed-button--*) ---------- */
.ed-theme .ed-button .elementor-button {
  --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 48px; padding: 0 var(--s-5);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.875rem; font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.ed-theme .ed-button .elementor-button:hover { --btn-bg: var(--brand-strong); --btn-bd: var(--brand-strong); color: var(--btn-fg); box-shadow: var(--shadow-sheet); }
.ed-theme .ed-button--line .elementor-button { --btn-bg: transparent; --btn-fg: var(--brand); }
.ed-theme .ed-button--line .elementor-button:hover { --btn-bg: var(--brand); --btn-fg: var(--on-brand); }
.ed-theme .ed-button--on-brand .elementor-button { --btn-bg: var(--c-white); --btn-fg: var(--brand); --btn-bd: var(--c-white); }
.ed-theme .ed-button--on-brand .elementor-button:hover { --btn-bg: var(--c-sky-pale); --btn-bd: var(--c-sky-pale); --btn-fg: var(--brand-strong); }
.ed-theme .ed-button--ghost-on-brand .elementor-button { --btn-bg: transparent; --btn-fg: var(--on-brand); --btn-bd: rgb(255 255 255 / 0.55); }
.ed-theme .ed-button--ghost-on-brand .elementor-button:hover { --btn-bg: rgb(255 255 255 / 0.1); --btn-bd: var(--c-white); --btn-fg: var(--on-brand); }
.ed-theme .ed-button--primary .elementor-button::after,
.ed-theme .ed-button--arrow .elementor-button::after { content: "→"; font-size: 1.05em; transition: transform var(--t-base) var(--ease-out); }
.ed-theme .ed-button .elementor-button:hover::after { transform: translateX(4px); }
.ed-theme .ed-button--arrow .elementor-button { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--brand); padding: 0; min-height: 44px; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: var(--fw-medium); }
.ed-theme .ed-button--arrow .elementor-button:hover { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--link-hover); box-shadow: none; }
.ed-theme .e-con.ed-btn-row { flex-wrap: wrap; gap: var(--s-3); --gap: var(--s-3); }
.ed-theme .ed-btn-row > .elementor-widget { width: auto; }

/* ---------- Couverture ---------- */
.ed-theme .ed-cover__text > .elementor-widget + .elementor-widget,
.ed-theme .ed-cover__text > .e-con { margin-top: var(--s-5); }
.ed-theme .ed-cover__text .ed-sommaire { margin-top: var(--s-6); }
.ed-theme .ed-cover__tel, .ed-theme .ed-cover__tel p { color: var(--text-2); font-size: var(--fs-small); }
.ed-theme .ed-cover__tel a { font-weight: var(--fw-medium); text-decoration: none; }

/* Sommaire (liste d'icônes) : libellé + flèche à droite */
.ed-theme .ed-sommaire .elementor-icon-list-items { border-top: var(--rule-ink); margin: 0; padding: 0; }
.ed-theme .ed-sommaire .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; border-bottom: var(--hairline); }
.ed-theme .ed-sommaire .elementor-icon-list-item a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; color: var(--text); text-decoration: none; transition: color var(--t-fast) var(--ease-out), padding var(--t-base) var(--ease-out); }
.ed-theme .ed-sommaire .elementor-icon-list-text { font-size: 1.0625rem; font-weight: var(--fw-regular); color: inherit; padding: 0; }
.ed-theme .ed-sommaire .elementor-icon-list-icon { order: 2; color: var(--brand); }
.ed-theme .ed-sommaire .elementor-icon-list-icon svg { width: 14px; height: 14px; fill: currentColor; transition: transform var(--t-base) var(--ease-out); }
.ed-theme .ed-sommaire a:hover { color: var(--brand); padding-left: var(--s-2); }
.ed-theme .ed-sommaire a:hover .elementor-icon-list-icon svg { transform: translateX(4px); }

/* Bande cobalt sous la couverture */
.ed-theme .e-con.ed-band { margin-top: var(--s-8); background: var(--brand); color: var(--on-brand); }
.ed-theme .ed-band__list .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); padding: var(--s-5) 0; margin: 0; }
.ed-theme .ed-band__list .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.ed-theme .ed-band__list .elementor-icon-list-icon { display: none; }
.ed-theme .ed-band__list .elementor-icon-list-item::before { content: none; } /* le tiret est porté par le texte */
.ed-theme .ed-band__list .elementor-icon-list-text { color: var(--on-brand); font-weight: var(--fw-regular); display: flex; align-items: center; gap: var(--s-3); }
.ed-theme .ed-band__list .elementor-icon-list-text::before { content: ""; width: 18px; height: 1px; background: var(--measure); }

/* ---------- Planches (widget Image + classe ed-plate) ---------- */
.ed-theme .ed-plate .elementor-widget-container, .ed-theme .ed-plate figure { position: relative; margin: 0; }
.ed-theme .ed-plate a, .ed-theme .ed-plate figure > img, .ed-theme .ed-plate .elementor-widget-container > img { display: block; position: relative; overflow: hidden; background: var(--plate); }
.ed-theme .ed-plate img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--plate); transition: transform var(--t-slow) var(--ease-out); }
.ed-theme .ed-cover__plate .ed-plate img { aspect-ratio: 4 / 3.25; }
.ed-theme .ed-plate--contain img, .ed-theme .ed-plate--contain a { object-fit: contain; background: var(--surface); }
.ed-theme .ed-plate--contain img { padding: 6%; }
.ed-theme .ed-plate .widget-image-caption, .ed-theme .ed-plate figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-3); line-height: 1.4; text-align: left; }
.ed-theme .ed-plate a { cursor: zoom-in; }
/* Cotes : filets bleu ciel à butées, sans valeur chiffrée */
.ed-theme .ed-plate--cotes .elementor-widget-container { padding: 18px 18px 0 0; }
.ed-theme .ed-plate--cotes .elementor-widget-container::before,
.ed-theme .ed-plate--cotes .elementor-widget-container::after { content: ""; position: absolute; pointer-events: none; border-color: var(--measure); border-style: solid; }
.ed-theme .ed-plate--cotes .elementor-widget-container::before { left: 0; right: 18px; top: 3px; height: 12px; border-width: 0 1px; background: linear-gradient(var(--measure), var(--measure)) center / 100% 1px no-repeat; }
.ed-theme .ed-plate--cotes .elementor-widget-container::after { top: 18px; right: 3px; width: 12px; height: calc(100% - 18px - 2.4em); border-width: 1px 0; background: linear-gradient(var(--measure), var(--measure)) center / 1px 100% no-repeat; }

/* ---------- Cellules de gamme (widget Boîte d'image + classe ed-cell) ---------- */
.ed-theme .e-con.ed-cells { display: grid; grid-template-columns: repeat(var(--ed-cols, 5), minmax(0, 1fr)); border-top: var(--hairline); border-left: var(--hairline); }
.ed-theme .ed-cells--1 { --ed-cols: 1; max-width: 260px; }
.ed-theme .ed-cells--2 { --ed-cols: 2; max-width: 520px; }
.ed-theme .ed-cells--3 { --ed-cols: 3; }
.ed-theme .ed-cells--4 { --ed-cols: 4; }
.ed-theme .ed-cells--5 { --ed-cols: 5; }
.ed-theme .ed-cells > .elementor-element { border-right: var(--hairline); border-bottom: var(--hairline); margin: 0; }
.ed-theme .ed-cell .elementor-image-box-wrapper { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); text-align: left; transition: background-color var(--t-base) var(--ease-out); }
.ed-theme .ed-cell .elementor-image-box-img { width: 100% !important; margin: 0 !important; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.ed-theme .ed-cell .elementor-image-box-img img { width: 78%; height: 78%; object-fit: contain; transition: transform var(--t-slow) var(--ease-out); }
.ed-theme .ed-cell .elementor-image-box-content { padding: var(--s-3) var(--s-4) var(--s-4); }
.ed-theme .ed-cell .elementor-image-box-title { margin: 0; font-size: 0.95rem; font-weight: var(--fw-semibold); line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.ed-theme .ed-cell .elementor-image-box-title a { color: var(--text); text-decoration: none; }
.ed-theme .ed-cell .elementor-image-box-title a::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--measure); opacity: 0; transition: opacity var(--t-fast) var(--ease-out); }
.ed-theme .ed-cell .elementor-image-box-wrapper:hover { background: #FAFBFC; }
.ed-theme .ed-cell .elementor-image-box-wrapper:hover .elementor-image-box-title a { color: var(--brand); }
.ed-theme .ed-cell .elementor-image-box-wrapper:hover .elementor-image-box-title a::after,
.ed-theme .ed-cell .elementor-image-box-title a:focus-visible::after { opacity: 1; }
.ed-theme .ed-cell .elementor-image-box-wrapper:hover img { transform: scale(1.06); }
.ed-theme .ed-cell .elementor-image-box-description { display: none; }

/* ---------- Familles, en-têtes de section ---------- */
.ed-theme .ed-family__side > .elementor-widget + .elementor-widget { margin-top: var(--s-4); }
.ed-theme .ed-family__side .ed-h2 .elementor-heading-title { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.875rem); }
.ed-theme .ed-family__side .elementor-widget-text-editor { color: var(--text-2); }
.ed-theme .e-con.ed-section--white { background: var(--surface); }
.ed-theme .e-con.ed-section--flush-top { padding-top: 0; }
.ed-theme .ed-about__text > .elementor-widget + .elementor-widget { margin-top: var(--s-4); }

/* Tableau de spécifications dans un Éditeur de texte */
.ed-theme .ed-spec-wrap table.ed-spec { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.ed-theme .ed-spec th, .ed-theme .ed-spec td { border: 0; border-top: var(--hairline); padding: var(--s-3) 0; background: none; text-align: left; vertical-align: top; }
.ed-theme .ed-spec tr:last-child th, .ed-theme .ed-spec tr:last-child td { border-bottom: var(--hairline); }
.ed-theme .ed-spec th { width: 34%; padding-right: var(--s-4); font-weight: var(--fw-medium); font-size: var(--fs-small); color: var(--text); }
.ed-theme .ed-spec td { color: var(--text-2); }
.ed-theme .ed-spec a { text-decoration: none; }

/* ---------- Chaîne numérique ---------- */
.ed-theme .e-con.ed-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); position: relative; }
.ed-theme .e-con.ed-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--rule-strong); }
.ed-theme .ed-step > .elementor-widget + .elementor-widget { margin-top: var(--s-4); }
.ed-theme .ed-step__n .elementor-heading-title { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; background: var(--surface); border: 1px solid var(--brand); color: var(--brand); font-size: 1.05rem; font-weight: var(--fw-regular); }
.ed-theme .ed-step:last-child .ed-step__n .elementor-heading-title { background: var(--brand); color: var(--on-brand); }
.ed-theme .ed-step .elementor-widget-text-editor { color: var(--text-2); font-size: var(--fs-small); }
.ed-theme .e-con.ed-flow-figure { margin-top: var(--s-8); align-items: start; }
.ed-theme .ed-flow-figure .ed-plate img { aspect-ratio: 16 / 10; }

/* ---------- Réalisations (widgets Image + filtres générés par le thème) ---------- */
.ed-theme .e-con.ed-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-6) var(--s-5); }
.ed-theme .ed-works > .elementor-element[hidden] { display: none; }

/* ---------- Envoyer un cas (champ cobalt) ---------- */
.ed-theme .e-con.ed-send { background: var(--brand); color: var(--on-brand); padding-block: var(--section); }
.ed-theme .ed-send .ed-h2 .elementor-heading-title, .ed-theme .ed-send .ed-h3 .elementor-heading-title { color: var(--on-brand); }
.ed-theme .ed-send .ed-lead, .ed-theme .ed-send .ed-lead p { color: var(--on-brand-2); margin-top: var(--s-4); }
.ed-theme .ed-send__main > .elementor-widget + .elementor-widget,
.ed-theme .ed-send__main > .e-con { margin-top: var(--s-5); }
.ed-theme .ed-option { border-top: 1px solid rgb(255 255 255 / 0.35); padding-top: var(--s-5); }
.ed-theme .ed-option .elementor-icon-box-wrapper { display: flex; gap: var(--s-4); text-align: left; }
.ed-theme .ed-option .elementor-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--measure); color: var(--c-white); font-size: 18px; }
.ed-theme .ed-option .elementor-icon svg { width: 18px; height: 18px; fill: currentColor; }
.ed-theme .ed-option .elementor-icon-box-icon { margin: 0 !important; }
.ed-theme .ed-option .elementor-icon-box-title { margin: 0 0 var(--s-2); color: var(--on-brand); font-size: 1.0625rem; font-weight: var(--fw-semibold); }
.ed-theme .ed-option .elementor-icon-box-description { color: var(--on-brand-2); margin: 0; }
.ed-theme .ed-send__tel p { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); color: var(--on-brand-2); }
.ed-theme .ed-send__tel a { color: var(--c-white); font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); font-weight: var(--fw-light); text-decoration: none; }
.ed-theme .ed-send__tel a:hover { color: var(--c-sky-pale); }
.ed-theme .e-con.ed-sheet { background: var(--surface); color: var(--text); padding: clamp(var(--s-5), 3vw, var(--s-7)); box-shadow: var(--shadow-lift); }
.ed-theme .ed-sheet .ed-h3 .elementor-heading-title { color: var(--text); }
.ed-theme .ed-sheet > .elementor-widget + .elementor-widget, .ed-theme .ed-sheet > .e-con { margin-top: var(--s-5); }
.ed-theme .ed-sheet .elementor-widget-text-editor { color: var(--text-2); }

/* ---------- Bandeau CTA ---------- */
.ed-theme .e-con.ed-cta { background: var(--brand); color: var(--on-brand); }
.ed-theme .e-con.ed-cta__inner { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7); padding-block: var(--s-8); }
.ed-theme .ed-cta .ed-h2 { width: auto; }
.ed-theme .ed-cta .ed-h2 .elementor-heading-title { color: var(--on-brand); }
.ed-theme .ed-cta .ed-btn-row { width: auto; }

/* ---------- Pages de gamme ---------- */
.ed-theme .e-con.ed-pagehead { padding-block: var(--s-6) var(--s-8); }
.ed-theme .ed-pagehead__text > .elementor-widget + .elementor-widget { margin-top: var(--s-4); }
.ed-theme .e-con.ed-rows { border-top: var(--rule-ink); }
.ed-theme .e-con.ed-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; padding-block: var(--s-5); border-bottom: var(--hairline); }
.ed-theme .ed-row__img img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface); border: var(--hairline); padding: 8%; transition: transform var(--t-slow) var(--ease-out); }
.ed-theme .ed-row__body > .elementor-widget + .elementor-widget { margin-top: var(--s-2); }
.ed-theme .ed-row__name .elementor-heading-title { font-size: var(--fs-h3); font-weight: var(--fw-semibold); margin: 0; }
.ed-theme .ed-row__name a { color: var(--text); text-decoration: none; }
.ed-theme .ed-row:hover .ed-row__name a { color: var(--brand); }
.ed-theme .ed-row__desc { color: var(--text-2); font-size: var(--fs-small); max-width: 62ch; }
.ed-theme .ed-row > .ed-button { width: auto; }
.ed-theme .e-con.ed-subgroup { margin-top: var(--s-8); }
.ed-theme .ed-subgroup > .elementor-widget + .elementor-widget { margin-top: var(--s-4); }
.ed-theme .ed-subgroup .ed-rows { margin-top: var(--s-6); }

/* ---------- Fiche produit ---------- */
.ed-theme .e-con.ed-section--fiche { padding-top: var(--s-6); }
.ed-theme .ed-fiche__body > .elementor-widget + .elementor-widget, .ed-theme .ed-fiche__body > .e-con { margin-top: var(--s-5); }
.ed-theme .e-con.ed-carac { margin-top: var(--s-8); }
.ed-theme .ed-carac__list { margin-top: var(--s-5); }
.ed-theme .ed-carac__list .elementor-toggle { border-top: var(--rule-ink); }
.ed-theme .ed-carac__list .elementor-toggle-item { border-bottom: var(--hairline); margin: 0; }
.ed-theme .ed-carac__list .elementor-tab-title { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 60px; padding: 0; border: 0; cursor: pointer; }
.ed-theme .ed-carac__list .elementor-toggle-title { color: var(--text); font-size: 1.0625rem; font-weight: var(--fw-medium); text-decoration: none; }
.ed-theme .ed-carac__list .elementor-tab-title:hover .elementor-toggle-title, .ed-theme .ed-carac__list .elementor-tab-title.elementor-active .elementor-toggle-title { color: var(--brand); }
.ed-theme .ed-carac__list .elementor-toggle-icon { color: var(--brand); fill: var(--brand); width: auto; }
.ed-theme .ed-carac__list .elementor-toggle-icon svg { width: 10px; fill: var(--brand); }
.ed-theme .ed-carac__list .elementor-tab-content { padding: 0 0 var(--s-5); border: 0; color: var(--text-2); max-width: 70ch; }
.ed-theme .e-con.ed-planches { margin-top: var(--s-9); }
.ed-theme .ed-planches__grid { margin-top: var(--s-6); }
.ed-theme .ed-planches__grid .e-gallery-image { background-color: var(--plate); }
.ed-theme .ed-prevnext p { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-5); border-top: var(--hairline); }
.ed-theme .ed-prevnext a { display: grid; gap: 2px; color: var(--text); text-decoration: none; min-height: 44px; font-weight: var(--fw-semibold); }
.ed-theme .ed-prevnext a:last-child { text-align: right; }
.ed-theme .ed-prevnext a span { font-size: var(--fs-label); font-weight: var(--fw-regular); color: var(--text-3); }
.ed-theme .ed-prevnext a:hover { color: var(--brand); }

/* ---------- Pages documentaires ---------- */
.ed-theme .e-con.ed-doc { display: block; max-width: calc(860px + 2 * var(--gutter)); }
.ed-theme .ed-doc__section + .ed-doc__section { margin-top: var(--s-8); padding-top: var(--s-6); border-top: var(--hairline); }
.ed-theme .ed-doc__section > .elementor-widget + .elementor-widget { margin-top: var(--s-4); }
.ed-theme .ed-doc__body > .ed-plate { margin-top: var(--s-8); }

/* ---------- Fil d'Ariane (Yoast) ---------- */
.ed-theme .ed-crumbs { padding-block: var(--s-5) 0; font-size: var(--fs-small); color: var(--text-3); }
.ed-theme .ed-crumbs p { margin: 0; }
.ed-theme .ed-crumbs a { color: var(--text-2); text-decoration: none; }
.ed-theme .ed-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.ed-theme .ed-crumbs .breadcrumb_last { color: var(--text); }

/* ---------- Gutenberg / Spectra (page Contact) ---------- */
.ed-theme .entry-content .uagb-heading-text, .ed-theme .entry-content .wp-block-heading { font-family: var(--font); }
.ed-theme .entry-content h1.uagb-heading-text { font-size: var(--fs-display); font-weight: var(--fw-light); line-height: var(--lh-tight); }
.ed-theme .entry-content h2.uagb-heading-text { font-size: var(--fs-h2); font-weight: var(--fw-regular); }
.ed-theme .uagb-forms-main-form input, .ed-theme .uagb-forms-main-form textarea { font-family: var(--font); font-size: 1rem; border: 1px solid var(--rule-strong) !important; border-radius: var(--radius) !important; background: var(--bg) !important; color: var(--text) !important; }
.ed-theme .uagb-forms-main-form input:focus, .ed-theme .uagb-forms-main-form textarea:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgb(1 121 194 / 0.22); outline: none; }
.ed-theme .uagb-forms-main-form .uagb-forms-input-label { font-weight: var(--fw-medium); font-size: var(--fs-small); color: var(--text); }
.ed-theme .uagb-forms-main-form .uagb-forms-main-submit-button { background: var(--brand) !important; color: var(--on-brand) !important; border-radius: var(--radius) !important; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.875rem; min-height: 48px; padding: 0 var(--s-5) !important; }

/* ---------- Responsive des contenus ---------- */
@media (max-width: 1180px) {
  .ed-theme .e-con.ed-cover__grid, .ed-theme .e-con.ed-about, .ed-theme .e-con.ed-send__grid, .ed-theme .e-con.ed-pagehead__grid, .ed-theme .e-con.ed-fiche, .ed-theme .e-con.ed-flow-figure, .ed-theme .e-con.ed-head { grid-template-columns: 1fr; display: grid; }
  .ed-theme .ed-cover__text { order: -1; }
  .ed-theme .ed-cells--4, .ed-theme .ed-cells--5 { --ed-cols: 3; }
}
@media (max-width: 900px) {
  .ed-theme .e-con.ed-family { grid-template-columns: 1fr; }
  .ed-theme .e-con.ed-flow { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); }
  .ed-theme .e-con.ed-flow::before { display: none; }
  .ed-theme .e-con.ed-row { grid-template-columns: 110px minmax(0, 1fr); gap: var(--s-3) var(--s-5); }
  .ed-theme .e-con.ed-row > .ed-row__img { grid-row: span 2; }
}
@media (max-width: 600px) {
  .ed-theme .e-con.ed-flow { grid-template-columns: 1fr; }
  .ed-theme .ed-cells--3, .ed-theme .ed-cells--4, .ed-theme .ed-cells--5 { --ed-cols: 2; }
  .ed-theme .e-con.ed-row { grid-template-columns: 84px minmax(0, 1fr); }
  .ed-theme .ed-btn-row > .elementor-widget, .ed-theme .ed-btn-row .elementor-button { width: 100%; }
  .ed-theme .ed-prevnext p { grid-template-columns: 1fr; }
  .ed-theme .ed-prevnext a:last-child { text-align: left; }
}

/* ---------- Page Contact : image Gutenberg et bloc « Envoyer un cas » ---------- */
.ed-theme figure.wp-block-image.ed-plate { position: relative; margin: var(--s-7) 0 0; padding: 18px 18px 0 0; }
.ed-theme figure.wp-block-image.ed-plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--plate); }
.ed-theme figure.wp-block-image.ed-plate--cotes::before { content: ""; position: absolute; left: 0; right: 18px; top: 3px; height: 12px; border: solid var(--measure); border-width: 0 1px; background: linear-gradient(var(--measure), var(--measure)) center / 100% 1px no-repeat; }
.ed-theme figure.wp-block-image.ed-plate figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-3); text-align: left; }
.ed-theme .ed-send-block { background: var(--brand); color: var(--on-brand); padding: var(--section) max(var(--gutter), calc((100% - var(--container)) / 2)); margin: 0 !important; max-width: none !important; }
.ed-theme .ed-send-block h2 { color: var(--on-brand); font-size: var(--fs-h2); font-weight: var(--fw-regular); margin: 0 0 var(--s-4); }
.ed-theme .ed-send-block p, .ed-theme .ed-send-block li { color: var(--on-brand-2); }
.ed-theme .ed-send-block__lead { font-size: var(--fs-lead); font-weight: var(--fw-light); max-width: 48ch; }
.ed-theme .ed-send-block__options { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid rgb(255 255 255 / 0.35); max-width: 760px; }
.ed-theme .ed-send-block__options li { padding: var(--s-5) 0; border-bottom: 1px solid rgb(255 255 255 / 0.35); margin: 0; }
.ed-theme .ed-send-block__options strong { display: block; color: var(--on-brand); font-weight: var(--fw-semibold); margin-bottom: var(--s-2); }
.ed-theme .ed-send-block a { color: var(--c-white); }
.ed-theme .ed-send-block a:hover { color: var(--c-sky-pale); }
.ed-theme .ed-send-block__tel { margin-top: var(--s-6); }
.ed-theme .ed-send-block__tel a { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); font-weight: var(--fw-light); text-decoration: none; margin-left: var(--s-3); }

/* ---------- Neutralisation des règles de composants du prototype sur les conteneurs de widgets ---------- */
.ed-theme .elementor-widget.ed-step__n,
.ed-theme .elementor-widget.ed-option,
.ed-theme .elementor-widget.ed-sommaire,
.ed-theme .elementor-widget.ed-planches__grid,
.ed-theme .elementor-widget.ed-prevnext,
.ed-theme .elementor-widget.ed-send__tel,
.ed-theme .elementor-widget.ed-cell {
  display: block; width: 100%; height: auto; min-height: 0; border: 0; background: none; padding: 0; margin: 0; grid-template-columns: none; color: inherit;
}
.ed-theme .elementor-widget.ed-option { border-top: 1px solid rgb(255 255 255 / 0.35); padding-top: var(--s-5); }
.ed-theme .elementor-widget.ed-planches__grid { margin-top: var(--s-6); }
.ed-theme .ed-option .elementor-icon-box-content { flex: 1 1 auto; }
.ed-theme .elementor-widget :is(h1, h2, h3, h4, h5, h6), .ed-theme .elementor-widget .elementor-icon-box-title { text-transform: none; }

/* Filtres des réalisations (boutons générés : les styles de bouton d'Astra sont neutralisés) */
.ed-theme .ed-filters .ed-chip { color: var(--text); background: var(--surface); text-transform: none; letter-spacing: normal; font-family: var(--font); font-weight: var(--fw-medium); line-height: 1.2; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 0 var(--s-4); min-height: 44px; }
.ed-theme .ed-filters .ed-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.ed-theme .ed-filters .ed-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--c-white); }

/* Options « Envoyer un cas » : icône au-dessus, texte aligné sur le bord gauche de la colonne */
.ed-theme .ed-option .elementor-icon-box-wrapper { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.ed-theme .ed-option .elementor-icon-box-icon { margin: 0 !important; }
.ed-theme .ed-option.elementor-view-default .elementor-icon,
.ed-theme .ed-option .elementor-icon { color: var(--c-white); fill: var(--c-white); border: 1px solid var(--measure); width: 40px; height: 40px; display: grid; place-items: center; font-size: 18px; }
.ed-theme .ed-option .elementor-icon svg { width: 18px; height: 18px; fill: var(--c-white); }
.ed-theme .ed-option .elementor-icon-box-content { text-align: left; }


/* ---------- Mises en page éditoriales (À propos) ---------- */
.ed-theme .e-con.ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7) var(--s-9); align-items: center; }
.ed-theme .e-con.ed-split--media-first > .ed-split__media { order: -1; }
.ed-theme .ed-split__text > .elementor-widget + .elementor-widget, .ed-theme .ed-split__text > .e-con { margin-top: var(--s-5); }
.ed-theme .e-con.ed-pagehead--hero { padding-block: var(--s-7) var(--s-8); }
.ed-theme .ed-plate--square img { aspect-ratio: 1; }
.ed-theme .e-con.ed-materials { padding-block: var(--section); }
.ed-theme .ed-materials .ed-sheet .ed-spec th { width: 32%; }
.ed-theme .ed-vm__item { border-top: 1px solid var(--measure); padding-top: var(--s-5); }
.ed-theme .ed-vm__item + .ed-vm__item { margin-top: var(--s-7) !important; }
.ed-theme .ed-vm__item > .elementor-widget + .elementor-widget { margin-top: var(--s-3); }
.ed-theme .ed-vm__item .ed-prose { font-size: var(--fs-lead); font-weight: var(--fw-light); color: var(--text-2); }
@media (max-width: 1180px) {
  .ed-theme .e-con.ed-split { grid-template-columns: 1fr; }
  .ed-theme .e-con.ed-split--media-first > .ed-split__media { order: 0; }
}

/* ---------- Contact : en-tête en deux colonnes (titre | image) ---------- */
.ed-theme .uagb-block-8d95f981 { background: var(--bg) !important; padding-top: var(--s-7) !important; padding-bottom: var(--s-8) !important; }
.ed-theme .uagb-block-8d95f981 > .uagb-container-inner-blocks-wrap,
.ed-theme .uagb-block-8d95f981.uagb-is-root-container > .uagb-container-inner-blocks-wrap { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7) var(--s-9); align-items: center; max-width: var(--container); width: 100%; margin-inline: auto; }
.ed-theme .uagb-block-8d95f981 figure.wp-block-image.ed-plate { margin: 0; }
@media (max-width: 900px) {
  .ed-theme .uagb-block-8d95f981 > .uagb-container-inner-blocks-wrap,
  .ed-theme .uagb-block-8d95f981.uagb-is-root-container > .uagb-container-inner-blocks-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .ed-theme .uagb-block-8d95f981 figure.wp-block-image.ed-plate { margin-top: var(--s-5); }
}

/* Contact : conteneurs Spectra alignés sur la grille du site (même marge que le fil d'Ariane et les sections). */
.ed-theme .uagb-block-8d95f981.uagb-is-root-container,
.ed-theme .uagb-block-b3bbf95b.uagb-is-root-container { padding-inline: var(--gutter) !important; }
.ed-theme .uagb-block-8d95f981.uagb-is-root-container > .uagb-container-inner-blocks-wrap,
.ed-theme .uagb-block-b3bbf95b.uagb-is-root-container > .uagb-container-inner-blocks-wrap { max-width: var(--container) !important; }

/* ---------- Page introuvable (404.php du thème enfant) ---------- */
.ed-404__inner { padding-block: var(--s-8) var(--section); }
.ed-404__inner > * { max-width: 46rem; }
.ed-404__inner > * + * { margin-top: var(--s-5); }
.ed-404__search label { display: block; font-size: var(--fs-label); font-weight: var(--fw-semibold); margin-bottom: var(--s-2); color: var(--text); }
.ed-404__field { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.ed-404__field input { flex: 1 1 16rem; min-height: 48px; padding: 0 var(--s-4); border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.ed-404__field input:focus-visible { outline: 3px solid var(--azur, #0179C2); outline-offset: 2px; }
.ed-404__links { margin-top: var(--s-6) !important; }
