/* Éditeur de présentation (genre « presentation »). Contrat : EDITEURS.md. Jetons et composants
   de app.css seulement (DESIGN.md, style Finexy, clair et sombre). Classes préfixées ep-.
   Le contenu des diapos garde les couleurs de son thème (contenu de l'utilisateur) ; tout le
   reste suit les jetons. Une diapo fait 960 points de large : --pt vaut un point. */

.ep { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.ep-annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ep-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Barre d'outils */
.ep-barre {
  flex: none; display: flex; align-items: center; gap: var(--e2); min-height: 48px; padding: var(--e1) var(--e3);
  background: var(--background); border-bottom: 1px solid var(--border);
}
.ep-barre-defile { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.ep-barre-defile::-webkit-scrollbar { display: none; }
.ep-barre-fin { flex: none; display: flex; align-items: center; gap: var(--e1); }
.ep-groupe, .ep-groupe-taille { display: flex; align-items: center; gap: 2px; flex: none; }
.ep-sep { width: 1px; height: 20px; margin: 0 var(--e1); background: var(--border); flex: none; }
.ep-espace { flex: 1; min-width: var(--e2); }
.ep-outil { min-width: 32px; padding: 5px 7px; color: var(--foreground); flex: none; }
.ep-outil.discret { color: var(--foreground); }
.ep-outil[aria-pressed="true"] { background: var(--accent); color: var(--accent-foreground); box-shadow: inset 0 0 0 1px var(--border); }
.ep-outil[aria-expanded="true"] { background: var(--accent); }
.ep-outil:focus-visible { box-shadow: var(--anneau); }
.ep-split { gap: 0; }
.ep-split .ep-large { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 6px; }
.ep-split .ep-chevron { min-width: 24px; padding: 5px 4px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ep-split .ep-chevron .ep-ico { width: 14px; height: 14px; }
.ep-couleur { position: relative; }
.ep-couleur .ep-pastille { position: absolute; left: 9px; right: 9px; bottom: 4px; width: auto; height: 3px; border-radius: 2px; box-shadow: none; }
.ep-taille {
  width: 46px; min-height: 30px; padding: 4px; font-size: 13px; text-align: center; -moz-appearance: textfield; appearance: textfield;
  font-variant-numeric: proportional-nums;
}
.ep-taille::-webkit-inner-spin-button, .ep-taille::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ep-presenter.btn, .ep-presenter.btn.discret { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.ep-presenter.btn:hover:not(:disabled), .ep-presenter.btn[aria-expanded="true"] { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-foreground); }
.ep-presenter .ep-ico { fill: currentColor; stroke-width: 1.5; }

/* Corps : miniatures, scène, propriétés */
.ep-corps { flex: 1; min-height: 0; display: flex; }
.ep-colonne { width: 212px; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--background); border-right: 1px solid var(--border); }
/* Le bouton garde toute sa largeur (son contenu ne déborde jamais de son fond arrondi) : quand la
   colonne est étroite, Dupliquer et Supprimer passent à la ligne, alignés à droite */
.ep-colonne-tete { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 2px; padding: var(--e3) var(--e3) var(--e2); }
.ep-nouvelle { flex: 1 0 auto; min-width: max-content; }
.ep-nouvelle .ep-ico { width: 15px; height: 15px; }
.ep-colonne-tete .btn.icone { min-width: 32px; min-height: 32px; }
.ep-colonne-outils { display: flex; gap: 2px; flex: none; margin-left: auto; }
.ep-miniatures { list-style: none; margin: 0; padding: var(--e1) var(--e3) var(--e4); flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: var(--e3); }
.ep-mini {
  position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; align-items: start; flex: none;
  border-radius: var(--r-sm); cursor: pointer; outline: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.ep-mini-num { padding-top: 1px; font-size: 12px; line-height: 16px; text-align: right; color: var(--muted-foreground); font-variant-numeric: proportional-nums; }
.ep-mini[aria-selected="true"] .ep-mini-num { color: var(--foreground); font-weight: 600; }
.ep-mini-vue {
  position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: var(--r-sm);
  box-shadow: var(--anneau-doux); transition: box-shadow .15s var(--courbe);
}
@media (hover: hover) { .ep-mini:hover .ep-mini-vue { box-shadow: 0 0 0 1px var(--border-strong); } }
.ep-mini[aria-selected="true"] .ep-mini-vue { box-shadow: 0 0 0 2px var(--primary); }
.ep-mini:focus-visible .ep-mini-vue { box-shadow: 0 0 0 2px var(--primary), 0 0 0 5px color-mix(in srgb, var(--ring) 28%, transparent); }
.ep-mini-notes { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--background) 88%, transparent); color: var(--muted-foreground); }
.ep-mini-notes .ep-ico { width: 11px; height: 11px; }
.ep-mini.ep-glisse { opacity: .45; }
.ep-mini-repere { list-style: none; flex: none; height: 2px; margin: calc(-1 * var(--e2) + 1px) 0 calc(-1 * var(--e2) + 1px) 22px; border-radius: 2px; background: var(--primary); }

.ep-centre { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--sidebar); }
.ep-plateau { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; padding: var(--e2) 0; }
.ep-scene {
  position: relative; width: 640px; max-width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; outline: none;
  border-radius: 6px; box-shadow: var(--anneau-doux), var(--ombre-carte); touch-action: none; -webkit-user-select: none; user-select: none;
}
.ep-scene:focus-visible { box-shadow: var(--anneau-doux), 0 0 0 3px color-mix(in srgb, var(--ring) 32%, transparent); }
.ep-scene.ep-depot { outline: 2px dashed var(--primary); outline-offset: 6px; }

/* Une diapo, partout la même : scène, miniature, diaporama, impression */
.ep-diapo { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; --pt: calc(100cqw / 960); --ep-encre: #1B2335; }
.ep-el { position: absolute; box-sizing: border-box; outline: none; }
.ep-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.ep-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; -webkit-user-drag: none; user-select: none; }
.ep-logo { position: absolute; right: 3%; bottom: 3%; width: 9%; height: 8%; object-fit: contain; }
.ep-img-vide {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: calc(6 * var(--pt));
  border: 1px dashed color-mix(in srgb, var(--ep-encre) 40%, transparent); border-radius: calc(6 * var(--pt));
  background: color-mix(in srgb, var(--ep-encre) 5%, transparent); color: color-mix(in srgb, var(--ep-encre) 60%, transparent);
  font: 600 calc(14 * var(--pt)) / 1.2 Arial, sans-serif;
}
.ep-img-vide .ep-ico { width: calc(32 * var(--pt)); height: calc(32 * var(--pt)); }
.ep-trait { outline: calc(var(--ep-trait-ep) * var(--pt)) solid var(--ep-trait); outline-offset: calc(var(--ep-trait-ep) * var(--pt) / -2); }
.ep-txt { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; padding: calc(3.6 * var(--pt)) calc(7.2 * var(--pt)); }
.ep-flux {
  position: relative; min-width: 1px; font-size: calc(var(--t, 18) * var(--pt)); line-height: 1.2; font-weight: 400;
  white-space: pre-wrap; overflow-wrap: anywhere; outline: none; caret-color: currentColor;
}
.ep-flux p { margin: 0; }
.ep-flux ul, .ep-flux ol { margin: 0; padding-left: 1.3em; }
.ep-flux strong, .ep-flux b, .ep-gras { font-weight: 700; }
.ep-flux em, .ep-flux i, .ep-italique { font-style: italic; }
.ep-souligne { text-decoration: underline; }
.ep-flux .ep-t { font-size: calc(var(--t) * var(--pt)); }
.ep-vide > .ep-flux::before {
  content: attr(data-indice); position: absolute; left: 0; right: 0; top: 0; opacity: .42; pointer-events: none;
}
.ep-vide > .ep-flux:has(> ul:first-child, > ol:first-child)::before { left: 1.3em; }
.ep-scene .ep-el-texte:has(.ep-vide) { outline: 1px dashed color-mix(in srgb, var(--ep-encre) 28%, transparent); outline-offset: -1px; }
.ep-scene .ep-el { cursor: move; }
.ep-scene .ep-en-edition, .ep-scene .ep-en-edition .ep-flux { cursor: text; }
.ep-scene .ep-en-edition .ep-flux { -webkit-user-select: text; user-select: text; }
.ep-scene .ep-el:focus-visible:not(.ep-choisi) { outline: 2px solid color-mix(in srgb, var(--ring) 60%, transparent); outline-offset: 2px; }

/* Sélection : cadre, poignées, repères d'alignement, lasso */
.ep-calque { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ep-cadre { position: absolute; box-sizing: border-box; outline: 1.5px solid var(--primary); }
.ep-cadre-edition { outline-style: dashed; }
.ep-poignee {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-sizing: border-box; pointer-events: auto; touch-action: none;
  background: var(--background); border: 1.5px solid var(--primary); border-radius: 3px; box-shadow: 0 1px 2px oklch(0.2 0.03 262 / .25);
}
.ep-poignee::before { content: ""; position: absolute; inset: -8px; }
.ep-p-nw { left: 0; top: 0; cursor: nwse-resize; }
.ep-p-n { left: 50%; top: 0; cursor: ns-resize; }
.ep-p-ne { left: 100%; top: 0; cursor: nesw-resize; }
.ep-p-e { left: 100%; top: 50%; cursor: ew-resize; }
.ep-p-se { left: 100%; top: 100%; cursor: nwse-resize; }
.ep-p-s { left: 50%; top: 100%; cursor: ns-resize; }
.ep-p-sw { left: 0; top: 100%; cursor: nesw-resize; }
.ep-p-w { left: 0; top: 50%; cursor: ew-resize; }
.ep-rotation { left: 50%; top: -22px; border-radius: 50%; cursor: grab; }
.ep-rotation::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 12px; margin-left: -.75px; background: var(--primary); }
.ep-repere-x { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 1px dashed var(--primary); }
.ep-repere-y { position: absolute; left: -8px; right: -8px; height: 0; border-top: 1px dashed var(--primary); }
.ep-lasso { position: absolute; border: 1px solid var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
@media (pointer: coarse) {
  .ep-poignee { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; }
  .ep-poignee::before { inset: -10px; }
  .ep-rotation { top: -30px; }
  .ep-rotation::after { height: 14px; }
}

/* Notes de l'orateur */
.ep-notes { flex: none; padding: var(--e2) var(--e4) var(--e3); background: var(--background); border-top: 1px solid var(--border); }
.ep-notes-bouton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 8px; margin-left: -8px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--muted-foreground); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ep-notes-bouton:hover { background: var(--accent); color: var(--foreground); }
.ep-notes-bouton:focus-visible { outline: none; box-shadow: var(--anneau); }
.ep-notes-bouton .ep-ico:last-child { width: 14px; height: 14px; transition: rotate .2s var(--courbe); }
.ep-notes-bouton[aria-expanded="false"] .ep-ico:last-child { rotate: -90deg; }
.ep-notes-champ { display: block; margin-top: var(--e1); height: 76px; min-height: 52px; max-height: 40vh; resize: vertical; font-size: 14px; line-height: 20px; }
.ep-notes-fermees { padding-bottom: var(--e2); }
.ep-notes-fermees .ep-notes-champ { display: none; }

/* Panneau des propriétés */
.ep-proprietes { width: 280px; flex: none; overflow: auto; padding: var(--e2) var(--e4) var(--e6); background: var(--background); border-left: 1px solid var(--border); }
.ep-sans-panneau .ep-proprietes { display: none; }
.ep-proprietes-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); min-height: 40px; }
.ep-proprietes-titre { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-section { display: grid; gap: 10px; padding: var(--e3) 0; border-top: 1px solid var(--border); }
.ep-proprietes-tete + .ep-section { border-top: 0; padding-top: var(--e1); }
.ep-section-titre { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted-foreground); }
.ep-champ { display: grid; gap: 4px; min-width: 0; }
.ep-champ-lib { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.ep-champ-boite { position: relative; display: flex; align-items: center; }
.ep-nombre { min-height: 32px; padding: 5px 30px 5px 10px; font-size: 13px; font-variant-numeric: proportional-nums; }
.ep-suffixe { position: absolute; right: 10px; font-size: 12px; color: var(--muted-foreground); pointer-events: none; }
.ep-champ-ligne { grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: var(--e3); }
.ep-champ-ligne .ep-suffixe { position: static; text-align: right; }
.ep-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2) 10px; }
.ep-alignements { display: flex; flex-wrap: wrap; gap: 2px; }
.ep-alignements .btn.icone { min-width: 32px; min-height: 32px; color: var(--foreground); }
.ep-choix-couleur { width: 100%; justify-content: flex-start; font-weight: 400; }
.ep-pastille { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--nuance, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 18%, transparent); }
.ep-pastille-aucune { background: linear-gradient(to top right, transparent calc(50% - 1px), var(--destructive) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.ep-segments { display: flex; width: 100%; }
.ep-segments .segment { flex: 1; min-width: 0; padding: 3px 6px; }
.ep-segments .ep-ico { width: 15px; height: 15px; }
.ep-curseur { width: 100%; accent-color: var(--primary); }
.ep-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ep-action { justify-content: flex-start; min-width: 0; }
.ep-action span { overflow: hidden; text-overflow: ellipsis; }
.ep-aide { margin: 0; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.ep-theme-actuel {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--e3); align-items: center;
  width: 100%; padding: 6px; font: inherit; text-align: left; color: var(--foreground); cursor: pointer;
  background: var(--card); border: 0; border-radius: var(--r); box-shadow: var(--anneau-doux);
  transition: background-color .15s var(--courbe), box-shadow .15s var(--courbe);
}
.ep-theme-actuel .eth-mini { grid-row: 1 / span 2; }
.ep-theme-actuel .ep-theme-nom { align-self: end; font-size: 13px; line-height: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-theme-actuel .ep-aide { align-self: start; }
@media (hover: hover) { .ep-theme-actuel:hover { background: var(--accent); } }
.ep-theme-actuel:focus-visible { outline: none; box-shadow: var(--anneau-doux), var(--anneau); }

/* Menus (composant .menu de app.css) et nuancier */
.ep-menu .menu-item svg { flex: none; }
.ep-menu .menu-item kbd { white-space: nowrap; margin-left: auto; padding-left: var(--e3); }
.ep-menu .menu-item > span { white-space: nowrap; }
.ep-menu-couleurs { min-width: 236px; }
.ep-nuancier { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 2px var(--e2) var(--e2); }
.ep-nuance {
  width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--nuance);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 16%, transparent); transition: transform .1s var(--courbe);
}
.ep-nuance:hover { transform: scale(1.08); }
.ep-nuance[aria-checked="true"], .ep-nuance:focus-visible { outline: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 16%, transparent), 0 0 0 2px var(--popover), 0 0 0 4px var(--primary); }
.ep-autre { cursor: pointer; }
.ep-autre-couleur { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.ep-autre-couleur::-webkit-color-swatch-wrapper { padding: 0; }
.ep-autre-couleur::-webkit-color-swatch { border: 1px solid var(--border); border-radius: 50%; }

/* Lecture seule */
.ep-lecture .ep-scene .ep-el { cursor: default; }

/* Diaporama plein écran et vue présentateur */
.ep-plein {
  position: fixed; inset: 0; z-index: 1000; display: grid; grid-template: "principal" minmax(0, 1fr) / minmax(0, 1fr);
  background: #000; color: #fff; outline: none; cursor: none;
}
.ep-plein.ep-curseur-visible { cursor: default; }
.ep-plein-principal { grid-area: principal; position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.ep-plein-scene { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; }
.ep-plein-numero {
  position: absolute; right: 16px; bottom: 14px; padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 20px;
  background: rgb(0 0 0 / .45); color: rgb(255 255 255 / .8); opacity: 0; transition: opacity .2s var(--courbe); font-variant-numeric: proportional-nums;
}
.ep-plein-quitter {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgb(0 0 0 / .45); color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s var(--courbe);
}
.ep-plein-quitter .ep-ico { width: 18px; height: 18px; }
.ep-curseur-visible .ep-plein-numero, .ep-curseur-visible .ep-plein-quitter, .ep-plein-quitter:focus-visible { opacity: 1; }
.ep-plein-quitter:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ep-noir { position: absolute; inset: 0; z-index: 3; display: grid; place-items: end center; padding-bottom: 24px; background: #000; color: rgb(255 255 255 / .3); font-size: 13px; }
.ep-noir[hidden] { display: none; }
.ep-plein-fin { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .7); font-size: 18px; }
.ep-pres-cote, .ep-pres-outils { display: none; }
.ep-presentateur {
  grid-template: "principal cote" minmax(0, 1fr) "outils outils" auto / minmax(0, 1.75fr) minmax(260px, 1fr);
  gap: var(--e4); padding: var(--e4); background: var(--fond); color: var(--foreground); cursor: default;
}
.ep-presentateur .ep-plein-principal { border-radius: var(--r-carte); background: #000; }
.ep-presentateur .ep-plein-quitter { display: none; }
.ep-presentateur .ep-plein-numero { opacity: 1; }
.ep-presentateur .ep-pres-cote { grid-area: cote; display: flex; flex-direction: column; gap: var(--e2); min-height: 0; }
.ep-presentateur .ep-pres-outils { grid-area: outils; display: flex; align-items: center; gap: var(--e2); flex-wrap: wrap; }
.ep-pres-lib { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted-foreground); }
.ep-pres-suivante-vue { position: relative; flex: none; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--anneau-doux); }
.ep-pres-fin { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 13px; color: var(--muted-foreground); }
.ep-pres-notes { flex: 1; min-height: 0; overflow: auto; padding: var(--e4); border-radius: var(--r-carte); background: var(--card); box-shadow: var(--anneau-doux), var(--ombre-carte); font-size: 20px; line-height: 1.5; white-space: pre-wrap; }
.ep-pres-notes.ep-pres-sans { color: var(--muted-foreground); font-size: 15px; }
.ep-pres-position { font-size: 14px; font-weight: 600; font-variant-numeric: proportional-nums; }
.ep-pres-chrono { font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: proportional-nums; }

/* Téléphone et tablette en portrait */
@media (max-width: 1100px) {
  .ep-colonne { width: 176px; }
  .ep-proprietes { width: 256px; }
  .ep-outil-lib { display: none; }
  .ep-presenter .ep-outil-lib { display: inline; }
}
@media (max-width: 820px) {
  .ep-barre { padding: var(--e1) var(--e2); gap: var(--e1); }
  .ep-barre-fin .ep-outil { min-width: 36px; min-height: 36px; }
  .ep-presenter .ep-outil-lib { display: none; }
  .ep-corps { flex-direction: column; overflow-y: auto; overflow-x: hidden; }
  .ep-centre { order: 1; flex: none; }
  .ep-plateau { flex: none; padding: var(--e3) 0; }
  .ep-colonne { order: 2; width: auto; flex: none; border-right: 0; border-top: 1px solid var(--border); }
  .ep-colonne-tete { padding: var(--e2) var(--e3) var(--e1); }
  .ep-nouvelle { flex: none; }
  .ep-miniatures { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: var(--e2) var(--e3) var(--e3); overscroll-behavior-x: contain; }
  .ep-mini { width: 128px; grid-template-columns: minmax(0, 1fr); }
  .ep-mini-num { position: absolute; left: 4px; bottom: 4px; z-index: 1; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--background); text-align: center; box-shadow: var(--anneau-doux); }
  .ep-mini-repere { width: 2px; height: auto; align-self: stretch; margin: 0 calc(-1 * var(--e2) + 1px); }
  .ep-notes { padding: var(--e2) var(--e3); }
  .ep-proprietes {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; width: auto; max-height: min(62dvh, 560px); border-left: 0;
    border-radius: var(--r-carte) var(--r-carte) 0 0; box-shadow: var(--ombre-flotte), 0 0 0 1px var(--border);
    padding: var(--e2) var(--e4) calc(var(--e6) + env(safe-area-inset-bottom));
  }
  .ep-proprietes .inp, .ep-taille { font-size: 16px; }
  .ep-presentateur { grid-template: "principal" auto "outils" auto "cote" minmax(0, 1fr) / minmax(0, 1fr); padding: var(--e3); gap: var(--e3); }
  .ep-presentateur .ep-plein-principal { aspect-ratio: 16 / 9; }
  .ep-presentateur .ep-pres-suivante-vue { display: none; }
  .ep-presentateur .ep-pres-cote > .ep-pres-lib:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-mini-vue, .ep-theme-actuel, .ep-nuance, .ep-notes-bouton .ep-ico, .ep-plein-numero, .ep-plein-quitter { transition: none; }
}

/* Impression (PDF) : une diapo par page paysage, au format 16:9 */
.ep-impression { display: none; }
@media print {
  @page ep-diapo { size: 338.67mm 190.5mm; margin: 0; }
  html.impression-document .ep-barre, html.impression-document .ep-corps, html.impression-document .ep-menu,
  html.impression-document .ep-plein, html.impression-document .ep-annonce { display: none !important; }
  html.impression-document .ep { display: block !important; height: auto !important; }
  html.impression-document .ep-impression { display: block !important; }
  html.impression-document .ep-page {
    page: ep-diapo; position: relative; width: 338.67mm; height: 190.5mm; overflow: hidden; break-after: page; break-inside: avoid;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  html.impression-document .ep-page:last-child { break-after: auto; }
  html.impression-document .ep-page-diapo { position: absolute; inset: 0; container-type: inline-size; }
  html.impression-document .ep-page .ep-diapo { border-radius: 0; }
}
.ep-flux.ep-capitales { text-transform: uppercase; letter-spacing: .06em; }
.ep-diapo[data-cadres="arrondi"] .ep-img { border-radius: calc(14 * var(--pt)); }
.ep-diapo[data-cadres="ombre"] .ep-img { border-radius: calc(4 * var(--pt)); box-shadow: 0 calc(8 * var(--pt)) calc(24 * var(--pt)) calc(-8 * var(--pt)) rgb(0 0 0 / .4); }
.ep-diapo[data-cadres="cadre"] .ep-img { box-sizing: border-box; padding: calc(8 * var(--pt)); background: var(--ep-papier, #fff); box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
