/* Clôture express (préfixe ce-) : thème clair, gros textes, téléphone d'abord */
@font-face{font-family:"Plus Jakarta Sans";src:url(plus-jakarta-sans-latin.woff2) format("woff2");font-weight:200 800;font-display:swap}
:root{--navy:#052e64;--teal:#0a7a99;--cyan:#0cc0df;--soft:#e3f7fb;--ok:#2e9e3e;--ok-soft:#e8f6ea;--orange:#e67700;--orange-soft:#fff1e0;--ink:#0f1f38;--muted:#5a6b84;--line:#e2e8f1;--bg:#f3f6fb}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-size:17px;color:var(--ink);background:var(--bg);display:flex;flex-direction:column;overflow:hidden}
svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
button{font:inherit;cursor:pointer}
/* en-tête : comme Chiffrage express et Gainable express */
.ce-tete{display:flex;align-items:center;gap:12px;padding:8px 16px;min-height:68px;background:linear-gradient(120deg,var(--navy),#001635 85%);color:#fff;z-index:50;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.ce-burger{display:none;width:44px;height:44px;border:0;border-radius:12px;background:rgba(255,255,255,.1);color:#fff;place-items:center}
.ce-logo{height:48px;width:auto;border-radius:8px;display:block;background:#fff}
.ce-titre{flex:1;min-width:0;display:grid;gap:2px}
.ce-titre h1{margin:0;font-size:20px;line-height:1.2;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.ce-titre>span{font-size:13.5px;color:#bfe9f2}
.ce-gratuit{background:#16a34a;color:#fff;font-weight:800;font-size:11.5px;border-radius:99px;padding:3px 9px;letter-spacing:.3px}
.ce-tete-actions{display:flex;gap:8px}
.ce-tete-btn{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#dff7fb;border-radius:999px;padding:8px 14px;font-size:14.5px;font-weight:700}
.ce-tete-btn svg{width:18px;height:18px;color:var(--cyan)}
.ce-tete-btn:hover{background:rgba(12,192,223,.18);border-color:var(--cyan)}
/* corps : panneau à gauche, plan à droite */
.ce-corps{flex:1;display:flex;min-height:0;position:relative}
.ce-cote-gauche{width:380px;flex:none;display:flex;flex-direction:column;background:var(--bg);border-right:1px solid var(--line);z-index:40;min-height:0}
.ce-voile-menu{display:none}
.ce-etapes{display:flex;list-style:none;margin:0;padding:8px 10px;gap:4px;background:#fff;border-bottom:1px solid var(--line)}
.ce-etapes li{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;font-size:14px;color:var(--muted);padding:7px 2px;border-radius:10px;white-space:nowrap}
.ce-etapes li b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--line);color:var(--muted);font-size:13px}
.ce-etapes li.fait b{background:var(--ok);color:#fff}
.ce-etapes li.actif{background:var(--soft);color:var(--navy);font-weight:800}
.ce-etapes li.actif b{background:var(--teal);color:#fff}
.ce-toile{position:relative;flex:1;min-width:0;background:#dfe5ee;touch-action:none;overflow:hidden}
#ceCanvas{display:block;width:100%;height:100%}
.ce-bandeau{position:absolute;left:12px;right:12px;top:12px;max-width:640px;margin:0 auto;background:rgba(5,46,100,.92);color:#fff;border-radius:12px;padding:10px 14px;font-size:15.5px;font-weight:600;pointer-events:none;text-align:center}
.ce-bandeau:empty{display:none}
.ce-zoom{position:absolute;right:12px;bottom:12px;display:grid;gap:6px}
.ce-zoom button{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--navy);font-size:22px;font-weight:800;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.ce-flottant{display:none}
.ce-panneau{flex:1;overflow-y:auto;padding:14px 16px 28px;display:grid;gap:14px;align-content:start}
.ce-carte{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;display:grid;gap:10px}
.ce-carte h2{margin:0;font-size:18px;color:var(--navy)}
.ce-carte p{margin:0}
.ce-note{font-size:14.5px;color:var(--muted)}
.ce-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;border-radius:14px;background:var(--teal);color:#fff;font-weight:800;font-size:17px;padding:14px 12px;text-align:center}
.ce-btn:disabled{opacity:.45;cursor:not-allowed}
.ce-btn.sec{background:#fff;color:var(--teal);border:2px solid var(--teal)}
.ce-btn.vert{background:var(--ok)}
.ce-ligne{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ce-champ{display:grid;gap:4px;font-size:15px;font-weight:700;color:var(--navy)}
.ce-champ input{font:inherit;font-size:18px;font-weight:700;border:2px solid #cfd8e3;border-radius:12px;padding:10px 12px;width:100%;color:var(--ink);background:#fff}
.ce-champ input:focus{outline:3px solid var(--cyan);border-color:var(--teal)}
.ce-champ small{font-weight:500;color:var(--muted);font-size:13.5px}
.ce-totaux{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ce-total{background:var(--soft);border-radius:14px;padding:12px;display:grid;gap:2px;text-align:center}
.ce-total b{font-size:32px;color:var(--navy);line-height:1.1}
.ce-total span{font-size:14.5px;color:var(--muted);font-weight:700}
.ce-total.orange{background:var(--orange-soft)}
.ce-total.orange b{color:var(--orange)}
.ce-cote{border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:grid;gap:8px}
.ce-cote-t{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.ce-cote-t b{color:var(--navy)}
.ce-cote-t label{display:flex;align-items:center;gap:6px;font-size:14.5px;color:var(--muted)}
.ce-cote-t input{width:96px;font:inherit;font-weight:700;border:2px solid #cfd8e3;border-radius:10px;padding:6px 8px}
.ce-elev{width:100%;height:auto;display:block;background:#f7fafc;border-radius:10px}
.ce-coupe{color:var(--orange);font-weight:700;font-size:14.5px}
.ce-legende{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:var(--muted)}
.ce-legende i{display:inline-block;width:18px;height:8px;border-radius:2px;margin-right:5px;vertical-align:middle}
.ce-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ce-info{margin:0;padding:10px 12px;border-radius:12px;font-weight:700;font-size:15px}
.ce-info.ok{background:var(--ok-soft);color:#1d5f28}
.ce-info.ko{background:#fdecea;color:#8a1f18}
.ce-voile{position:fixed;inset:0;background:rgba(5,20,45,.55);display:grid;place-items:center;padding:16px;z-index:100}
.ce-voile[hidden]{display:none}
.ce-fenetre{background:#fff;border-radius:18px;max-width:480px;width:100%;max-height:90vh;overflow:auto;padding:18px;display:grid;gap:12px}
.ce-fenetre h2{margin:0;color:var(--navy);font-size:20px}
.ce-fenetre ol,.ce-fenetre ul{margin:0;padding-left:22px;display:grid;gap:6px}
.ce-cgu{display:flex;gap:8px;align-items:flex-start;font-size:15px}
.ce-cgu input{width:22px;height:22px;flex:none;margin-top:1px}
.ce-lien{background:none;border:0;padding:0;color:var(--teal);text-decoration:underline;font-size:inherit}
/* téléphone et petite tablette : le panneau devient un tiroir (bouton menu), le plan prend tout l'écran */
@media (max-width:880px){
  .ce-burger{display:grid}
  .ce-tete{gap:8px;padding:6px 10px;min-height:60px}
  .ce-logo{height:40px}
  .ce-titre h1{font-size:17px}
  .ce-titre>span{display:none}
  .ce-tete-btn{padding:9px}
  .ce-tete-btn span{display:none}
  .ce-cote-gauche{position:fixed;top:60px;bottom:0;left:0;width:min(90vw,400px);transform:translateX(-100%);transition:transform .25s ease;box-shadow:0 10px 30px rgba(0,0,0,.25)}
  .ce-cote-gauche.ouvert{transform:none}
  .ce-voile-menu.ouvert{display:block;position:fixed;inset:60px 0 0 0;background:rgba(5,20,45,.45);z-index:35}
  .ce-zoom{bottom:84px}
  .ce-flottant{position:absolute;left:10px;right:10px;bottom:10px;display:flex;gap:8px;align-items:center;background:#fff;border-radius:16px;padding:8px;box-shadow:0 4px 16px rgba(0,0,0,.18)}
  .ce-flottant:empty{display:none}
  .ce-flottant button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:2px solid var(--teal);background:#fff;color:var(--teal);border-radius:12px;padding:10px 6px;font-weight:800;font-size:15px}
  .ce-flottant button.plein{background:var(--ok);border-color:var(--ok);color:#fff}
  .ce-flottant button:disabled{opacity:.4}
  .ce-flottant .ce-compte{flex:1.2;font-size:13.5px;font-weight:700;color:var(--navy);text-align:center;line-height:1.25}
}

.ce-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;max-height:60vh;overflow-y:auto;padding:2px}
.ce-page{display:grid;gap:6px;justify-items:center;background:#f7fafc;border:2px solid var(--line);border-radius:12px;padding:8px;color:var(--navy);font-weight:700;font-size:15px}
.ce-page:hover,.ce-page:focus-visible{border-color:var(--teal);background:var(--soft)}
.ce-page canvas{width:100%;height:auto;min-height:80px;background:#fff;border:1px solid var(--line);border-radius:6px}
.ce-etapes li.libre{cursor:pointer}
.ce-etapes li.libre:hover{background:var(--soft)}
.ce-etapes li[aria-disabled="true"]{opacity:.55}
.ce-nouveau{border:2px solid var(--teal);background:#fff;color:var(--teal);font-weight:800;font-size:15px;border-radius:12px;padding:8px 12px}
.ce-etapes li.libre{cursor:pointer}
.ce-etapes li.libre:hover{background:var(--soft)}
.ce-etapes li[aria-disabled="true"]{opacity:.55}
.ce-nouveau{border:2px solid var(--teal);background:#fff;color:var(--teal);font-weight:800;font-size:15px;border-radius:12px;padding:8px 12px}
@media (max-width:400px){.ce-logo{height:34px}.ce-titre h1{font-size:15.5px}.ce-tete-actions{gap:4px}.ce-tete-btn{padding:7px}}
.ce-btn.rouge{background:#b3261e;color:#fff}
.ce-traces{display:grid;gap:6px}
.ce-trace{display:flex;align-items:center;gap:8px;border:2px solid var(--line);border-radius:12px;padding:6px 6px 6px 8px;cursor:pointer;background:#fff}
.ce-trace:hover{background:var(--soft)}
.ce-trace.choisi{border-color:var(--cyan);background:var(--soft)}
.ce-trace.cache{opacity:.6}
.ce-trace-num{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--teal);color:#fff;font-weight:800;font-size:14px;flex:none}
.ce-trace-nom{flex:1;min-width:0;display:grid;font-size:14px;color:var(--muted)}
.ce-trace-nom b{color:var(--navy);font-size:15.5px}
.ce-icone{width:42px;height:42px;flex:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--teal)}
.ce-icone.rouge{color:#b3261e}
.ce-icone:hover{background:var(--soft)}
.ce-trace-titre{margin:6px 0 0;font-size:16px;color:var(--teal)}
.ce-cgu-texte{background:var(--soft);border-radius:12px;padding:10px 12px;display:grid;gap:6px}.ce-cgu-texte p{margin:0}.ce-cgu-texte ul{margin:0;padding-left:18px;display:grid;gap:5px}
.ce-inter{justify-self:start;display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:4px 2px;font-size:15px;font-weight:700;color:var(--navy)}
.ce-inter-rail{position:relative;width:38px;height:22px;border-radius:99px;background:#c3cede;transition:background .15s}
.ce-inter-rail::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
.ce-inter[aria-checked="true"] .ce-inter-rail{background:var(--teal)}
.ce-inter[aria-checked="true"] .ce-inter-rail::after{left:19px}
/* finitions : boutons côte à côte sur une ligne, liste des tracés compacte */
.ce-actions{align-items:center}
.ce-actions .ce-btn{white-space:nowrap;font-size:16px;padding:12px 8px;gap:6px}
.ce-actions .ce-inter{justify-self:center}
.ce-trace-nom{font-size:13.5px}
.ce-trace-nom b{font-size:15px}
.ce-icone{width:38px;height:38px}
.ce-icone svg{width:20px;height:20px}
[data-t="montant"] .ce-note{font-weight:500}
.ce-note a,.so-note a{color:inherit;text-decoration:underline}
