/* ═══ MON ESPACE — maquette 40 (25/10) : une fenêtre sur le configurateur assombri ═══ */
.esp-voile, .esp-voile * { box-sizing: border-box; }
.esp-voile button { font-family: inherit; }
.esp-voile { background: rgba(20, 22, 28, .45); display: grid; place-items: center; font-family: Manrope, system-ui, sans-serif; font-size: 13px; color: #1d2026; }
.esp-fen { width: min(1040px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); background: #fcfcfd; border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.esp-tete { height: 56px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid #e2e4e8; }
.esp-tete h2 { margin: 0; font-size: 15px; font-weight: 600; }
.esp-tete span { font-size: 12px; color: #5b6068; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esp-retour { height: 30px; padding: 0 12px; border: 1px solid #e2e4e8; background: #fcfcfd; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: #1d2026; cursor: pointer; flex: 0 0 auto; }
.esp-retour:hover { background: #f3f4f6; border-color: #d2d5da; }
.esp-corps { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.esp-corps-seul { display: block; padding: 18px; overflow: auto; }
.esp-gauche { border-right: 1px solid #e2e4e8; background: #f7f8f9; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.esp-droite { padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.esp-boite { border: 1px solid #e2e4e8; background: #fcfcfd; border-radius: 8px; padding: 10px 12px; }
.esp-etiq { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: #5b6068; letter-spacing: .1em; margin-bottom: 8px; }
.esp-aide { font-size: 11.5px; color: #5b6068; margin-top: 8px; line-height: 1.4; }
.esp-pastilles { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 37px)); gap: 5px; }
.esp-past { position: relative; aspect-ratio: 1; border-radius: 5px; border: 1px solid rgba(0,0,0,.08); padding: 0; cursor: pointer; box-sizing: border-box; }
.esp-plus { border: 1px dashed #d2d5da; background: #fcfcfd; color: #5b6068; font-size: 16px; display: grid; place-items: center; cursor: pointer; }
.esp-plus:hover { border-color: #2c4d85; color: #2c4d85; }
.esp-retirer { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #d2d5da; background: #fcfcfd; color: #1d2026; font-size: 11px; line-height: 1; padding: 0; cursor: pointer; display: none; }
.esp-past:hover .esp-retirer, .esp-logo:hover .esp-retirer, .esp-retirer:focus-visible { display: block; }
.esp-menu-c { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f2; }
.esp-menu-c .esp-aide { margin: 0 0 6px; }
.esp-autre-c { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 500; cursor: pointer; }
.esp-autre-c input { width: 34px; height: 24px; border: 1px solid #e2e4e8; border-radius: 5px; padding: 0; background: none; cursor: pointer; }
.esp-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.esp-logo { position: relative; height: 50px; border-radius: 6px; background: #f3f4f6; border: 1px solid #e2e4e8; box-sizing: border-box; }
.esp-logo > button:first-child { width: 100%; height: 100%; border: 0; background: none; padding: 4px; cursor: pointer; border-radius: 6px; }
.esp-logo > button:first-child:hover { box-shadow: inset 0 0 0 2px #2c4d85; }
.esp-logo > button:first-child { position: relative; }
.esp-logo img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.esp-lignes a { color: #2c4d85; font-weight: 600; }
.esp-logo.esp-plus { border-style: dashed; background: #fcfcfd; }
.esp-credits { display: flex; justify-content: space-between; align-items: center; }
.esp-credits .esp-etiq { margin-bottom: 0; }
.esp-credits b { font-size: 20px; font-weight: 800; }
.esp-btn { height: 30px; padding: 0 12px; border: 1px solid #e2e4e8; background: #fcfcfd; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 600; color: #1d2026; cursor: pointer; }
.esp-btn:hover { border-color: #d2d5da; background: #f3f4f6; }
.esp-btn-1 { background: #2c4d85; border-color: #2c4d85; color: #fff; }
.esp-btn-1:hover { background: #1f3a63; border-color: #1f3a63; }
.esp-lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.esp-lignes li { display: flex; gap: 6px; align-items: baseline; }
.esp-lignes small { color: #5b6068; flex: 1; }
.esp-lignes span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.esp-msg { font-size: 12px; color: #8a5a00; background: #fff7e6; border: 1px solid #f3dfb0; border-radius: 6px; padding: 8px 10px; }
.esp-titre { font-size: 11.5px; color: #5b6068; font-weight: 500; display: flex; justify-content: space-between; }
.esp-titre + .esp-titre, .esp-grille + .esp-titre, .esp-droite > div + .esp-titre { margin-top: 8px; }
.esp-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; }
.esp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.esp-carte { position: relative; border: 1px solid #e2e4e8; background: #fcfcfd; border-radius: 8px; overflow: hidden; }
.esp-carte:hover { border-color: #2c4d85; }
.esp-carte-btn { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.esp-carte-img { position: relative; display: grid; place-items: center; height: 140px; background: #f3f4f6; overflow: hidden; }
.esp-carte-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.esp-vide-img { font-size: 26px; color: #5b6068; }
.esp-carte-pied { display: flex; flex-direction: column; padding: 8px 10px; gap: 1px; }
.esp-carte-pied b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esp-carte-pied small { font-size: 11px; color: #5b6068; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esp-carte-autre { position: absolute; top: 6px; right: 6px; height: 24px; padding: 0 8px; border: 1px solid #e2e4e8; background: #fcfcfd; border-radius: 5px; font: inherit; font-size: 11px; font-weight: 600; color: #1d2026; cursor: pointer; opacity: 0; transition: opacity .12s; }
.esp-carte:hover .esp-carte-autre, .esp-carte-autre:focus-visible { opacity: 1; }
.esp-nouveau { border-style: dashed; border-color: #d2d5da; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; color: #1d2026; cursor: pointer; }
.esp-nouveau svg { color: #5b6068; }
.esp-nouveau small { font-size: 11px; color: #5b6068; }
.esp-gens { display: flex; flex-wrap: wrap; gap: 8px; }
.esp-gen { width: 84px; height: 84px; border-radius: 6px; border: 1px solid #e2e4e8; background: #f3f4f6; padding: 0; overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.esp-gen:hover { border-color: #2c4d85; }
.esp-gen { position: relative; }
.esp-gen img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.esp-gen.rate { opacity: .55; cursor: default; }
.esp-porte { max-width: 420px; padding: 8px 2px; }
.esp-porte h3 { margin: 0 0 6px; font-size: 16px; }
.esp-porte p { margin: 0 0 14px; color: #5b6068; font-size: 13px; line-height: 1.45; }
.esp-porte-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.esp-porte .esp-btn { height: 36px; padding: 0 16px; font-size: 13px; }
@media (max-width: 720px) {
  .esp-fen { width: 100vw; height: 100dvh; border-radius: 0; }
  .esp-corps { grid-template-columns: 1fr; overflow: auto; }
  .esp-gauche { border-right: 0; overflow: visible; }
  .esp-droite { overflow: visible; order: -1; border-bottom: 1px solid #e2e4e8; }
  .esp-carte-autre { opacity: 1; }
}
