/* ============================================================
   CARLYTO — pages Pro : tableau de bord, catalogue pro, commandes,
   factures, présentation, inscription garage (refonte 111).
   Composants locaux à mutualiser dans css/pro-111.css.
   ============================================================ */

/* invitation d'accès (js/pro-acces.js) */
.pro-gate[hidden]{display:none}
.pro-gate-note{align-items:center;flex-wrap:wrap}
.pro-gate-note .gtx{flex:1;min-width:220px}
.pro-gate-note .gtx b{color:var(--c-ink)}
.pro-gate-note .gact{flex:none}

/* en-tête de page avec pictogramme (captures COMMANDES / FACTURES) */
.phead{display:flex;align-items:center;gap:16px}
.phead .pi{width:58px;height:58px;border-radius:12px;background:var(--c-brand-soft);display:grid;place-items:center;flex:none}
.phead .pi .ico{width:28px;height:28px;color:var(--c-ink);stroke-width:1.7}
.phead h1{margin:0;font-size:30px;line-height:1.1;font-weight:700;color:var(--c-ink);letter-spacing:-.01em}
.phead h1 em{font-style:normal;color:var(--c-brand)}
.phead p{margin:4px 0 0;color:var(--c-muted);font-size:14.5px}

/* bandeau sombre avec photo à droite */
.pban{position:relative;overflow:hidden;border-radius:var(--r-card);background:#0E1012;color:#fff;min-height:132px;display:flex;align-items:center}
.pban .ph{position:absolute;top:0;right:0;height:100%;width:58%;object-fit:cover}
.pban::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0E1012 0%,#0E1012 38%,rgba(14,16,18,.55) 58%,rgba(14,16,18,0) 80%)}
.pban .tx{position:relative;z-index:1;padding:20px 26px;max-width:560px}
.pban h2{margin:0;font-size:24px;font-weight:700;line-height:1.15}
.pban h2 em{font-style:normal;color:var(--c-brand)}
/* Bandeau qui porte le titre de la page (Catalogue Pro) : même taille que les autres titres Pro */
.pban h1{margin:0;font-size:30px;font-weight:700;line-height:1.1}
.pban h1 em{font-style:normal;color:var(--c-brand)}
.pban p{margin:6px 0 0;font-size:14px;color:#E6E6E6}
.pban .btn{margin-top:14px}
.pban.tall{min-height:216px}
.pban.tall .ph{width:46%}

/* trois atouts sous un bandeau */
.pfeats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-card);padding:12px 16px}
.pfeats > div{display:flex;align-items:center;gap:12px;min-width:0}
.pfeats .fi{width:36px;height:36px;border-radius:50%;background:var(--c-brand-soft);display:grid;place-items:center;flex:none}
.pfeats .fi .ico{width:18px;height:18px;color:var(--c-ink)}
.pfeats b{display:block;font-size:13px;color:var(--c-ink)}
.pfeats small{display:block;font-size:12px;color:var(--c-muted)}

/* barre de filtres */
.pfil{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.pfil .srch{flex:1 1 260px;display:flex;align-items:center;gap:8px;height:42px;border:1px solid #D4D4D4;border-radius:8px;padding:0 12px;background:#fff}
.pfil .srch .ico{width:17px;height:17px;color:var(--c-muted)}
.pfil .srch input{flex:1;min-width:0;border:none;outline:none;font:inherit;font-size:14px;color:var(--c-ink);background:none}
.pfil .fld{flex:0 1 170px;min-width:140px}
.pfil .fld label{font-size:12px;font-weight:500;color:var(--c-muted)}

/* bas de tableau : compteur + pagination */
.tfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12.5px;color:var(--c-muted)}
.pager{display:flex;gap:6px;flex-wrap:wrap}
.pager button{min-width:32px;height:32px;padding:0 8px;border-radius:8px;border:1px solid var(--c-line);background:#fff;color:var(--c-ink);font-size:13px;display:grid;place-items:center}
.pager button[aria-current]{background:var(--c-dark);border-color:var(--c-dark);color:#fff}
.pager button[disabled]{opacity:.45;cursor:default}
.pager .ico{width:15px;height:15px}
.perpage{display:flex;align-items:center;gap:8px}
.perpage .sel{width:76px;height:32px}

/* cellules de tableau */
.tbl .ref{font-weight:600;color:var(--c-ink);white-space:nowrap}
.tbl .sub{display:block;font-size:11.5px;color:var(--c-muted);max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tbl .act{display:flex;gap:6px;justify-content:flex-end}
.tbl td.vide{padding:0}

/* colonne de droite : listes d'actions, mini-chiffres, mini-listes */
.pro-aside .panel > h2{font-size:16px}
.alist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.alist a{display:flex;align-items:center;gap:12px;padding:9px 4px;border-radius:8px;font-size:13.5px;color:var(--c-ink)}
.alist a:hover{background:var(--c-page)}
.alist .ico{width:19px;height:19px;color:var(--c-ink)}
.alist .chev{margin-left:auto;width:15px;height:15px;color:var(--c-muted)}
.mstats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mstats > div{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:var(--c-page);min-width:0}
.mstats .ico{width:20px;height:20px;color:var(--c-ink)}
.mstats b{display:block;font-size:17px;color:var(--c-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.mstats small{display:block;font-size:11.5px;color:var(--c-muted)}
.mlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.mlist a{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #EFEFEF;color:var(--c-ink)}
.mlist li:last-child a{border-bottom:none}
.mlist .mt{flex:1;min-width:0}
.mlist b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mlist .pill{margin-top:4px}
.mlist .mv{font-size:12.5px;font-weight:600;white-space:nowrap}
.mlist .chev{width:15px;height:15px;color:var(--c-muted)}
.acct{display:flex;gap:12px;align-items:flex-start}
.acct .ai{width:42px;height:42px;border-radius:50%;background:var(--c-page);display:grid;place-items:center;flex:none}
.acct .ai .ico{width:22px;height:22px;color:var(--c-ink)}
.acct h2{margin:0;font-size:16px;color:var(--c-ink)}
.acct .nm{margin-top:6px;font-size:14px;font-weight:600;color:var(--c-ink)}
.acct .sir{font-size:12.5px;color:var(--c-muted)}
.acct .verif,.acct .pill{margin-top:8px}
.acct .lk{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:12.5px;color:var(--c-ink)}
.acct .lk .ico{width:14px;height:14px;color:var(--c-brand)}
.needhelp{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.needhelp .ico{width:26px;height:26px;color:var(--c-ink);flex:none}
.needhelp b{display:block;font-size:14.5px;color:var(--c-ink)}
.needhelp span{display:block;font-size:12.5px;color:var(--c-muted);margin-top:2px}
.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.ticks li{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--c-text)}
.ticks .ico{width:18px;height:18px;color:var(--c-ink);flex:none;margin-top:1px}

/* tableau de bord : cartes de chiffres compactes */
.dstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dstats .stat{gap:6px;padding:14px 16px}
.dstats .stat .top2{align-items:flex-start}
.dstats .stat .l{color:var(--c-ink);font-weight:500}
.dstats .stat .v{margin-top:6px}

/* catalogue : rangée de catégories */
.pcats{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.pcats button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px;border:1px solid var(--c-line);border-radius:10px;background:#fff;color:var(--c-ink);font-size:12px;font-weight:500}
.pcats button:hover{border-color:#CFCFCF}
.pcats button[aria-pressed="true"]{border-color:var(--c-brand);box-shadow:inset 0 -2px 0 var(--c-brand)}
.pcats img{width:72px;height:56px;object-fit:contain;mix-blend-mode:multiply}
.vcard .im .ph0{width:64px;height:64px;color:#BDBDBD}
.vcard .pxold{font-size:11.5px;color:var(--c-muted);text-decoration:line-through;margin-left:6px;font-weight:500}
.vcard .pxl{font-size:11px;color:var(--c-muted);margin-top:6px}
.vcard .pxl + .px{margin-top:2px}
.vcard .pxht{font-size:11.5px;color:var(--c-muted);margin-top:1px}
.vcard .av.no{color:var(--c-muted)}
.pgrid.pro{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.cart-sum{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:2px 0 12px}
.cart-sum span{font-size:12.5px;color:var(--c-muted)}
.cart-sum b{font-size:18px;color:var(--c-ink)}
.toastp{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;background:var(--c-dark);color:#fff;padding:11px 16px;border-radius:10px;font-size:13px;box-shadow:var(--shadow);max-width:calc(100vw - 32px)}
.toastp[hidden]{display:none}

/* présentation Pro */
.pres-hero{position:relative;overflow:hidden;border-radius:var(--r-card);background:#0E1012;color:#fff;min-height:300px;display:flex}
.pres-hero .bg{position:absolute;inset:0 0 0 auto;width:62%}
.pres-hero .bg img{width:100%;height:100%;object-fit:cover;object-position:30% 30%}
.pres-hero .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0E1012 0%,rgba(14,16,18,.55) 35%,rgba(14,16,18,.1) 100%)}
.pres-hero .tx{position:relative;z-index:1;padding:26px 30px;max-width:560px;display:flex;flex-direction:column}
.pres-hero .brandline{font-size:13px;letter-spacing:.14em;font-weight:600;display:flex;align-items:center;gap:12px}
.pres-hero .brandline::after{content:"";width:42px;height:2px;background:var(--c-brand)}
.pres-hero h1{margin:10px 0 0;font-size:34px;line-height:1.08;font-weight:700;text-transform:uppercase}
.pres-hero h1 em{font-style:normal;color:var(--c-brand)}
.pres-hero p{margin:10px 0 0;font-size:15px;color:#E6E6E6;line-height:1.45}
.pres-hero .pro-feats{margin-top:18px}
.pres-hero .btn{margin-top:20px;align-self:flex-start}
.pres-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pres-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-card);padding:16px}
.pres-card .ch{display:flex;gap:10px;align-items:flex-start}
.pres-card .ch .ico{width:26px;height:26px;color:var(--c-ink);flex:none}
.pres-card h3{margin:0;font-size:14.5px;color:var(--c-ink)}
.pres-card p{margin:3px 0 0;font-size:12.5px;color:var(--c-muted);line-height:1.45}
.pres-card .im{height:62px;border-radius:8px;overflow:hidden;background:var(--c-page);display:grid;place-items:center;margin-top:auto}
.pres-card .im img{width:100%;height:100%;object-fit:cover}
.pres-card .im .ico{width:30px;height:30px;color:var(--c-ink)}
.pres-card .btn{width:100%}
.pres-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pres-steps > div{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-card);padding:16px}
.pres-steps .n{width:32px;height:32px;border-radius:50%;background:var(--c-brand);color:var(--c-ink);font-weight:700;display:grid;place-items:center;flex:none}
.pres-steps b{display:block;font-size:14px;color:var(--c-ink)}
.pres-steps span{display:block;font-size:12.5px;color:var(--c-muted);margin-top:3px}

/* inscription garage : étapes et formulaire */
.rsteps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-card);padding:14px 10px}
.rsteps .st{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12.5px;color:var(--c-muted);position:relative}
.rsteps .st b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#E7E7E7;color:var(--c-ink);font-size:12.5px;position:relative;z-index:1}
.rsteps .st b .ico{width:15px;height:15px}
.rsteps .st::before{content:"";position:absolute;top:15px;left:-50%;width:100%;height:2px;background:#E1E1E1}
.rsteps .st:first-child::before{display:none}
.rsteps .st.on{color:var(--c-ink);font-weight:600}
.rsteps .st.on b{background:var(--c-brand)}
.rsteps .st.ok b{background:var(--c-dark);color:#fff}
.rsteps .st.ok::before,.rsteps .st.on::before{background:var(--c-brand)}
.fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fgrid .full{grid-column:1/-1}
.req::after{content:" *";color:#B33B36}
.factions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px}
.recap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:0}
.recap div{display:flex;flex-direction:column;padding:8px 0;border-bottom:1px solid #EFEFEF}
.recap dt{font-size:12px;color:var(--c-muted)}
.recap dd{margin:2px 0 0;font-size:14px;color:var(--c-ink);font-weight:500;word-break:break-word}
.vdone{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:10px 10px 4px}
.vdone .vi{width:64px;height:64px;border-radius:50%;background:#E8F3EC;display:grid;place-items:center}
.vdone .vi .ico{width:32px;height:32px;color:#2F7A4E}
.vdone.warn .vi{background:#FCF1DB}
.vdone.warn .vi .ico{color:#8A5A00}
.vdone.ko .vi{background:#F9E5E4}
.vdone.ko .vi .ico{color:#A23A35}
.vdone h2{margin:6px 0 0;font-size:22px;color:var(--c-ink)}
.vdone p{margin:0;color:var(--c-muted);max-width:60ch}
.vinfo{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.vinfo > div{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:10px;background:var(--c-page)}
.vinfo .ico{width:26px;height:26px;color:var(--c-ink);flex:none}
.vinfo b{display:block;font-size:13.5px;color:var(--c-ink)}
.vinfo span{display:block;font-size:12.5px;color:var(--c-muted);margin-top:2px}
.tline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tline li{display:flex;gap:12px;align-items:flex-start;padding:8px 0;position:relative}
.tline li::before{content:"";position:absolute;left:7px;top:26px;bottom:-8px;width:2px;background:#E4E4E4}
.tline li:last-child::before{display:none}
.tline .dot{width:16px;height:16px;border-radius:50%;background:#D6D6D6;flex:none;margin-top:2px;position:relative;z-index:1}
.tline li.ok .dot{background:var(--c-dark)}
.tline li.on .dot{background:var(--c-brand);box-shadow:0 0 0 4px var(--c-brand-soft)}
.tline b{display:block;font-size:13.5px;color:var(--c-ink)}
.tline span{display:block;font-size:12px;color:var(--c-muted)}

@media (max-width:1300px){
  .dstats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pres-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .pfeats{grid-template-columns:minmax(0,1fr)}
  .pban .ph,.pban.tall .ph{width:100%;opacity:.35}
  .pban::after{background:linear-gradient(90deg,#0E1012 0%,rgba(14,16,18,.5) 100%)}
  .pres-steps,.vinfo{grid-template-columns:minmax(0,1fr)}
  .pres-hero .bg{width:100%;opacity:.4}
}
@media (max-width:640px){
  .phead h1{font-size:23px}
  .phead .pi{width:46px;height:46px}
  .pban h2{font-size:20px}
  .pban h1{font-size:23px}
  .pres-hero h1{font-size:25px}
  .pres-hero .tx{padding:20px 18px}
  .pres-cards,.fgrid,.recap{grid-template-columns:minmax(0,1fr)}
  .dstats{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .dstats .stat .v{font-size:20px}
  .dstats .stat .si{display:none}
  .rsteps{padding:12px 4px}
  .rsteps .st{font-size:11px}
  .pfil .fld{flex:1 1 140px}
}

/* ajustements bandeau catalogue / catégories */
.pban .pro-feats{gap:18px;margin-top:14px}
.pban .pro-feats span{max-width:118px}
.pban .pro-feats b{color:#fff}
.pfil .fld{flex:1 1 150px}
@media (min-width:1301px){.pcats{grid-template-columns:repeat(10,minmax(0,1fr))}.pcats img{width:100%;max-width:72px}}
.pres-hero h1{font-size:46px;letter-spacing:.01em}
.pres-hero p.big{font-size:19px;color:#fff;margin-top:6px}
@media (max-width:640px){.pres-hero h1{font-size:32px}.pres-hero p.big{font-size:16px}}
.btn[hidden],.panel[hidden],section[hidden]{display:none}
#garageForm h2{margin:0 0 14px;font-size:17px;font-weight:700;color:var(--c-ink)}
