/* Élite Dental — composants (repris du prototype validé le 2026-10-16). Valeurs : tokens.css. */

.ed-section { padding-block: var(--section); }
/* Papier millimétré de la couverture uniquement : trait fin tous les 5 mm, trait appuyé tous les 50 mm */
.ed-trame {
  background-image:
    linear-gradient(rgb(1 121 194 / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(1 121 194 / 0.09) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 12px 12px, 12px 12px;
  background-position: -1px -1px;
}

/* ---------- Typographie ---------- */
.ed-display { font-size: var(--fs-display); line-height: var(--lh-tight); font-stretch: var(--wdth-display); font-weight: var(--fw-light); letter-spacing: -0.01em; }
.ed-h2 { font-size: var(--fs-h2); font-stretch: var(--wdth-title); font-weight: var(--fw-regular); letter-spacing: -0.01em; }
.ed-h3 { font-size: var(--fs-h3); font-stretch: var(--wdth-title); font-weight: var(--fw-semibold); }
.ed-lead { font-size: var(--fs-lead); line-height: 1.55; font-weight: var(--fw-light); color: var(--text-2); max-width: 48ch; }
.ed-prose { max-width: var(--measure-text); color: var(--text-2); }
.ed-prose > * + * { margin-top: var(--s-4); }
.ed-list { display: grid; gap: var(--s-2); }
.ed-list li { position: relative; padding-left: var(--s-5); }
.ed-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--measure); }
.ed-prose h2, .ed-prose h3 { color: var(--text); margin-top: var(--s-6); font-size: var(--fs-h3); font-stretch: var(--wdth-title); font-weight: var(--fw-semibold); }
.ed-label { font-size: var(--fs-label); font-stretch: var(--wdth-label); font-weight: var(--fw-regular); color: var(--text-3); letter-spacing: 0.01em; }
.ed-designation { font-stretch: var(--wdth-title); font-weight: var(--fw-semibold); }

/* ---------- Boutons ---------- */
.ed-btn {
  --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-size: 0.875rem; font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; 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-btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-base) var(--ease-out); }
.ed-btn:hover { --btn-bg: var(--brand-strong); --btn-bd: var(--brand-strong); color: var(--btn-fg); box-shadow: var(--shadow-sheet); }
.ed-btn:hover svg { transform: translateX(4px); }
.ed-btn:active { transform: translateY(1px); }
.ed-btn--line { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--brand); }
.ed-btn--line:hover { --btn-bg: var(--brand); --btn-fg: var(--on-brand); }
.ed-btn--on-brand { --btn-bg: var(--c-white); --btn-fg: var(--brand); --btn-bd: var(--c-white); }
.ed-btn--on-brand:hover { --btn-bg: var(--c-sky-pale); --btn-bd: var(--c-sky-pale); --btn-fg: var(--brand-strong); }
.ed-btn--ghost-on-brand { --btn-bg: transparent; --btn-fg: var(--on-brand); --btn-bd: rgb(255 255 255 / 0.55); }
.ed-btn--ghost-on-brand:hover { --btn-bg: rgb(255 255 255 / 0.1); --btn-bd: var(--c-white); --btn-fg: var(--on-brand); }
.ed-btn[disabled], .ed-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.ed-btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.ed-link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: var(--fw-medium); text-decoration: none; min-height: 44px; }
.ed-link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-out); }
.ed-link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.ed-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: var(--hairline); }
.ed-header__bar { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.ed-logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.ed-logo img { height: 60px; width: auto; }
.ed-nav { margin-left: auto; }
.ed-nav__list { display: flex; align-items: center; gap: var(--s-1); }
.ed-nav__link, .ed-nav__toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-3);
  color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: var(--fw-regular); background: none; border: 0; cursor: pointer; white-space: nowrap;
  position: relative;
}
.ed-nav__link::after, .ed-nav__toggle::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px; height: 1px; background: var(--measure);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out);
}
.ed-nav__link:hover::after, .ed-nav__toggle:hover::after, .ed-nav__link[aria-current="page"]::after, .ed-nav__item--current > .ed-nav__toggle::after { transform: scaleX(1); }
.ed-nav__link:hover, .ed-nav__toggle:hover { color: var(--brand); }
.ed-nav__link[aria-current="page"], .ed-nav__item--current > .ed-nav__toggle { color: var(--brand); }
.ed-nav__toggle svg { width: 12px; height: 12px; transition: transform var(--t-base) var(--ease-out); }
.ed-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ed-nav__item { position: relative; }
.ed-sub {
  position: absolute; top: calc(100% + 13px); left: 50%; width: min(720px, 80vw); transform: translateX(-38%);
  background: var(--surface); border: var(--hairline); box-shadow: var(--shadow-lift);
  display: grid; grid-template-columns: repeat(4, 1fr);
  opacity: 0; visibility: hidden; translate: 0 -6px;
  transition: opacity var(--t-base) var(--ease-out), translate var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.ed-sub[data-open="true"] { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.ed-sub__col { padding: var(--s-5) var(--s-4); border-left: var(--hairline); }
.ed-sub__col:first-child { border-left: 0; }
.ed-sub__title { display: block; font-weight: var(--fw-semibold); font-stretch: var(--wdth-title); color: var(--text); text-decoration: none; margin-bottom: var(--s-3); line-height: 1.25; }
.ed-sub__title:hover { color: var(--brand); }
.ed-sub__count { display: block; margin-top: 2px; }
.ed-sub__list a { display: block; padding: 5px 0; color: var(--text-2); text-decoration: none; font-size: var(--fs-small); line-height: 1.35; }
.ed-sub__list a:hover { color: var(--brand); }
.ed-header__tel { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: var(--fw-medium); color: var(--text); text-decoration: none; white-space: nowrap; }
.ed-header__tel svg { width: 18px; height: 18px; color: var(--brand); }
.ed-header__cta { min-height: 44px; padding: 0 var(--s-4); font-size: 0.95rem; }
.ed-burger { display: none; }

/* Menu mobile (sommaire) */
.ed-drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--surface); overflow-y: auto;
  padding: var(--s-5) var(--gutter) var(--s-8);
  opacity: 0; visibility: hidden; translate: 0 -8px;
  transition: opacity var(--t-base) var(--ease-out), translate var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.ed-drawer[data-open="true"] { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
/* Astra anime « all » sur les liens : la visibilité héritée arriverait en retard et bloquerait le focus. */
.ed-drawer a, .ed-drawer summary, .ed-drawer button { transition-property: color, background-color, border-color; }
.ed-drawer__list > li { border-bottom: var(--hairline); }
.ed-drawer__link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--text); text-decoration: none; font-size: 1.125rem; font-weight: var(--fw-regular); font-stretch: var(--wdth-title); }
.ed-drawer details summary { list-style: none; cursor: pointer; }
.ed-drawer details summary::-webkit-details-marker { display: none; }
.ed-drawer details summary svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-out); }
.ed-drawer details[open] summary svg { transform: rotate(180deg); }
.ed-drawer__fam { padding: 0 0 var(--s-4); }
.ed-drawer__fam a { display: flex; justify-content: space-between; min-height: 44px; align-items: center; color: var(--text-2); text-decoration: none; border-top: 1px dashed var(--rule); }
.ed-drawer__fam a:first-child { border-top: 0; color: var(--brand); font-weight: var(--fw-medium); }
.ed-drawer__actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- Onglets d'index (bord droit, desktop large) ---------- */
.ed-tabs { position: fixed; right: 0; top: 50%; translate: 0 -50%; z-index: 40; display: none; flex-direction: column; gap: 4px; }
.ed-tabs a {
  writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center;
  width: var(--tabs-w); min-height: 118px; padding: var(--s-3) 0;
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-size: 0.75rem; font-weight: var(--fw-medium); font-stretch: var(--wdth-label); letter-spacing: 0.08em; text-transform: uppercase;
  translate: 8px 0; transition: translate var(--t-base) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.ed-tabs a:nth-child(1) { background: var(--c-cobalt-deep); }
.ed-tabs a:nth-child(2) { background: var(--c-cobalt); }
.ed-tabs a:nth-child(3) { background: #0166AE; }
.ed-tabs a:nth-child(4) { background: var(--c-azure); }
.ed-tabs a:hover, .ed-tabs a:focus-visible, .ed-tabs a[aria-current="true"] { translate: 0 0; color: var(--on-brand); }
.ed-tabs a[aria-current="true"] { background: var(--c-ink); }
@media (min-width: 1360px) { .ed-tabs { display: flex; } }

/* ---------- Planches (figures photo) + cotes ---------- */
.ed-plate { position: relative; margin: 0; }
.ed-plate__frame { position: relative; display: block; width: 100%; background: var(--plate); overflow: hidden; border: 0; padding: 0; cursor: zoom-in; }
.ed-plate__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out), filter var(--t-slow) var(--ease-out); }
.ed-plate--contain .ed-plate__frame { background: var(--surface); }
.ed-plate--contain .ed-plate__frame img { object-fit: contain; padding: 6%; }
.ed-plate__cap { display: flex; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-3); line-height: 1.4; }
.ed-plate__cap b { color: var(--text); font-weight: var(--fw-medium); white-space: nowrap; }
.ed-plate__cap a { color: inherit; }
.ed-plate__cap a:hover { color: var(--brand); }

/* Cotes : filets bleu ciel avec flèches aux extrémités, sans valeur chiffrée (aucune mesure inventée) */
.ed-cote { position: absolute; pointer-events: none; color: var(--measure); }
.ed-cote svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ed-cote line, .ed-cote path { stroke: currentColor; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.ed-cote--x { left: 0; right: 0; top: -18px; height: 12px; }
.ed-cote--y { top: 0; bottom: 0; right: -18px; width: 12px; }
.ed-cote__tag {
  position: absolute; z-index: 2; padding: 4px 10px; background: rgb(7 9 14 / 0.82); color: var(--c-white); border: 1px solid var(--measure);
  font-size: var(--fs-label); font-weight: var(--fw-medium); font-stretch: var(--wdth-label); white-space: nowrap; pointer-events: none;
}
.js .ed-draw { transition: clip-path var(--t-draw) var(--ease-out); clip-path: inset(-4px -4px -4px -4px); }
.js body:not(.ed-editing) .ed-cote--x.ed-draw:not(.is-drawn) { clip-path: inset(-4px 100% -4px -4px); }
.js body:not(.ed-editing) .ed-cote--y.ed-draw:not(.is-drawn) { clip-path: inset(-4px -4px 100% -4px); }
.js .ed-cote--y.ed-draw { transition-delay: 240ms; }

/* Loupe de technicien (adaptation native du composant « Lens » de Magic UI) */
.ed-lens {
  position: absolute; z-index: 3; width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--measure); box-shadow: 0 0 0 6px rgb(7 9 14 / 0.35), var(--shadow-lift);
  background-repeat: no-repeat; opacity: 0; scale: 0.85; transition: opacity var(--t-fast) var(--ease-out), scale var(--t-base) var(--ease-out);
}
.ed-lens::before, .ed-lens::after { content: ""; position: absolute; background: rgb(77 182 230 / 0.7); }
.ed-lens::before { left: 50%; top: 42%; bottom: 42%; width: 1px; }
.ed-lens::after { top: 50%; left: 42%; right: 42%; height: 1px; }
.ed-lens.is-on { opacity: 1; scale: 1; }

/* ---------- Tableau de spécifications ---------- */
.ed-spec { width: 100%; border-collapse: collapse; }
.ed-spec th, .ed-spec td { text-align: left; vertical-align: top; padding: var(--s-3) 0; border-top: var(--hairline); }
.ed-spec tr:last-child th, .ed-spec tr:last-child td { border-bottom: var(--hairline); }
.ed-spec th { width: 34%; padding-right: var(--s-4); font-weight: var(--fw-medium); font-stretch: var(--wdth-label); color: var(--text); font-size: var(--fs-small); }
.ed-spec td { color: var(--text-2); }
.ed-spec td.ed-spec__num { text-align: right; color: var(--brand); font-weight: var(--fw-medium); white-space: nowrap; }
.ed-spec a { text-decoration: none; }
.ed-spec a:hover { text-decoration: underline; }
.ed-spec__src { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--text-3); }
.ed-spec__empty { color: var(--text-3); }

/* Sommaire des familles (couverture) */
.ed-sommaire { border-top: var(--rule-ink); }
.ed-sommaire a {
  display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: var(--s-4);
  min-height: 50px; border-bottom: var(--hairline); color: var(--text); text-decoration: none; font-size: 1.0625rem; font-weight: var(--fw-regular);
  transition: color var(--t-fast) var(--ease-out), padding var(--t-base) var(--ease-out);
}
.ed-sommaire a span:nth-child(2) { color: var(--text-3); font-size: var(--fs-small); font-weight: var(--fw-regular); font-stretch: var(--wdth-label); }
.ed-sommaire a svg { width: 16px; height: 16px; color: var(--brand); transition: transform var(--t-base) var(--ease-out); }
.ed-sommaire a:hover { color: var(--brand); padding-left: var(--s-2); }
.ed-sommaire a:hover svg { transform: translateX(4px); }

/* ---------- Couverture (hero) ---------- */
.ed-cover { position: relative; padding-block: var(--s-6) 0; }
.ed-cover__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s-6), 4vw, var(--s-9)); align-items: start; }
.ed-cover__plate { padding: 18px 18px 0 0; }
.ed-cover__plate .ed-plate__frame { aspect-ratio: 4 / 3.25; }
.ed-cover__plate .ed-cote__tag { left: 54%; top: 37%; }
.ed-leader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.ed-leader line { stroke: var(--measure); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ed-leader__dot { position: absolute; z-index: 2; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--measure); box-shadow: 0 0 0 3px rgb(77 182 230 / 0.25); pointer-events: none; }
.ed-cover__text { padding-top: var(--s-4); }
.ed-cover__text .ed-lead { margin-top: var(--s-5); }
.ed-cover__text .ed-sommaire { margin-top: var(--s-6); }
.ed-cover__text .ed-btn-row { margin-top: var(--s-6); }
.ed-cover__tel { margin-top: var(--s-4); color: var(--text-2); font-size: var(--fs-small); }
.ed-cover__tel a { font-weight: var(--fw-medium); text-decoration: none; }
.ed-band { margin-top: var(--s-8); background: var(--brand); color: var(--on-brand); }
.ed-band ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); padding-block: var(--s-5); font-weight: var(--fw-regular); }
.ed-band li { display: flex; align-items: center; gap: var(--s-3); }
.ed-band li::before { content: ""; width: 18px; height: 1px; background: var(--measure); }

/* ---------- En-tête de section ---------- */
.ed-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-6) var(--s-9); align-items: end; margin-bottom: var(--s-8); }
.ed-head .ed-prose { justify-self: end; }
.ed-head--stack { grid-template-columns: 1fr; align-items: start; gap: var(--s-5); }
.ed-head--stack .ed-prose { justify-self: start; }

/* ---------- Présentation (qui sommes-nous) ---------- */
.ed-about { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--s-8) var(--s-9); }
.ed-about__text .ed-prose { margin-top: var(--s-5); }
.ed-about__text .ed-link-arrow { margin-top: var(--s-4); }

/* ---------- Familles (accueil) ---------- */
.ed-family { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr); gap: var(--s-6) var(--s-8); padding-block: var(--s-7); border-top: var(--rule-ink); }
.ed-family__side { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; }
.ed-family__side .ed-h2 { font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.875rem); }
.ed-family__side p { margin-top: var(--s-4); color: var(--text-2); }
.ed-family__side .ed-link-arrow { margin-top: var(--s-3); }
.ed-family__count { display: block; margin-top: var(--s-2); }
.ed-cells { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-top: var(--hairline); border-left: var(--hairline); }
.ed-cells > * { border-right: var(--hairline); border-bottom: var(--hairline); }
.ed-cell { position: relative; display: flex; flex-direction: column; background: var(--surface); color: var(--text); text-decoration: none; transition: background-color var(--t-base) var(--ease-out); }
.ed-cell__img { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: var(--surface); }
.ed-cell__img img { width: 78%; height: 78%; object-fit: contain; transition: transform var(--t-slow) var(--ease-out); }
.ed-cell__name { padding: var(--s-3) var(--s-4) var(--s-4); font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.ed-cell__meta { margin-top: auto; padding: var(--s-2) var(--s-4) var(--s-3); display: flex; justify-content: space-between; gap: var(--s-2); border-top: 1px dashed var(--rule); margin-inline: var(--s-4); padding-inline: 0; margin-top: var(--s-3); }
.ed-cell:hover { background: #FAFBFC; color: var(--brand); }
.ed-cell:hover .ed-cell__img img { transform: scale(1.06); }
.ed-cell::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--measure); opacity: 0; transition: opacity var(--t-fast) var(--ease-out); pointer-events: none; }
.ed-cell:hover::after, .ed-cell:focus-visible::after { opacity: 1; }

/* ---------- Chaîne numérique ---------- */
.ed-flow { position: relative; }
.ed-flow__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.ed-flow__rail { position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--rule-strong); overflow: hidden; }
.ed-flow__rail::after {
  content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--measure) 50%, transparent);
  opacity: 0;
}
.js .ed-flow.is-drawn .ed-flow__rail::after { animation: ed-beam 2.6s var(--ease-in-out) 0.3s 2 both; }
@keyframes ed-beam { 0% { left: -30%; opacity: 1; } 100% { left: 100%; opacity: 1; } }
.ed-step { position: relative; padding-top: 0; }
.ed-step__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--bg); border: 1px solid var(--brand); color: var(--brand); font-weight: var(--fw-regular); font-stretch: var(--wdth-title); font-size: 1.05rem;
}
.ed-step:last-child .ed-step__n { background: var(--brand); color: var(--on-brand); }
.ed-step h3 { margin-top: var(--s-4); }
.ed-step p { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-small); }
.ed-flow-figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); margin-top: var(--s-8); align-items: start; }
.ed-flow-figure .ed-plate__frame { aspect-ratio: 16 / 10; }

/* ---------- Réalisations ---------- */
.ed-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.ed-chip {
  min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--rule-strong); background: var(--surface); border-radius: var(--radius);
  font-size: var(--fs-small); font-weight: var(--fw-medium); cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.ed-chip:hover { border-color: var(--brand); color: var(--brand); }
.ed-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--c-white); }
.ed-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-6) var(--s-5); }
.ed-work .ed-plate__frame { aspect-ratio: 4 / 3; }
.ed-work[hidden] { display: none; }
.ed-work .ed-plate__frame:hover img { transform: scale(1.035); }
.ed-works__note { margin-top: var(--s-4); }

/* ---------- Envoyer un cas (champ cobalt) ---------- */
.ed-send { background: var(--brand); color: var(--on-brand); }
.ed-send .ed-trame-on { background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px); background-size: 24px 24px; }
.ed-send__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.ed-send h2, .ed-send h3 { color: var(--on-brand); }
.ed-send p { color: var(--on-brand-2); }
.ed-send a:not(.ed-btn), .ed-cta a:not(.ed-btn) { color: var(--c-white); }
.ed-send a:not(.ed-btn):hover, .ed-cta a:not(.ed-btn):hover { color: var(--c-sky-pale); }
.ed-options { margin-top: var(--s-6); border-top: 1px solid rgb(255 255 255 / 0.35); }
.ed-option { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid rgb(255 255 255 / 0.35); }
.ed-option__n { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--measure); color: var(--c-white); }
.ed-option__n svg { width: 20px; height: 20px; }
.ed-option h3 { font-size: 1.0625rem; font-weight: var(--fw-semibold); }
.ed-option p { margin-top: var(--s-2); }
.ed-send__tel { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); }
.ed-send__tel a { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); font-weight: var(--fw-light); font-stretch: var(--wdth-title); text-decoration: none; }
.ed-send__tel a:hover { color: var(--c-sky-pale); }

/* Feuille de formulaire */
.ed-sheet { background: var(--surface); color: var(--text); padding: clamp(var(--s-5), 3vw, var(--s-7)); box-shadow: var(--shadow-lift); }
.ed-sheet h2, .ed-sheet h3 { color: var(--text); }
.ed-sheet p { color: var(--text-2); }
.ed-form { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.ed-field { display: grid; gap: var(--s-2); }
.ed-field label { font-weight: var(--fw-medium); font-size: var(--fs-small); color: var(--text); }
.ed-field label .req { color: var(--c-danger); margin-left: 2px; }
.ed-field input, .ed-field textarea {
  width: 100%; min-height: 50px; padding: var(--s-3) var(--s-4); font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
  caret-color: var(--brand);
}
.ed-field textarea { min-height: 140px; resize: vertical; }
.ed-field input::placeholder, .ed-field textarea::placeholder { color: var(--text-3); }
.ed-field input:hover, .ed-field textarea:hover { border-color: var(--text-3); }
.ed-field input:focus, .ed-field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px rgb(1 121 194 / 0.22); }
.ed-field[data-invalid="true"] input, .ed-field[data-invalid="true"] textarea { border-color: var(--c-danger); }
.ed-field__error { display: none; color: var(--c-danger); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.ed-field[data-invalid="true"] .ed-field__error { display: block; }
.ed-form__note { font-size: 0.8125rem; color: var(--text-3); }
.ed-form__status { padding: var(--s-4); border: 1px solid; font-weight: var(--fw-medium); }
.ed-form__status[data-state="success"] { border-color: var(--c-success); color: var(--c-success); background: #EEF8F2; }
.ed-form__status[data-state="error"] { border-color: var(--c-danger); color: var(--c-danger); background: #FCEFEF; }
.ed-form__status[hidden] { display: none; }
.ed-btn.is-loading { pointer-events: none; opacity: 0.8; }
.ed-btn.is-loading svg { animation: ed-spin 0.9s linear infinite; }
@keyframes ed-spin { to { transform: rotate(360deg); } }

/* ---------- Pages gamme / fiche ---------- */
.ed-crumbs { padding-block: var(--s-5) 0; font-size: var(--fs-small); color: var(--text-3); }
.ed-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ed-crumbs li { white-space: nowrap; }
.ed-crumbs li + li::before { content: "›"; margin-right: var(--s-2); color: var(--rule-strong); }
.ed-crumbs a { color: var(--text-2); text-decoration: none; }
.ed-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.ed-crumbs [aria-current] { color: var(--text); }

.ed-pagehead { padding-block: var(--s-6) var(--s-8); }
.ed-pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6) var(--s-9); align-items: start; }
.ed-pagehead__grid > div:first-child { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.ed-pagehead .ed-display { font-size: var(--fs-display); }
.ed-pagehead .ed-count { margin-top: var(--s-4); }

.ed-rows { border-top: var(--rule-ink); }
.ed-row { display: grid; grid-template-columns: 180px minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: var(--s-6); align-items: center; padding-block: var(--s-5); border-bottom: var(--hairline); color: inherit; text-decoration: none; position: relative; }
.ed-row__img { aspect-ratio: 1 / 1; background: var(--surface); display: grid; place-items: center; overflow: hidden; border: var(--hairline); }
.ed-row__img img { width: 82%; height: 82%; object-fit: contain; transition: transform var(--t-slow) var(--ease-out); }
.ed-row__name { font-size: var(--fs-h3); line-height: 1.2; }
.ed-row__name small { display: block; margin-top: var(--s-2); font-size: var(--fs-label); text-transform: none; letter-spacing: 0; }
.ed-row__desc { color: var(--text-2); font-size: var(--fs-small); max-width: 62ch; }
.ed-row__go { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--brand); font-weight: var(--fw-medium); white-space: nowrap; }
.ed-row__go svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-out); }
.ed-row:hover .ed-row__name { color: var(--brand); }
.ed-row:hover .ed-row__img img { transform: scale(1.07); }
.ed-row:hover .ed-row__go svg { transform: translateX(4px); }
.ed-row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--measure); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease-out); }
.ed-row:hover::before { transform: scaleX(1); }
.ed-subgroup { margin-top: var(--s-8); }
.ed-subgroup .ed-prose { margin: var(--s-4) 0 var(--s-6); }

/* Fiche produit */
.ed-fiche { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-7) var(--s-9); align-items: start; }
.ed-fiche__plate { padding: 18px 18px 0 0; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.ed-fiche__plate .ed-plate__frame { aspect-ratio: 4 / 3; }
.ed-fiche__plate .ed-cote__tag { left: var(--s-4); bottom: var(--s-4); }
.ed-fiche__body .ed-prose { margin-top: var(--s-5); }
.ed-fiche__body .ed-spec { margin-top: var(--s-6); }
.ed-fiche__body .ed-btn-row { margin-top: var(--s-6); }
.ed-carac { margin-top: var(--s-8); }
.ed-carac__list { margin-top: var(--s-5); border-top: var(--rule-ink); }
.ed-carac__item { border-bottom: var(--hairline); }
.ed-carac__item summary {
  display: grid; grid-template-columns: 1fr 20px; gap: var(--s-3); align-items: center; min-height: 60px; cursor: pointer; list-style: none;
  font-weight: var(--fw-medium); font-size: 1.0625rem;
}
.ed-carac__item summary::-webkit-details-marker { display: none; }
.ed-carac__item summary svg { width: 16px; height: 16px; color: var(--brand); transition: transform var(--t-base) var(--ease-out); }
.ed-carac__item[open] summary svg { transform: rotate(45deg); }
.ed-carac__item summary:hover { color: var(--brand); }
.ed-carac__item p { padding: 0 0 var(--s-5); color: var(--text-2); max-width: 70ch; }
.ed-planches { margin-top: var(--s-9); }
.ed-planches__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-6) var(--s-5); margin-top: var(--s-6); }
.ed-planches__grid .ed-plate__frame { aspect-ratio: 4 / 3; }
.ed-planches__grid--single { grid-template-columns: minmax(0, 760px); }
.ed-empty { display: grid; place-items: center; min-height: 160px; border: 1px dashed var(--rule-strong); color: var(--text-3); font-size: var(--fs-small); text-align: center; padding: var(--s-5); }

/* Bandeau CTA */
.ed-cta { background: var(--brand); color: var(--on-brand); }
.ed-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7); padding-block: var(--s-8); }
.ed-cta h2 { color: var(--on-brand); }
.ed-cta p { color: var(--on-brand-2); margin-top: var(--s-3); }

/* Voisins */
.ed-siblings { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: var(--hairline); border-left: var(--hairline); margin-top: var(--s-6); }
.ed-siblings > * { border-right: var(--hairline); border-bottom: var(--hairline); }
.ed-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-7); border-top: var(--hairline); padding-top: var(--s-5); }
.ed-prevnext a { display: grid; gap: 2px; text-decoration: none; color: var(--text); min-height: 44px; }
.ed-prevnext a:last-child { text-align: right; }
.ed-prevnext a:hover b { color: var(--brand); }

/* Pages documentaires (À propos, Services, Contact) */
.ed-doc { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr); gap: var(--s-6) var(--s-9); }
.ed-doc__toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; border-top: var(--rule-ink); }
.ed-doc__toc a { display: flex; min-height: 44px; align-items: center; border-bottom: var(--hairline); color: var(--text-2); text-decoration: none; font-size: var(--fs-small); }
.ed-doc__toc a:hover { color: var(--brand); }
.ed-doc__body > section + section { margin-top: var(--s-8); padding-top: var(--s-6); border-top: var(--hairline); }
.ed-doc__body .ed-h2 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem); }
.ed-doc__body .ed-prose { margin-top: var(--s-4); }
.ed-coords { display: grid; gap: 0; border-top: var(--rule-ink); margin-top: var(--s-5); }
.ed-coords > div { display: grid; grid-template-columns: 34% 1fr; gap: var(--s-4); padding-block: var(--s-4); border-bottom: var(--hairline); }
.ed-coords dt { font-weight: var(--fw-medium); font-stretch: var(--wdth-label); font-size: var(--fs-small); }
.ed-coords dd { margin: 0; color: var(--text-2); }
.ed-coords a { font-weight: var(--fw-medium); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ed-social { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.ed-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: var(--radius); color: inherit; }
.ed-social a:hover { background: var(--c-white); color: var(--brand); border-color: var(--c-white); }
.ed-social svg { width: 18px; height: 18px; }
.ed-social + .ed-footer__cat { margin-top: var(--s-5); }
.ed-pagehead--contact .ed-pagehead__grid { align-items: start; }
.ed-contact__plate { margin-top: var(--s-7); padding: 18px 18px 0 0; }
.ed-contact__plate .ed-plate__frame { aspect-ratio: 3 / 2; }
.ed-coords .ed-link-arrow { margin-top: var(--s-2); min-height: 44px; }
.ed-map { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--rule-strong); color: var(--text-3); text-align: center; padding: var(--s-5); margin-top: var(--s-5); }

/* ---------- Footer ---------- */
.ed-footer { background: var(--c-cobalt-deep); color: var(--on-brand-2); padding-top: var(--s-9); border-top: 1px solid var(--measure); }
.ed-footer a:not(.ed-btn) { color: var(--c-white); text-decoration: none; }
.ed-footer a:not(.ed-btn):hover { color: var(--c-sky-pale); text-decoration: underline; }
.ed-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.ed-footer__label { display: inline-block; }
.ed-footer__label img { height: 64px; width: auto; }
.ed-footer h2 { color: var(--c-white); font-size: var(--fs-label); font-stretch: var(--wdth-label); font-weight: var(--fw-semibold); letter-spacing: 0.02em; padding-bottom: var(--s-3); border-bottom: 1px solid rgb(255 255 255 / 0.2); margin-bottom: var(--s-3); }
.ed-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.ed-footer address { font-style: normal; margin-top: var(--s-5); line-height: 1.7; }
.ed-footer__bottom { margin-top: var(--s-9); padding-block: var(--s-5); border-top: 1px solid rgb(255 255 255 / 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-small); }

/* ---------- Révélations (adaptation native « Blur Fade ») ---------- */
.js .ed-reveal { transition: opacity var(--t-slow) var(--ease-out), translate var(--t-slow) var(--ease-out), filter var(--t-slow) var(--ease-out); }
.js body:not(.ed-editing) .ed-reveal:not(.is-in) { opacity: 0.001; translate: 0 14px; filter: blur(6px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ed-nav, .ed-header__cta { display: none; }
  .ed-header__tel { margin-left: auto; }
  .ed-burger {
    display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
    background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer; font-weight: var(--fw-medium);
  }
  .ed-burger svg { width: 20px; height: 20px; }
  .ed-cover__grid, .ed-about, .ed-send__grid, .ed-pagehead__grid, .ed-fiche, .ed-flow-figure { grid-template-columns: 1fr; }
  .ed-fiche__plate { position: relative; top: 0; }
  .ed-pagehead__grid > div:first-child { position: static; }
  .ed-cells { --cols: 3 !important; }
  .ed-cover__text { order: -1; padding-top: 0; }
  .ed-cover__text .ed-sommaire { order: 3; }
  .ed-cover__text { display: flex; flex-direction: column; }
  .ed-cover__text .ed-btn-row { order: 2; margin-top: var(--s-5); }
  .ed-cover__tel { order: 2; }
  .ed-cover__plate { margin-top: var(--s-2); }
  .ed-head { grid-template-columns: 1fr; align-items: start; }
  .ed-head .ed-prose { justify-self: start; }
  .ed-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ed-cells { --cols: 3 !important; }
  .ed-family { grid-template-columns: 1fr; }
  .ed-family__side { position: static; }
  .ed-flow__steps { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); }
  .ed-flow__rail { display: none; }
  .ed-row { grid-template-columns: 110px minmax(0, 1fr); gap: var(--s-3) var(--s-5); }
  .ed-row__img { grid-row: span 3; }
  .ed-row__desc, .ed-row__go { grid-column: 2; }
  .ed-doc { grid-template-columns: 1fr; }
  .ed-doc__toc { position: static; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .ed-logo img { height: 40px; }
  .ed-header__tel span { display: none; }
  .ed-header__tel { min-width: 44px; justify-content: center; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
  .ed-burger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ed-cover { padding-top: var(--s-5); }
  .ed-cover__plate { padding: 14px 14px 0 0; }
  .ed-cover__plate .ed-cote__tag { left: auto; right: var(--s-3); top: var(--s-3); }
  .ed-leader, .ed-leader__dot { display: none; }
  .ed-btn-row .ed-btn { flex: 1 1 100%; }
  .ed-flow__steps { grid-template-columns: 1fr; }
  .ed-cells { --cols: 2 !important; }
  .ed-siblings { grid-template-columns: 1fr 1fr; }
  .ed-btn { white-space: normal; text-align: center; }
  .ed-cell__name { padding-inline: var(--s-3); font-size: 0.875rem; }
  .ed-cell__meta { margin-inline: var(--s-3); }
  .ed-row { grid-template-columns: 84px minmax(0, 1fr); }
  .ed-footer__grid { grid-template-columns: 1fr; }
  .ed-spec th { width: 40%; }
  .ed-coords > div { grid-template-columns: 1fr; gap: var(--s-1); }
  .ed-prevnext { grid-template-columns: 1fr; }
  .ed-prevnext a:last-child { text-align: left; }
  .ed-carac__item p { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js body:not(.ed-editing) .ed-reveal:not(.is-in) { opacity: 1; translate: none; filter: none; }
  .js body:not(.ed-editing) .ed-draw:not(.is-drawn) { clip-path: none !important; }
}

@media print {
  .ed-header, .ed-tabs, .ed-drawer, .ed-footer, .ed-filters { display: none !important; }
  body { background: #fff; }
}
