/* Généré par outils/build-metiers.mjs depuis style.css : ne pas modifier à la main */
.editeur, .visuel {
  --encre: #15131f;
  --fond: #fbfaf8;
  --carte: #ffffff;
  --fuchsia: #d62976;
  --fuchsia-fonce: #a3195b;
  --beurre: #ffeadb;
  --lilas: #fde8f1;
  --rose-moyen: #f7a8c9;
  --gris: #6b6878;
  --trait: #ebe8f1;
  --doux: #f7f6fa;
  --degrade: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --titre: "Geist", system-ui, sans-serif;
  --texte: "Geist", system-ui, sans-serif;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1.05rem var(--texte); padding: 17px 28px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-principal { background: var(--degrade); color: #fff; box-shadow: 0 14px 30px -12px rgba(214, 41, 118, .7); }
.btn-principal:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(214, 41, 118, .8); }
.btn-second { background: #fff; color: var(--encre); border: 1px solid #e3e0ea; }
.btn-second:hover { border-color: var(--encre); }
.btn-sombre { background: var(--encre); color: #fff; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.inactif { opacity: .45; box-shadow: none; }
.btn-principal { background: var(--encre); box-shadow: 0 14px 30px -12px rgba(21,19,31,.5); }
.btn-principal:hover { box-shadow: 0 18px 34px -12px rgba(21,19,31,.6); }
.visuel { position: relative; margin: 0; }
.visuel canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; box-shadow: 0 10px 30px rgba(30, 20, 50, .12); }
.visuel-actions { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.visuel-btn { font: 600 .8rem var(--texte); padding: 7px 12px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .94); color: var(--encre); cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.visuel-btn:first-child { background: var(--encre); color: #fff; }
.visuel-btn:hover { transform: translateY(-1px); }
.visuel-btn:focus-visible { outline: 3px solid var(--fuchsia, #d62976); outline-offset: 2px; }

/* Éditeur de visuels (inspiré de Canva) */
body.ed-ouvert { overflow: hidden; }
.editeur { position: fixed; inset: 0; z-index: 1000; background: rgba(21, 19, 31, .62); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ed-boite { background: var(--fond, #fbfaf8); border-radius: 22px; width: min(1180px, 100%); height: min(860px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ed-tete { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 22px; border-bottom: 1px solid var(--trait); }
.ed-tete h3 { margin: 0; font-size: 1.1rem; }
.ed-histo { display: flex; gap: 4px; padding-left: 14px; border-left: 1px solid var(--trait); }
.ed-icone { width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--encre); }
.ed-icone:hover:not(:disabled) { background: #efedf3; }
.ed-icone:disabled { opacity: .3; cursor: default; }
.ed-tete-actions { margin-left: auto; display: flex; gap: 10px; }
.ed-tete-actions .btn { padding: 10px 20px; font-size: .95rem; }
.ed-corps { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.ed-scene { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 22px; background: #efedf3; min-height: 0; overflow: hidden; }
.ed-barre { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 4px 6px 4px 16px; border-radius: 14px; background: transparent; flex-wrap: wrap; }
.ed-barre-active { background: #fff; box-shadow: 0 4px 16px rgba(30, 20, 50, .1); }
.ed-sel-nom { margin: 0; font-size: .88rem; color: var(--gris); }
.ed-barre-active .ed-sel-nom { color: var(--encre); font-weight: 700; padding-right: 10px; border-right: 1px solid var(--trait); }
.ed-sel-outils { display: flex; align-items: center; gap: 6px; }
.ed-sel-outils[hidden], .ed-taille[hidden], .ed-outil[hidden] { display: none; }
.ed-taille { display: flex; align-items: center; gap: 2px; padding-right: 6px; border-right: 1px solid var(--trait); }
.ed-taille output { min-width: 46px; text-align: center; font-size: .85rem; font-weight: 600; }
.ed-outil { border: 0; background: none; padding: 8px 10px; border-radius: 9px; font: 600 .86rem var(--texte); color: var(--encre); cursor: pointer; white-space: nowrap; }
.ed-outil:hover { background: #efedf3; }
.ed-toile { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.ed-toile canvas { height: 100%; max-height: 100%; width: auto; max-width: 100%; aspect-ratio: 4 / 5; display: block; border-radius: 8px; box-shadow: 0 12px 30px rgba(30, 20, 50, .18); touch-action: none; cursor: grab; }
.ed-toile canvas:active { cursor: grabbing; }
.ed-depot { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; border: 3px dashed #d62976; border-radius: 12px; background: rgba(214, 41, 118, .1); font-weight: 700; color: #a8185c; pointer-events: none; }
.ed-survol .ed-depot { display: flex; }
.ed-pages { display: flex; gap: 18px; overflow-x: auto; max-width: 100%; padding: 2px 4px 4px; flex: none; }
.ed-lot { display: flex; flex-direction: column; gap: 5px; }
.ed-lot-nom { font-size: .74rem; font-weight: 600; color: var(--gris); }
.ed-lot-rang { display: flex; gap: 6px; }
.ed-vignette { border: 2px solid transparent; border-radius: 7px; padding: 0; background: none; cursor: pointer; flex: 0 0 48px; width: 48px; }
.ed-vignette canvas { width: 100%; height: auto; display: block; border-radius: 5px; }
.ed-vignette[aria-current="true"] { border-color: #d62976; }
.ed-vignette:hover:not([aria-current="true"]) { border-color: rgba(214, 41, 118, .35); }
.ed-panneau { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--trait); }
.ed-onglets { display: flex; gap: 4px; padding: 12px 14px 0; border-bottom: 1px solid var(--trait); flex: none; }
.ed-onglets button { flex: 1; border: 0; background: none; padding: 10px 6px 12px; font: 600 .92rem var(--texte); color: var(--gris); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ed-onglets button[aria-selected="true"] { color: var(--encre); border-bottom-color: #d62976; }
.ed-vue { flex: 1; overflow-y: auto; padding: 16px 20px; }
.ed-vue[hidden] { display: none; }
.ed-vue h4 { margin: 0 0 4px; font-size: .95rem; }
.ed-champ-ligne { padding: 8px 10px 10px; margin: 0 -10px 4px; border-radius: 12px; transition: background .15s; }
.ed-champ-ligne.ed-actif { background: rgba(214, 41, 118, .07); }
.ed-champ { display: block; font-size: .8rem; font-weight: 600; color: var(--gris); margin: 0 0 5px; }
.ed-actif .ed-champ { color: #a8185c; }
.ed-panneau textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; padding: 9px 11px; border: 1px solid var(--trait); border-radius: 10px; resize: vertical; background: #fff; }
.ed-panneau textarea:focus { outline: 2px solid #d62976; border-color: transparent; }
.ed-photo-ajout { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed rgba(214, 41, 118, .45); border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: var(--encre); }
.ed-photo-ajout:hover { background: rgba(214, 41, 118, .05); }
.ed-photo-ico { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #d62976; color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.ed-photo-ajout span:last-child { font-size: .82rem; color: var(--gris); }
.ed-note { font-size: .84rem; color: var(--gris); margin: 10px 0; }
.ed-lien { background: none; border: 0; padding: 0; color: var(--fuchsia-fonce, #a8185c); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.ed-fonds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ed-pastille { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .12); cursor: pointer; padding: 0; }
.ed-pastille[aria-pressed="true"] { outline: 3px solid #d62976; outline-offset: 2px; }
.ed-auto { width: auto; padding: 0 14px; border-radius: 21px; background: #fff; font: 600 .8rem var(--texte); }
@media (pointer: coarse) { .ed-photo-ajout span:last-child { display: none; } }
.ed-pied { flex: none; padding: 12px 20px; border-top: 1px solid var(--trait); }
.editeur button:focus-visible { outline: 3px solid #d62976; outline-offset: 2px; }
@media (max-width: 860px) {
  .editeur { padding: 0; }
  .ed-boite { border-radius: 0; height: 100%; max-height: none; }
  .ed-tete { padding: 8px 10px; gap: 8px; }
  .ed-tete h3 { display: none; }
  .ed-histo { border: 0; padding: 0; }
  .ed-tete-actions .btn { padding: 9px 14px; font-size: .88rem; }
  .ed-corps { display: flex; flex-direction: column; }
  .ed-scene { flex: none; height: 54vh; padding: 10px 12px; gap: 8px; }
  .ed-barre { min-height: 40px; padding-left: 10px; }
  .ed-barre-active .ed-sel-nom { display: none; }
  .ed-outil { padding: 7px 8px; font-size: .82rem; }
  .ed-panneau { flex: 1; border-left: 0; border-top: 1px solid var(--trait); }
  .ed-onglets { padding: 4px 10px 0; }
  .ed-vue { padding: 12px 16px; }
  .ed-pied { padding: 8px 16px; }
}
