body.app {
  background: linear-gradient(180deg, #f3f8ff 0%, #eef3fa 40%, #f5f5f7 100%) fixed;
  position: relative;
}
body.app::before, body.app::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
body.app::before { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(0, 113, 227, .16), transparent 70%); }
body.app::after { width: 440px; height: 440px; bottom: -160px; left: -140px; background: radial-gradient(circle, rgba(90, 169, 245, .14), transparent 70%); }
.studio-tete h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; }
.studio-tete h1 .serif { font-family: ui-serif, "New York", Georgia, serif; font-style: italic; font-weight: 500; color: var(--action); letter-spacing: -.02em; }
.enregistre {
  padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 4px 14px rgba(11, 31, 58, .06);
}
.progression-barre { height: 6px; background: rgba(11, 31, 58, .08); }
.progression-barre i { background: linear-gradient(90deg, #5aa9f5, var(--action)); box-shadow: 0 0 12px rgba(0, 113, 227, .45); transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.progression li button { transition: background .25s ease, box-shadow .25s ease, color .25s ease; }
.progression li.actif button { background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.carte-etape {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-radius: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 60px -20px rgba(11, 31, 58, .18), 0 2px 8px rgba(11, 31, 58, .05);
}
.etape { animation: entree-studio .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes entree-studio { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.etape-num { display: inline-flex; align-items: center; gap: 8px; }
.etape-num::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.carte-etape input, .carte-etape textarea, .carte-etape select { transition: border-color .2s ease, box-shadow .2s ease; }
.carte-etape input:focus, .carte-etape textarea:focus, .carte-etape select:focus { box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); }
.btn { transition: background .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease; }
.btn:not(.ghost):not(.secondary):not(.danger):hover { box-shadow: 0 8px 22px -8px rgba(0, 113, 227, .55); transform: translateY(-1px); }
@media print { body.app { background: #fff; } body.app::before, body.app::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .etape { animation: none; } }
body.app .studio { padding-top: 14px; row-gap: 16px; }
body.app .carte-etape { padding-top: 28px; }
.etape-style h2 { margin-bottom: 4px; }
.etape-style .modeles { gap: 10px; margin: 12px 0 4px; }
.etape-style .modele { padding: 10px; gap: 2px; }
.etape-style .modele svg { max-width: 54px; margin-bottom: 4px; }
.etape-style .modele span { font-size: .74rem; line-height: 1.3; }
.etape-style > label { margin-top: 12px; }
.etape-style .pastilles { display: grid; grid-template-columns: repeat(12, 28px); justify-content: space-between; gap: 8px; margin: 8px 0 2px; }
.etape-style .pastille { width: 28px; height: 28px; transition: transform .15s ease; }
@media (max-width: 520px) { .etape-style .pastilles { grid-template-columns: repeat(6, 32px); } .etape-style .pastille { width: 32px; height: 32px; } }
.etape-style .pastille:hover { transform: scale(1.1); }
.etape-style .couleur-libre { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 12px 0 0; font-weight: 400; cursor: pointer; }
.etape-style .couleur-libre input[type="color"] { margin: 0; width: 44px; height: 32px; flex-shrink: 0; }
.etape-style .conseil { margin-top: 12px; padding: 10px 14px; }
.carte-etape .nav-etapes {
  position: sticky; bottom: 0; z-index: 5;
  margin: 20px -36px -28px; padding: 14px 36px 20px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border-radius: 0 0 28px 28px;
}
@media (max-width: 520px) { .carte-etape .nav-etapes { margin: 18px -20px -22px; padding: 12px 20px 16px; border-radius: 0 0 22px 22px; } }
@media (max-width: 960px) { .carte-etape .nav-etapes { bottom: 0; padding-bottom: 76px; } }
.apercu-tete { gap: 10px; }
.apercu-tete > span { flex: 1; }
.zoom {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); border-radius: 99px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(11, 31, 58, .08);
}
.zoom button {
  border: 0; background: transparent; color: var(--encre); font: inherit; font-size: .78rem; font-weight: 600;
  height: 28px; min-width: 28px; padding: 0 6px; border-radius: 99px; cursor: pointer;
  display: inline-grid; place-items: center; transition: background .15s ease, color .15s ease;
}
.zoom button:hover:not(:disabled) { background: rgba(0, 113, 227, .1); color: var(--action); }
.zoom button:disabled { opacity: .35; cursor: default; }
.zoom .zoom-valeur { min-width: 52px; font-variant-numeric: tabular-nums; }
.zoom .zoom-valeur.ajuste { color: var(--gris-texte); font-weight: 500; }
#zoom-tout { border-left: 1px solid var(--gris-ligne); border-radius: 0 99px 99px 0; padding: 0 8px; }
.apercu-cadre.en-planche > .paper { position: absolute; visibility: hidden; pointer-events: none; }
.apercu-cadre { position: relative; }
.planche { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.planche .feuille { position: relative; overflow: hidden; background: #fff; border-radius: 4px; box-shadow: var(--ombre-papier); flex-shrink: 0; }
.planche .feuille .paper { position: absolute; top: 0; left: 0; transform-origin: top left; box-shadow: none; }
@media print {
  .planche { display: none !important; }
  .apercu-cadre.en-planche > .paper { position: static; visibility: visible; }
  .apercu-cadre .paper { margin-left: 0 !important; }
}
.relecture { margin: 18px 0; padding: 16px; border: 1px solid var(--gris-ligne); border-radius: var(--r-m); background: linear-gradient(180deg, var(--action-doux), var(--blanc) 70%); display: grid; gap: 12px; }
.relecture-option { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--action); background: var(--blanc); border: 1px solid var(--action-doux); padding: 2px 7px; border-radius: 99px; vertical-align: 2px; }
.relecture-accord { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.relecture-accord input { margin-top: 3px; flex: none; }
#btn-relire { justify-self: start; }
#relecture-liste { display: grid; gap: 10px; }
.relecture-carte { background: var(--blanc); border: 1px solid var(--gris-ligne); border-radius: var(--r-s); padding: 12px 14px; display: grid; gap: 6px; }
.relecture-carte p { margin: 0; }
.relecture-type { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--action-doux); color: var(--action); }
.relecture-type.t-faute, .relecture-type.t-date { background: var(--alerte-doux); color: var(--alerte); }
.relecture-type.t-offre { background: var(--ok-doux); color: var(--ok); }
.relecture-avant del { color: var(--gris-texte); text-decoration-color: var(--danger); }
.relecture-apres ins { text-decoration: none; background: var(--ok-doux); color: var(--encre); padding: 1px 4px; border-radius: 4px; }
.relecture-actions { display: flex; gap: 8px; margin-top: 4px; }
