:root{--blue:#0D2F68;--green:#4FB555;--bg:#f4f6f9;--line:#dfe7f1;--text:#17324d}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.top-in{max-width:1280px;margin:auto;height:84px;padding:10px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand img{width:180px;max-height:62px;object-fit:contain}.top nav{display:flex;gap:8px}.top nav a{text-decoration:none;color:var(--blue);font-weight:700;font-size:14px;padding:11px 13px;border-radius:9px}.top nav a:hover,.top nav a.active{color:var(--green);background:#eef4fb}.menu{display:none;background:var(--blue);color:#fff;border:0;border-radius:9px;padding:10px 13px;font-weight:700}.hero{text-align:center;max-width:900px;margin:38px auto 22px;padding:0 16px}.hero span{font-size:12px;font-weight:800;color:var(--green);letter-spacing:1.4px}.hero h1{font-size:clamp(28px,4vw,44px);color:var(--blue);margin:8px 0}.hero p{color:#61778e;margin:0}.sync{max-width:1280px;margin:0 auto 15px;padding:11px 14px;border-radius:10px;font-size:13px;font-weight:700}.sync.loading{background:#eaf1fb;color:var(--blue)}.sync.ok{background:#eaf8ed;color:#267431}.sync.error{background:#fff0f0;color:#a22121}.layout{max-width:1280px;margin:auto;padding:0 18px 50px;display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:22px;align-items:start}.catalogue-panel,.quote-panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px rgba(13,47,104,.06)}.catalogue-panel{padding:18px}.toolbar{display:grid;grid-template-columns:1fr 260px;gap:10px}.toolbar input,.toolbar select,#quoteForm input,#quoteForm textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff}.count{font-size:13px;color:#6b7f92;margin:14px 2px}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff;display:grid;grid-template-columns:120px 1fr;min-height:150px}.product-img{background:#f7f9fc;display:flex;align-items:center;justify-content:center}.product-img img{width:100%;height:100%;max-height:170px;object-fit:contain;padding:8px}.product-body{padding:13px;display:flex;flex-direction:column}.badge{display:inline-block;align-self:flex-start;background:#eaf0f8;color:var(--blue);border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.code{font-size:11px;color:#75889a;margin:8px 0 4px}.product h3{font-size:14px;line-height:1.35;margin:0;color:#18354f}.stock{font-size:12px;margin-top:7px}.stock.ok{color:#2c7b37}.stock.out{color:#b12e2e}.product-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px}.price{font-size:17px;font-weight:800;color:var(--blue)}.add{border:0;background:var(--green);color:#fff;border-radius:9px;padding:9px 11px;font-weight:800;cursor:pointer}.add:hover{background:var(--blue)}.quote-panel{position:sticky;top:102px;padding:18px}.quote-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:13px}.quote-head small{font-size:10px;font-weight:800;color:var(--green);letter-spacing:1px}.quote-head h2{margin:4px 0 0;color:var(--blue)}.quote-head>span{font-size:12px;background:#eef4fb;color:var(--blue);padding:7px 9px;border-radius:999px;font-weight:700}.empty{padding:28px 6px;text-align:center;color:#789}.cart-line{padding:12px 0;border-bottom:1px solid var(--line)}.cart-title{font-size:13px;font-weight:700}.cart-code{font-size:10px;color:#789}.cart-actions{display:grid;grid-template-columns:80px 1fr auto;gap:8px;align-items:center;margin-top:8px}.cart-actions input{width:100%;padding:8px;border:1px solid var(--line);border-radius:8px}.cart-price{text-align:right;font-weight:800;color:var(--blue)}.remove{border:0;background:#fff0f0;color:#b22;border-radius:8px;padding:7px;cursor:pointer}.totals{padding:14px 0;border-bottom:1px solid var(--line)}.totals div{display:flex;justify-content:space-between;margin:8px 0;font-size:13px}.totals .grand{font-size:17px;color:var(--blue);padding-top:7px;border-top:1px dashed var(--line)}#quoteForm h3{color:var(--blue);margin:18px 0 12px}#quoteForm label{display:block;font-size:12px;font-weight:700;margin-bottom:10px}#quoteForm input,#quoteForm textarea{margin-top:5px;font-weight:400}#sendBtn{width:100%;border:0;background:var(--green);color:#fff;padding:13px;border-radius:10px;font-weight:800;font-size:15px;cursor:pointer}#sendBtn:disabled{opacity:.55}.status{margin-top:10px}.status.ok{background:#eaf8ed;color:#267431;padding:10px;border-radius:8px}.status.error{background:#fff0f0;color:#a22121;padding:10px;border-radius:8px}@media(max-width:1050px){.layout{grid-template-columns:1fr}.quote-panel{position:static}.products{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.top nav{display:none;position:absolute;top:84px;left:0;right:0;background:#fff;padding:12px;flex-direction:column}.top nav.open{display:flex}.menu{display:block}.toolbar{grid-template-columns:1fr}.products{grid-template-columns:1fr}.product{grid-template-columns:100px 1fr}.layout{padding:0 10px 35px}.catalogue-panel,.quote-panel{border-radius:12px}.brand img{width:145px}}
.hidden{display:none!important}.card-shell{max-width:1280px;width:calc(100% - 36px);margin:0 auto 22px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 10px 30px rgba(13,47,104,.06)}.step-title{display:flex;align-items:center;gap:12px;margin-bottom:15px}.step-title>span{width:34px;height:34px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.step-title strong{display:block;color:var(--blue);font-size:17px}.step-title small{display:block;color:#71869a;margin-top:3px}.choice-grid,.type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.type-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.choice,.type-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:17px;text-align:left;cursor:pointer;color:var(--text);transition:.15s}.choice strong,.type-card strong{display:block;color:var(--blue);font-size:16px;margin-bottom:5px}.choice span,.type-card span{font-size:12px;color:#71869a;line-height:1.4}.choice:hover,.type-card:hover,.choice.selected,.type-card.selected{border-color:var(--green);box-shadow:0 7px 20px rgba(79,181,85,.12);background:#f8fff9}.type-step{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.redirect-box{margin-top:15px;border-radius:11px;background:#edf4fb;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--blue)}.redirect-box a{background:var(--green);color:#fff;text-decoration:none;border-radius:9px;padding:10px 13px;font-weight:800;white-space:nowrap}.catalogue-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.catalogue-heading small{font-size:10px;font-weight:800;color:var(--green);letter-spacing:1px}.catalogue-heading h2{margin:4px 0 0;color:var(--blue)}.link-btn{border:1px solid var(--blue);background:#fff;color:var(--blue);border-radius:9px;padding:9px 11px;font-weight:700;cursor:pointer}.filter-note{font-size:12px;line-height:1.5;color:#6b7f92;background:#f6f8fb;border-radius:9px;padding:10px 12px;margin-top:10px}.no-results{grid-column:1/-1;padding:35px;text-align:center;background:#f7f9fc;border-radius:12px;color:#6b7f92}.no-results strong,.no-results span{display:block}.no-results strong{color:var(--blue);margin-bottom:6px}.cart-actions label{font-size:10px;color:#789;font-weight:700}.cart-actions label input{display:block;margin-top:3px}.product .stock{font-weight:800}.product .stock.ok{color:#2d7b39}.product .stock.out{color:#a56b00}@media(max-width:760px){.choice-grid,.type-grid{grid-template-columns:1fr}.redirect-box{align-items:stretch;flex-direction:column}.redirect-box a{text-align:center}.catalogue-heading{align-items:flex-start;gap:10px}}

@media(max-width:760px){.card-shell{width:calc(100% - 20px);padding:18px 14px}}


/* V11 — largeur unifiée */
.hero,
.card-shell,
#catalogueArea{
  max-width:1280px;
  width:calc(100% - 36px);
  margin-left:auto;
  margin-right:auto;
}
.hero{padding-left:0;padding-right:0}
#catalogueArea .sync{
  max-width:none;
  width:100%;
}
#catalogueArea .layout{
  max-width:none;
  width:100%;
  padding:0 0 50px;
}

/* V11 — catalogue compact en deux colonnes */
.product-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.product-column{
  border:1px solid var(--line);
  border-radius:13px;
  background:#f8fafc;
  overflow:hidden;
}
.product-column-head{
  min-height:66px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.product-column-head small{
  display:block;
  color:var(--green);
  font-size:9px;
  font-weight:800;
  letter-spacing:1px;
}
.product-column-head h3{
  margin:3px 0 0;
  color:var(--blue);
  font-size:17px;
}
.product-column-head>span{
  min-width:30px;
  height:30px;
  padding:0 8px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eaf0f8;
  color:var(--blue);
  font-size:12px;
  font-weight:800;
}
.products-scroll{
  display:block;
  max-height:650px;
  overflow-y:auto;
  padding:10px;
  scrollbar-gutter:stable;
}
.products-scroll .product{
  margin-bottom:10px;
  grid-template-columns:105px 1fr;
  min-height:132px;
}
.products-scroll .product:last-child{margin-bottom:0}
.products-scroll .product-img img{max-height:145px}
.products-scroll .product-body{padding:11px}
.products-scroll .product h3{font-size:13px}
.products-scroll .price{font-size:15px}
.no-results.compact{margin:0;padding:26px 12px}

/* Codes masqués à l'écran : ils restent présents dans les données et le PDF */
.product .code,
.cart-code .code{
  display:none!important;
}

@media(max-width:1050px){
  .product-columns{grid-template-columns:1fr 1fr}
}
@media(max-width:820px){
  .product-columns{grid-template-columns:1fr}
  .products-scroll{max-height:520px}
}
@media(max-width:760px){
  .hero,
  .card-shell,
  #catalogueArea{
    width:calc(100% - 20px);
  }
}


/* Header JTLM simplifié */
.top{
  background:#fff;
  border-bottom:3px solid var(--blue);
  box-shadow:0 8px 22px rgba(13,47,104,.08);
}
.top-in-new{
  position:relative;
  min-height:112px;
  height:auto;
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(300px,1.4fr) minmax(250px,1fr);
  align-items:center;
  gap:22px;
  padding:14px 24px;
}
.top-left{display:flex;align-items:center;justify-content:flex-start}
.back-site{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--blue);
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  padding:10px 12px;
  border-radius:10px;
  transition:.18s ease;
}
.back-site:hover{background:#eef4fb;color:var(--green)}
.back-arrow{font-size:20px;line-height:1}
.top-center{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
.top-center .brand{display:block;line-height:0}
.top-center .brand img{width:170px;max-height:58px;object-fit:contain}
.header-title{margin-top:7px;color:var(--blue);font-size:18px;font-weight:800;line-height:1.2}
.header-subtitle{margin-top:4px;color:#71869a;font-size:11px;font-weight:600;letter-spacing:.2px}
.top-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.help-label{color:var(--blue);font-size:13px;font-weight:800;margin-bottom:2px}
.help-link{color:var(--green);font-size:14px;font-weight:800;text-decoration:none}
.help-link:hover{color:var(--blue)}
.help-mail{font-size:12px;color:#5f7388;font-weight:700}
.top-in-new>.menu{display:none}
.mobile-nav{display:none}

/* Footer JTLM bref */
.jtlm-footer-brief{
  margin-top:16px;
  background:var(--blue);
  border-top:4px solid var(--green);
  color:#fff;
}
.jtlm-footer-brief-inner{
  max-width:1280px;
  min-height:66px;
  margin:0 auto;
  padding:14px 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
  font-size:12px;
  color:#dbe6f3;
  text-align:center;
}
.jtlm-footer-brief-inner strong{color:#fff;font-size:13px}
.jtlm-footer-brief-inner a{color:#fff;text-decoration:none;font-weight:700}
.jtlm-footer-brief-inner a:hover{color:#83dc88}
.footer-separator{color:var(--green);font-weight:800}

@media(max-width:900px){
  .top-in-new{
    min-height:84px;
    grid-template-columns:1fr auto;
    padding:10px 16px;
  }
  .top-left,.top-right{display:none}
  .top-center{align-items:flex-start;text-align:left}
  .top-center .brand img{width:145px;max-height:50px}
  .header-title{font-size:15px;margin-top:4px}
  .header-subtitle{display:none}
  .top-in-new>.menu{display:block;justify-self:end}
  .mobile-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#fff;
    padding:12px 16px 16px;
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 24px rgba(13,47,104,.12);
    flex-direction:column;
    gap:6px;
  }
  .mobile-nav.open{display:flex}
  .mobile-nav a{
    color:var(--blue);
    text-decoration:none;
    font-weight:700;
    padding:10px 12px;
    border-radius:8px;
  }
  .mobile-nav a:hover{background:#eef4fb;color:var(--green)}
}

@media(max-width:620px){
  .jtlm-footer-brief-inner{flex-direction:column;gap:4px;padding:16px 12px}
  .footer-separator{display:none}
}


/* =========================================================
 * HEADER — style configurateur JTLM
 * ========================================================= */
.topbar{
  position:sticky;
  top:0;
  z-index:60;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 6px 18px rgba(13,47,104,.06);
}
.topbar__inner{
  position:relative;
  max-width:1280px;
  min-height:82px;
  margin:0 auto;
  padding:10px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand--devis{
  min-width:0;
  display:flex;
  align-items:center;
  gap:15px;
  text-decoration:none;
  color:var(--blue);
}
.brand--devis img{
  width:150px;
  max-height:58px;
  object-fit:contain;
  flex:none;
}
.brand--devis div{
  min-width:0;
  padding-left:15px;
  border-left:1px solid var(--line);
}
.brand--devis strong{
  display:block;
  color:var(--blue);
  font-size:16px;
  line-height:1.25;
  font-weight:800;
}
.brand--devis span{
  display:block;
  margin-top:4px;
  color:#72869a;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
}
.topbar__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
}
.top-info{
  display:flex;
  flex-direction:column;
  gap:3px;
  white-space:nowrap;
}
.top-info b{
  color:var(--blue);
  font-size:12px;
  font-weight:800;
}
.top-info span,
.top-info a{
  color:#61768b;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
}
.top-info a:hover{color:var(--green)}
.ghost-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--blue);
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  transition:.16s ease;
}
.ghost-link:hover{
  border-color:var(--green);
  background:#f7fff8;
  color:var(--green);
}
.topbar .menu{
  display:none;
  background:var(--blue);
  color:#fff;
  border:0;
  border-radius:9px;
  padding:10px 13px;
  font-weight:800;
}
.topbar .mobile-nav{
  display:none;
}

/* =========================================================
 * FOOTER — bref et cohérent avec le configurateur
 * ========================================================= */
.jtlm-footer-brief{
  margin-top:18px;
  background:var(--blue);
  border-top:4px solid var(--green);
  color:#fff;
}
.jtlm-footer-brief-inner{
  max-width:1280px;
  min-height:76px;
  margin:0 auto;
  padding:14px 22px;
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:26px;
}
.footer-brand strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:800;
}
.footer-brand span{
  display:block;
  margin-top:3px;
  color:#bfcfe1;
  font-size:11px;
}
.footer-contact{
  display:flex;
  align-items:center;
  gap:9px;
  color:#bfcfe1;
  font-size:11px;
  white-space:nowrap;
}
.footer-contact a{
  color:#fff;
  font-weight:700;
  text-decoration:none;
}
.footer-contact a:hover{color:#83dc88}
.footer-contact>span{color:var(--green)}
.footer-copy{
  color:#bfcfe1;
  font-size:11px;
  white-space:nowrap;
}

@media(max-width:900px){
  .topbar__inner{
    min-height:74px;
    padding:8px 14px;
  }
  .brand--devis{gap:10px}
  .brand--devis img{
    width:125px;
    max-height:48px;
  }
  .brand--devis div{
    padding-left:10px;
  }
  .brand--devis strong{font-size:14px}
  .brand--devis span{display:none}
  .topbar__right .top-info,
  .topbar__right .ghost-link{
    display:none;
  }
  .topbar .menu{
    display:block;
  }
  .topbar .mobile-nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    padding:10px 14px 14px;
    background:#fff;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 24px rgba(13,47,104,.12);
    flex-direction:column;
    gap:5px;
  }
  .topbar .mobile-nav.open{display:flex}
  .topbar .mobile-nav a{
    padding:10px 12px;
    border-radius:8px;
    color:var(--blue);
    text-decoration:none;
    font-size:13px;
    font-weight:700;
  }
  .topbar .mobile-nav a:hover{
    background:#eef4fb;
    color:var(--green);
  }
  .jtlm-footer-brief-inner{
    grid-template-columns:1fr;
    gap:8px;
    text-align:center;
  }
  .footer-contact{
    justify-content:center;
    flex-wrap:wrap;
    white-space:normal;
  }
}

@media(max-width:520px){
  .brand--devis img{width:105px}
  .brand--devis strong{font-size:13px}
  .footer-contact>span{display:none}
  .footer-contact{
    flex-direction:column;
    gap:4px;
  }
}


/* V12 sticky footer fix */
html,body{
  height:100%;
}
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main,
.app-shell,
.page,
#catalogueArea{
  flex:1 0 auto;
}
.jtlm-footer-brief{
  margin-top:auto !important;
  flex-shrink:0;
}
