:root{
  --nuuk:#59695C;
  --nuuk-dark:#33413a;
  --nuuk-soft: rgba(89,105,92,.12);

  --cocon:#CC7A65;
  --cirrus:#A03942;
  --arcus:#BB9578;

  --bg:#ffffff;
  --ink:#0f1412;
  --muted:#5f6d66;

  --card: rgba(255,255,255,.92);
  --line: rgba(89,105,92,.16);

  --radius: 22px;
  --shadow: 0 18px 55px rgba(14,20,16,.10);
  --shadow-soft: 0 12px 28px rgba(14,20,16,.08);

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

html,body{height:100%}
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(980px 520px at 16% 0%, rgba(89,105,92,.10), transparent 60%),
    radial-gradient(920px 560px at 92% 12%, rgba(187,149,120,.10), transparent 62%),
    linear-gradient(#fff,#fff);
  overflow-x:hidden;
}

/* Sillons bois (identique) */
body::before{
  content:"";
  position:fixed;
  inset:-120px;
  pointer-events:none;
  opacity:.08;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1100' viewBox='0 0 1600 1100'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%2359695C' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%2359695C' stop-opacity='.10'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23BB9578' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23BB9578' stop-opacity='.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M70 -120 C 115 40, 20 180, 82 340 C 135 485, 62 675, 118 860 C 155 985, 150 1080, 190 1220' stroke='url(%23g1)' stroke-width='2.8'/%3E%3Cpath d='M145 -120 C 220 70, 108 250, 170 420 C 220 560, 160 760, 230 940 C 275 1055, 258 1130, 305 1220' stroke='url(%23g1)' stroke-width='1.8'/%3E%3Cpath d='M255 -120 C 320 30, 235 170, 290 330 C 350 500, 275 650, 342 835 C 392 980, 372 1085, 432 1220' stroke='url(%23g1)' stroke-width='3.1'/%3E%3Cpath d='M390 -120 C 450 95, 360 225, 430 402 C 498 575, 420 720, 505 900 C 565 1028, 540 1120, 610 1220' stroke='url(%23g1)' stroke-width='1.9'/%3E%3Cpath d='M540 -120 C 620 45, 520 250, 608 432 C 685 592, 600 770, 705 955 C 770 1068, 735 1142, 810 1220' stroke='url(%23g1)' stroke-width='3.6'/%3E%3Cpath d='M735 -120 C 805 70, 710 210, 790 392 C 860 552, 792 720, 882 915 C 945 1050, 915 1138, 998 1220' stroke='url(%23g1)' stroke-width='2.1'/%3E%3Cpath d='M965 -120 C 1045 40, 948 260, 1038 445 C 1118 610, 1035 790, 1145 970 C 1218 1088, 1185 1152, 1280 1220' stroke='url(%23g1)' stroke-width='3.4'/%3E%3Cpath d='M1215 -120 C 1298 72, 1195 255, 1292 462 C 1365 620, 1310 805, 1415 986 C 1488 1102, 1458 1160, 1542 1220' stroke='url(%23g1)' stroke-width='2.2'/%3E%3Cpath d='M102 -120 C 130 58, 78 210, 120 360 C 158 505, 120 680, 168 865 C 205 1010, 188 1100, 232 1220' stroke='url(%23g2)' stroke-width='1.1'/%3E%3Cpath d='M310 -120 C 348 48, 292 205, 338 375 C 382 538, 340 700, 395 888 C 432 1018, 420 1105, 470 1220' stroke='url(%23g2)' stroke-width='1.1'/%3E%3Cpath d='M620 -120 C 660 60, 610 235, 662 420 C 708 588, 675 760, 740 945 C 782 1060, 770 1140, 830 1220' stroke='url(%23g2)' stroke-width='1.1'/%3E%3Cpath d='M1088 -120 C 1130 65, 1070 250, 1125 455 C 1170 620, 1140 800, 1212 980 C 1260 1095, 1245 1158, 1312 1220' stroke='url(%23g2)' stroke-width='1.1'/%3E%3C/g%3E%3C/svg%3E");
background-size: 1750px 1200px;
  background-position: center top;
  background-repeat: repeat;
  mix-blend-mode:multiply;
  filter: blur(.25px);
}

.wrap{
  width:100%;
  max-width:1680px;
  margin:0 auto;
  padding:18px 14px 70px;
  position:relative;
}

@media (min-width:768px){
  .wrap{
    padding:22px 20px 80px;
  }
}

@media (min-width:1200px){
  .wrap{
    padding:28px 32px 90px;
  }
}

@media (min-width:1600px){
  .wrap{
    max-width:1800px;
    padding:32px 40px 100px;
  }
}

@media (min-width:1200px){
  .wrap{
    padding:28px 22px 90px;
  }
}
.pages{ position:relative; }
.page{ display:none; animation: fadeIn .18s ease; }
.page.on{ display:block; }
@keyframes fadeIn{ from{ opacity:0; transform: translateY(6px); } to{ opacity:1; transform: translateY(0); } }

.card{
  border:1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
.cardSoft{
  border:1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.btn{
  border:1px solid rgba(89,105,92,.20);
  background:#fff;
  color:var(--ink);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 950;
  cursor:pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0,0,0,.10); border-color: rgba(89,105,92,.32); }
.btn.primary{
  background: linear-gradient(180deg, rgba(89,105,92,.14), rgba(89,105,92,.05));
  border-color: rgba(89,105,92,.32);
  color: var(--nuuk-dark);
}
.btn.big{ width:100%; justify-content:center; padding:16px 16px; border-radius:18px; font-size:15px; }
.btn.ghost{ background: rgba(255,255,255,.65); }
.ico{ width:18px; height:18px; display:inline-block; }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(89,105,92,.20);
  background: rgba(89,105,92,.06);
  color: var(--nuuk-dark);
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}

.newsBar{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin: 10px 0 0; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(89,105,92,.20);
  background: rgba(255,255,255,.72);
  color: var(--nuuk-dark);
  box-shadow: var(--shadow-soft);
}
.badge.new{ background: rgba(89,105,92,.10); border-color: rgba(89,105,92,.28); }

.hero{ padding:34px 18px 18px; text-align:center; }
.heroBrandLogos{display:flex;align-items:center;justify-content:center;gap:clamp(18px,4vw,34px);width:100%;margin:0 auto 22px;}
.heroBrand{min-width:0;display:flex;align-items:center;justify-content:center;flex:0 1 auto;}
.heroBrandBss{gap:clamp(6px,1.6vw,10px);}
.heroBrandLogos .heroLogo{width:clamp(145px,40vw,245px);max-width:44vw;height:auto;margin:0;}
.heroBssMark{display:grid;place-items:center;width:clamp(60px,15vw,80px);height:clamp(76px,19vw,96px);overflow:hidden;background:transparent;flex:0 0 auto;}
.heroBssMark .heroBssLogo{display:block;width:168%;max-width:none;height:auto;margin:0;transform:translateY(-11%);}
.heroBssName{color:#cc2a2e;font-size:clamp(10px,2.8vw,15px);font-weight:900;line-height:1.02;letter-spacing:.025em;text-align:left;white-space:nowrap;}

/* Dossiers chantier — module isolé V10.4 */
.chantierHomeCard{border-color:rgba(42,91,73,.22);background:linear-gradient(145deg,#fff,rgba(89,105,92,.055));}
.chantierEyebrow{font-size:11px;font-weight:1000;letter-spacing:.13em;color:#6b7d70;margin-bottom:8px;}
.btn-chantier{background:#2f5f4b!important;color:#fff!important;border-color:#2f5f4b!important;}
.btn-chantier:hover{filter:brightness(.96);}
.chantierPage{min-height:70vh;}
.chantierLayout{display:grid;grid-template-columns:minmax(290px,.8fr) minmax(360px,1.2fr);gap:18px;padding:18px;align-items:start;}
.chantierPanel{overflow:hidden;}
.chantierForm{padding:16px;display:grid;gap:10px;}
.chantierActions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;}
.chantierItems{padding:14px;display:grid;gap:10px;}
.chantierItem{border:1px solid rgba(89,105,92,.16);border-radius:16px;padding:14px;background:#fff;box-shadow:0 7px 20px rgba(45,63,52,.06);}
.chantierItemHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.chantierItemTitle{font-weight:1000;color:var(--nuuk-dark);font-size:16px;}
.chantierItemQty{font-weight:1000;color:#2f5f4b;font-size:18px;margin-top:5px;}
.chantierItemMeta{font-size:13px;color:#68736d;margin-top:5px;line-height:1.45;}
.chantierItemAccessories{margin-top:10px;display:grid;gap:5px;font-size:13px;}
.chantierRemove{border:0;background:#fff1f1;color:#a5262a;border-radius:10px;padding:7px 9px;font-weight:900;cursor:pointer;}
.chantierTotals{margin:0 14px 14px;padding:14px;border-radius:14px;background:rgba(89,105,92,.08);color:var(--nuuk-dark);font-weight:800;line-height:1.55;}
.chantierPdfActions{padding:0 14px 16px;}
@media(max-width:760px){.chantierLayout{grid-template-columns:1fr;padding:10px}.chantierActions .btn{flex:1 1 135px}.chantierItemHead{align-items:center}}
.heroLogo{
  width: 280px;
  height:auto;
  display:block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.12));
}
.heroTitle{ margin:0; font-weight:1000; letter-spacing:-.7px; font-size:28px; color: var(--nuuk-dark); }
.heroSub{ margin: 10px auto 0; max-width: 900px; color: var(--muted); font-size:14px; line-height:1.45; }

.homeGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:18px;
  padding: 0 16px 12px;
}
@media (max-width:760px){
  .homeGrid{ grid-template-columns:1fr; }
  .heroLogo{ width: 240px; }
  .heroTitle{ font-size: 24px; }
  .chantierHomeCard{ grid-column:auto; }
}
.homeCard{
  padding:16px;
  border-radius: 20px;
  border:1px solid rgba(89,105,92,.18);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}
.homeCard h3{
  margin:0 0 8px;
  font-size: 16px;
  letter-spacing:-.2px;
  color: var(--nuuk-dark);
  font-weight: 1000;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.homeCard p{
  margin:0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height:1.45;
  text-align:center;
}

.topbar{
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid rgba(89,105,92,.14);
  background: linear-gradient(180deg, rgba(89,105,92,.06), rgba(255,255,255,0));
}
.topbar .left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.topbar .right{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  padding:16px;
  width:100%;
}

@media (min-width:1024px){
  .grid{
    grid-template-columns: 1fr; /* on garde UNE seule colonne */
    gap:20px;
    padding:20px 24px;
  }
}

@media (min-width:1400px){
  .grid{
    padding:24px 28px;
  }
}

.sectionHead{
  padding: 14px 16px;
  border-bottom:1px solid rgba(89,105,92,.14);
  background: linear-gradient(180deg, rgba(89,105,92,.06), rgba(255,255,255,0));
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.sectionHead b{ font-weight:1000; color: var(--nuuk-dark); }
.sectionHead span{ color: var(--muted); font-size: 13px; line-height:1.4; }

.qWrap{ padding: 0 16px 16px; }
.qBlock{
  margin-top:12px;
  scroll-margin-top:18px;
  padding:14px;
  border:1px solid rgba(89,105,92,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

.qLabel{
  display:flex; align-items:center; gap:10px;
  font-weight:1000; letter-spacing:-.2px;
  margin:0 0 10px;
  font-size:14px;
  color: var(--nuuk-dark);
}
.qLabel .n{
  width:26px; height:26px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(89,105,92,.26);
  background: rgba(89,105,92,.07);
  color: var(--nuuk);
  font-weight:1000;
  font-size:13px;
}

.choices{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 640px){ .choices{ grid-template-columns:1fr; } }

.choice{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid rgba(89,105,92,.18);
  border-radius: 16px;
  padding:12px 12px;
  background: rgba(255,255,255,.98);
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.choice:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
  border-color: rgba(89,105,92,.30);
}
.choice input{ margin-top:2px; transform: scale(1.12); accent-color: var(--nuuk); }

.cico{
  width:28px; height:28px;
  border-radius: 10px;
  border:1px solid rgba(89,105,92,.18);
  background: rgba(89,105,92,.06);
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 auto;
}
.cico svg{ width:18px; height:18px; color: var(--nuuk-dark); opacity:.9; }

.choice .ct{ flex:1; }
.choice .ct .t{ font-weight:1000; margin:0; font-size:13.5px; color: var(--nuuk-dark); }

.product{
  border:1px solid rgba(89,105,92,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  padding:14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}
.prodName{ margin:0; font-weight:1000; letter-spacing:-.2px; font-size:16px; color: var(--nuuk-dark); }

.tag{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  white-space:nowrap;
}
.tag.cocon{ background: rgba(204,122,101,.12); border-color: rgba(204,122,101,.25); }
.tag.cirrus{ background: rgba(160,57,66,.10); border-color: rgba(160,57,66,.22); }
.tag.arcus{ background: rgba(187,149,120,.14); border-color: rgba(187,149,120,.26); }

.bul{ margin:10px 0 0; padding-left:18px; font-size:13px; line-height:1.55; }
.note{
  margin-top:12px;
  border-left:4px solid rgba(89,105,92,.35);
  background: rgba(89,105,92,.06);
  padding:10px 12px;
  border-radius: 12px;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.45;
}
.note.warn{ border-left-color: rgba(180,106,26,.55); background: rgba(180,106,26,.08); color:#6b4a1f; }

.diagramBox{
  margin-top:12px;
  border:1px solid rgba(89,105,92,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  overflow:hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}
.diagramMeta{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 12px;
  border-bottom:1px solid rgba(89,105,92,.14);
  background: linear-gradient(180deg, rgba(89,105,92,.08), rgba(255,255,255,0));
}
.diagramMeta .left{ display:flex; flex-direction:column; gap:4px; }
.diagramMeta .left b{ font-size:13px; color: var(--nuuk-dark); }
.diagramMeta .left span{ font-size:12px; color:var(--muted); }
.svg{ width:100%; height:auto; display:block; background:#fff; }

.summary{ padding: 16px; }
.sumGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

@media (min-width:1024px){
  .sumGrid{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
}
.list{
  border:1px solid rgba(89,105,92,.16);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.list h3{ margin:0 0 10px; font-weight:1000; color: var(--nuuk-dark); }
.list ul{ margin:0; padding-left:18px; color: var(--muted); line-height:1.5; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono"; }

.legalFooter{
  margin:20px auto 10px auto;
  max-width:900px;
  font-size:12px;
  line-height:1.6;
  color:#5e6b63;
  text-align:center;
  opacity:.85;
}

/* ✅ Ajout : champs formulaire (compte/newsletter) */
.in{
  width:100%;
  box-sizing:border-box;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(89,105,92,.20);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
  font-weight:850;
  color: var(--ink);
  outline:none;
}
.in:focus{
  border-color: rgba(89,105,92,.35);
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
}

/* image product box */
.prodImgBox{
  width:140px; height:110px;
  border-radius:16px;
  border:1px solid rgba(89,105,92,.18);
  background: rgba(89,105,92,.06);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.prodImg{ width:100%; height:100%; object-fit:cover; display:block; }
.prodImgPh{
  font-size:12px;
  color:#5f6d66;
  font-weight:900;
  padding:10px;
  text-align:center;
}
/* Carte départements */
#mapHost svg .dept { cursor: pointer; }
#mapHost svg .dept:hover { opacity: .85; }
#mapHost svg .dept.selected { stroke: #00c97a; stroke-width: 2; }
.dept.selected { opacity: 1; filter: brightness(1.15); stroke: #0b5; stroke-width: 2px; }
.dept { transition: .12s; }
.dept{
cursor:pointer;
transition:.15s;
}

.dept:hover{
filter:brightness(1.1);
}

.dept.selected{
stroke:#006644;
stroke-width:2px;
}
#mapHost { position: relative; z-index: 2; }
#mapHost svg { position: relative; z-index: 3; }
#mapLegend { position: relative; z-index: 1; }
#mapHost {
  position: relative;
  z-index: 5;
}

#mapHost svg {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

#mapLegend {
  position: relative;
  z-index: 1;
}

/* ===== FIX CLIC CARTE (NUUK) ===== */

/* 1) La zone carte doit être au-dessus et cliquable */
#mapHost{
  position: relative !important;
  z-index: 50 !important;
  pointer-events: auto !important;
}

/* 2) Force le SVG et ses éléments à accepter les events */
#mapHost svg,
#mapHost svg *{
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

/* 3) Si tu as des overlays “glass” en ::before/::after sur tes cards */
.cardSoft::before,
.cardSoft::after,
.card::before,
.card::after,
.homeCard::before,
.homeCard::after,
.page::before,
.page::after{
  pointer-events: none !important;
}
/* ===== CROP BAS DE LA CARTE (cache la légende/points intégrés au SVG) ===== */
#mapHost{
  width:100%;
  min-height:260px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

#mapHost svg{
  width:100%;
  max-width:980px;
  height:auto;
  display:block;
  margin:0 auto;
  position: relative;
  z-index: 10;
  pointer-events:auto !important;
  touch-action: manipulation !important;
  transform:none;
}

@media (max-width:1024px){
  #mapHost{
    min-height:220px;
  }

  #mapHost svg{
    max-width:760px;
  }
}

@media (max-width:768px){
  #mapHost{
    min-height:180px;
  }

  #mapHost svg{
    max-width:100%;
  }
}


@media (max-width: 480px) {
  #mapHost {
    min-height: 150px;
  }
}
.topbarCentered{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  align-items:center;
  padding-top:6px;
}

.topbarSide{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.leftSide{
  justify-content:flex-start;
}

.rightSide{
  justify-content:flex-end;
}

.topbarCenter{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:0;
  text-align:center;
}

.topLogoCenter{
  height:72px;
  max-width:100%;
  width:auto;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 6px 14px rgba(30,45,36,.08));
}

.modePillCenter{
  font-weight:900;
}

.topbarSubline{
  display:flex;
  justify-content:center;
  margin-top:12px;
  padding:0 8px;
}

.topbarSublineSummary{
  gap:10px;
  flex-wrap:wrap;
}

.hintPill{
  max-width:min(100%, 760px);
  text-align:center;
  line-height:1.35;
  padding:12px 16px;
  white-space:normal;
}

@media (min-width:900px){
  .topbarCentered{
    grid-template-columns: 1fr auto 1fr;
    align-items:start;
    gap:14px;
  }

  .leftSide{
    justify-content:flex-start;
  }

  .rightSide{
    justify-content:flex-end;
  }
}

@media (max-width:899px){
  .topbarSide{
    justify-content:center;
  }

  .leftSide .btn,
  .rightSide .btn{
    width:100%;
    justify-content:center;
  }

  .topLogoCenter{
    height:82px;
  }
}
*,
*::before,
*::after{
  box-sizing:border-box;
}

img,
svg,
video,
canvas{
  max-width:100%;
  height:auto;
}

input,
button,
textarea,
select{
  font:inherit;
}
.btn{
  max-width:100%;
  white-space:normal;
  text-align:center;
  justify-content:center;
}

.homeCard,
.qBlock,
.product,
.list,
.card,
.cardSoft{
  min-width:0;
}
@media (max-width:767px){
  .summary,
  .qWrap{
    padding:12px;
  }

  .sectionHead{
    flex-direction:column;
    align-items:flex-start;
  }

  .prodImgBox{
    width:100%;
    max-width:220px;
    height:auto;
    aspect-ratio: 4 / 3;
    margin:0 auto;
  }

  .hero{
    padding:24px 14px 16px;
  }

  .heroLogo{
    width:220px;
  }

  .heroTitle{
    font-size:24px;
    line-height:1.15;
  }

  .heroSub{
    font-size:14px;
  }

  .homeCard{
    padding:14px;
  }

  .qBlock{
    padding:12px;
  }

  .list{
    padding:12px;
  }
}
@media (min-width:768px){
  .twoCols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
}

@media (max-width:767px){
  .twoCols{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
}
#mapHost{
  width:100%;
  min-height:260px;
  overflow:hidden;
}

#mapHost svg{
  width:100%;
  max-width:860px;
  height:auto;
  display:block;
  margin:0 auto;
}

@media (max-width:1024px){
  #mapHost svg{
    max-width:720px;
  }
}

@media (max-width:768px){
  #mapHost{
    min-height:200px;
  }

  #mapHost svg{
    max-width:100%;
  }
}
/* SPLASH SCREEN NUUK */

.appSplash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(89,105,92,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(187,149,120,.10), transparent 60%),
    #ffffff;
  opacity:1;
  visibility:visible;
  transition:opacity .35s ease, visibility .35s ease;
}

.appSplashInner{
  text-align:center;
  padding:24px;
}

.appSplashBrands{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  margin:0 auto 18px;
}

.appSplashLogo{
  height:auto;
  display:block;
  margin:0;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.10));
}

.appSplashNuuk{ width:170px; max-width:52vw; }
.appSplashBss{ width:58px; max-width:18vw; border-radius:10px; }

.appSplashTitle{
  font-size:26px;
  font-weight:1000;
  color:var(--nuuk-dark);
}

.appSplashSub{
  margin-top:8px;
  font-size:14px;
  color:var(--muted);
}
.installModal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,20,18,.38);
  backdrop-filter:blur(6px);
}

.installModalBox{
  width:min(100%, 460px);
  background:rgba(255,255,255,.97);
  border:1px solid rgba(89,105,92,.16);
  border-radius:24px;
  box-shadow:0 24px 60px rgba(0,0,0,.18);
  padding:24px 20px 20px;
  position:relative;
  text-align:center;
}

.installClose{
  position:absolute;
  top:12px;
  right:12px;
  width:36px;
  height:36px;
  border:none;
  border-radius:999px;
  background:rgba(89,105,92,.08);
  color:var(--nuuk-dark);
  font-size:22px;
  font-weight:900;
  cursor:pointer;
}

.installModalLogoWrap{
  margin-bottom:10px;
}

.installModalLogo{
  width:120px;
  max-width:50vw;
  height:auto;
  display:block;
  margin:0 auto;
}

.installModalTitle{
  margin:0 0 10px;
  font-size:24px;
  font-weight:1000;
  color:var(--nuuk-dark);
}

.installModalText{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.5;
}

.installSteps{
  display:grid;
  gap:10px;
  text-align:left;
  margin:0 0 14px;
}

.installStep{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(89,105,92,.14);
  background:rgba(89,105,92,.05);
}

.installNum{
  width:28px;
  height:28px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
  font-weight:1000;
  background:rgba(89,105,92,.12);
  color:var(--nuuk-dark);
}

.installModalNote{
  margin-top:6px;
  border-left:4px solid rgba(89,105,92,.35);
  background:rgba(89,105,92,.06);
  padding:10px 12px;
  border-radius:12px;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.45;
  text-align:left;
}

.installModalActions{
  margin-top:16px;
  display:flex;
  justify-content:center;
}

@media (max-width:640px){
  .installModalBox{
    padding:20px 16px 16px;
    border-radius:20px;
  }

  .installModalTitle{
    font-size:21px;
  }

  .installModalLogo{
    width:100px;
  }
}
.dept-map-wrap{
width:100%;
overflow:hidden;
display:flex;
justify-content:center;
}

.dept-map-container{
width:100%;
max-width:900px;
overflow:visible;
}

.dept-map-container svg{
display:block;
width:100%;
height:auto;
overflow:visible;
}
.dept-map-wrap{
width:100%;
display:flex;
justify-content:center;
}

.dept-map-container{
width:100%;
max-width:100%;
}

.dept-map-container svg{
width:100%;
height:auto;
display:block;
}
.dept-map-container{
aspect-ratio: 1 / 1;
}
.dept-map-container{
touch-action: manipulation;
}
.nuukPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.nuukPopupBox {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
#secondarySystemProof {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#sarkingWrapper{
  margin-top:16px;
  border:0;
  border-radius:18px;
  padding:0;
  background:transparent;
  transition:.25s ease;
}

#sarkingWrapper.sarkingValidated{
  border:2px solid #0a8f3c;
  border-radius:18px;
  padding:14px;
  background:linear-gradient(180deg,#f6fbf8,#edf7f1);
}
#sarkingWrapper {
  border: none;
  background: transparent;
  padding: 0;
  margin-top: 0;
}

#sarkingWrapper.sarkingValidated {
  border: 2px solid #0a8f3c;
  border-radius: 18px;
  padding: 14px;
  margin-top: 16px;
  background: linear-gradient(180deg, #f6fbf8, #edf7f1);
}
.comboSeparator{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:20px 0;
  position:relative;
}

.comboSeparator::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:linear-gradient(
    90deg,
    rgba(89,105,92,.10),
    rgba(89,105,92,.28),
    rgba(89,105,92,.10)
  );
  transform:translateY(-50%);
}

.comboSeparator span{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  background:linear-gradient(180deg, #eef8f1, #dff1e6);
  border:1px solid rgba(10,143,60,.16);
  color:#0a8f3c;
  font-size:14px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(10,143,60,.10);
}
.comboSeparator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  width: 100%;
}

.comboSeparator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef8f1, #dff1e6);
  border: 1px solid rgba(10,143,60,.16);
  color: #0a8f3c;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(10,143,60,.10);
}
.secondaryProductRow{
  display:flex;
  gap:18px;
  align-items:flex-start;
  flex-wrap:nowrap;
}

.secondaryMediaCol{
  flex:0 0 170px;
  min-width:170px;
}

.secondaryContentCol{
  flex:1 1 auto;
  min-width:0;
}

.secondaryTagsRow{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.secondaryBtnsRow{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.secondaryContentCol .prodName{
  margin:0 0 8px 0;
  line-height:1.15;
}

.secondaryContentCol .bul{
  margin-top:12px;
}

.secondaryContentCol .note{
  margin-top:12px;
}

@media (max-width: 760px){
  .secondaryProductRow{
    flex-wrap:wrap;
  }

  .secondaryMediaCol{
    flex:0 0 100%;
    min-width:100%;
  }

  .secondaryContentCol{
    flex:0 0 100%;
  }
}
.secondaryPlus{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:700;
  color:#006644;
  margin:12px 0;
}
.product:empty,
.note:empty,
.secondaryPlus:empty {
  display: none !important;
}
.product:empty::before,
.note:empty::before {
  display: none;
  content: none;
}
.note:empty {
  display: none !important;
}
#ruleNote:empty,
#secondaryRuleNote:empty,
#secondarySystemProof:empty {
  display: none !important;
}
#productBox:empty,
#secondaryProductBox:empty,
#ruleNote:empty,
#secondaryRuleNote:empty {
  display: none !important;
}
#sensitiveCaseModal {
  -webkit-overflow-scrolling: touch;
}

#sensitiveCaseModal .installModalBox {
  scrollbar-width: thin;
}

@media (max-width: 768px) {
  #sensitiveCaseModal .installModalBox {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    padding: 14px;
    border-radius: 18px;
  }

  #sensitiveCaseModal .installModalTitle {
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  #sensitiveCaseModal .installModalText {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  #sensitiveCaseModal input.in,
  #sensitiveCaseModal textarea.in {
    font-size: 16px;
  }

  #sensitiveCaseModal .installModalActions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    margin-top: 12px;
  }

  #sensitiveCaseModal .btn {
    min-height: 48px;
  }
}
#sensitiveCaseModal .installModalActions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 0 4px;
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
#sensitiveCaseModal .installModalBox {
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

#sensitiveCaseModal input.in,
#sensitiveCaseModal textarea.in {
  padding: 12px 14px;
  border-radius: 14px;
}

#sensitiveCaseModal textarea.in {
  min-height: 90px;
}
/* Boutons principaux Nuuk */
#goInterior,
#goExterior,
#btnSave,
#btnSynthese {
  background: #59695C !important;
  color: #fff !important;
  border: 1px solid #59695C !important;
}

#goInterior:hover,
#goExterior:hover,
#btnSave:hover,
#btnSynthese:hover {
  background: #4e5d51 !important;
}
.signature-nuuk {
  text-align: center;
  margin: 30px 0 15px;
  font-size: 16px;
  color: #59695C;
  font-weight: 700; /* 🔥 GRAS comme le titre */
  letter-spacing: 0.8px;
  position: relative;
}

.signature-nuuk::before {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: #59695C;
  margin: 0 auto 10px;
  opacity: 0.4;
}
.signature-nuuk {
  display: none;
}

.page[data-page="home"] .signature-nuuk {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
  text-align: center;
}
.btn-primary {
  background-color: #59695C;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #4a5a4f;
}
.fieldHelp{
  font-size: 13px;
  color: #6b746d;
  margin-top: 6px;
  padding-left: 4px;
}
.metaPillQty{
  background:#59695C;
  color:#fff;
  border-color:#59695C;
}
.modeBadge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

/* NUUK Quantités */
.mode-quantites {
  background: linear-gradient(135deg, #59695C, #7a8b7c);
  color: #fff;
}

/* Intérieur */
.mode-interieur {
  background: linear-gradient(135deg, #dbe7e1, #eef4f1);
  color: #33413a;
}

/* Extérieur */
.mode-exterieur {
  background: linear-gradient(135deg, #e8dcc8, #f3eadc);
  color: #5a4631;
}
.mode-quantites-card {
  border-left: 4px solid #59695C;
}

.mode-interieur-card {
  border-left: 4px solid #b8cfc2;
}

.mode-exterieur-card {
  border-left: 4px solid #d6bfa3;
}
.qtyResultBox{
  display:flex;
  align-items:center;
  gap:14px;

  background:linear-gradient(135deg,#eef6f1,#f8fbf9);
  border:2px solid #006644;
  border-radius:18px;

  padding:16px 18px;
  margin-top:12px;

  box-shadow:0 8px 22px rgba(0,102,68,0.12);
}

.qtyResultIcon{
  width:44px;
  height:44px;
  background:rgba(0,102,68,0.08);
  border:2px solid #006644;
  border-radius:12px;

  display:flex;
  align-items:center;
  justify-content:center;
}

.qtyResultIcon svg{
  width:22px;
  height:22px;
  stroke:#006644;
}

.qtyResultText{
  font-size:18px;
  font-weight:800;
  color:#33413a;
}

.qtyResultText b{
  color:#006644;
  font-weight:900;
}
.nuukSignature{
  margin-top: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f4f8f6, #eef4f1);
  border-radius: 14px;
  border: 1px solid rgba(0,102,68,0.15);
}

.nuukSignatureContent{
  display: flex;
  align-items: center;
  gap: 12px;
}

.nuukIcon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #59695C;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,102,68,0.2);
}

.nuukText{
  font-size: 13.5px;
  color: #59695C;
  font-weight: 500;
  line-height: 1.4;
}
.nuukSignature{
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nuukSignature:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.btn-secondary {
  width: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background: #f5f5f5;
  color: #333;
  font-family: inherit;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #eaeaea;
}
#btnQtyPdf {
  width: 100%;
  padding: 14px;
  border-radius: 14px;

  background: #59695C;
  color: #fff;
  border: 1px solid #59695C;

  font-family: inherit;
  font-weight: bold;
  font-size: 15px;

  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#btnQtyPdf:hover {
  background: #59695C;
}
#btnCalcQty {
  width: 100%;
  padding: 14px;
  border-radius: 14px;

  background: #59695C;
  color: #fff;
  border: 1px solid #59695C;

  font-family: inherit;
  font-weight: 600;
  font-size: 15px;

  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#btnCalcQty:hover {
  background: #4e5d51;
}
.btn-nuuk {
  width: 100%;
  padding: 14px;
  border-radius: 14px;

  background: #59695C;
  color: #fff;
  border: 1px solid #59695C;

  font-family: inherit;
  font-weight: 600;
  font-size: 15px;

  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nuuk:hover {
  background: #4e5d51;
}
.historyHead {
  display: block;
  margin-bottom: 10px;
}

.historyTitle {
  font-weight: 1000;
  color: #33413a;
  line-height: 1.25;
}

.historyActions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.historyActions .pill {
  flex: 0 0 auto;
}

.historyActions .btn-history {
  flex: 0 0 auto;
  min-width: 88px;
  width: auto;
  padding: 10px 14px;
}

.historyMeta {
  color: #5f6d66;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}.historyCard {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.historyCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.historyCard.quantites {
  border-left: 4px solid #59695C;
}

.historyCard.exterieur {
  border-left: 4px solid #d9c7a3;
}

.historyCard.interieur {
  border-left: 4px solid #a8cbb7;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 16px;
}

button {
  min-height: 44px;
}

.page,
.historyCard,
.card,
.panel,
.summaryCard {
  width: 100%;
  max-width: 100%;
}

.historyActions,
.history-actions,
.btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.historyActions .pill,
.history-actions .pill {
  flex: 0 0 auto;
}

.historyActions .btn-history,
.history-actions .btn-history,
.btn-row button {
  flex: 0 0 auto;
  min-width: 88px;
}

@media (max-width: 768px) {
  .historyActions,
  .history-actions,
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .historyActions .pill,
  .history-actions .pill {
    align-self: flex-start;
  }

  .historyActions .btn-history,
  .history-actions .btn-history,
  .btn-row button {
    width: 100%;
  }

  .historyCard {
    padding: 12px;
    border-radius: 14px;
  }

  .historyTitle {
    font-size: 15px;
    line-height: 1.3;
  }

  .historyMeta {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .historyCard {
    padding: 14px;
  }
}

@media (min-width: 1025px) {
  .historyCard {
    padding: 16px;
  }
}/* Desktop (Windows / Mac) */

@media (min-width:1024px){
  .qWrap,
  .summary,
  .sectionHead,
  .topbar,
  .hero,
  .homeGrid,
  .sumGrid{
    width:100%;
    max-width:none;
  }

  .qBlock,
  .product,
  .list,
  .card,
  .cardSoft,
  .homeCard{
    width:100%;
    max-width:none;
  }
}

/* === Responsive & navigation V9.0.0 === */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:auto;
}
body{
  overflow-wrap:anywhere;
  -webkit-tap-highlight-color:transparent;
}
.wrap{
  padding-left:max(12px, env(safe-area-inset-left));
  padding-right:max(12px, env(safe-area-inset-right));
  padding-bottom:max(70px, calc(56px + env(safe-area-inset-bottom)));
}
.btn, button, a.btn{
  touch-action:manipulation;
}
.in, input, select, textarea{
  max-width:100%;
}
.nuukBackToTop{
  position:fixed;
  right:max(14px, env(safe-area-inset-right));
  bottom:max(16px, calc(10px + env(safe-area-inset-bottom)));
  z-index:9990;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:74px;
  min-height:46px;
  padding:10px 14px;
  border:1px solid rgba(89,105,92,.25);
  border-radius:999px;
  background:rgba(89,105,92,.96);
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 26px rgba(34,48,39,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nuukBackToTop.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
@media (max-width:899px){
  .topbarCentered{padding:10px 10px 0;}
  .topbarCenter{order:-1; width:100%;}
  .topbarSide{width:100%;}
  .topbarSide .btn{min-width:0; white-space:normal;}
  .topbarSubline{padding:0 12px;}
  .sectionHead{flex-wrap:wrap;}
  .sectionHead > *{min-width:0;}
  .grid{padding:12px;}
  .qWrap{padding:0 12px 12px;}
}
@media (max-width:600px){
  .wrap{padding-top:10px;}
  .card,.cardSoft,.homeCard{border-radius:16px;}
  .hero{padding:24px 12px 14px;}
  .heroLogo{width:min(220px,70vw);}
  .topLogoCenter{height:64px;}
  .btn{padding:11px 12px;}
  .choices{gap:8px;}
  .choice{min-width:0;}
  #mapHost{min-height:150px !important;}
  .nuukBackToTop span{display:none;}
  .nuukBackToTop{min-width:46px;width:46px;padding:8px;}
}
@media (orientation:landscape) and (max-height:520px){
  .topLogoCenter{height:50px;}
  .heroLogo{width:180px;}
  .nuukBackToTop{bottom:max(8px, env(safe-area-inset-bottom));}
}

/* === Historique simulations V9 === */
.srOnly{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.historyToolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(150px,190px) minmax(150px,190px) auto;
  gap:10px;
  align-items:center;
  margin:14px 0 8px;
}
.historySearchField{min-width:0;}
.historySearchField .in,.historyFilter{height:52px;margin:0;width:100%;}
.historySearchMeta{
  min-height:22px;
  margin:0 2px 14px;
  color:#647169;
  font-size:13px;
  font-weight:800;
}
.historyCard{
  scroll-margin-top:16px;
}
.historyMeta .historyDept{
  display:inline-block;
  margin-top:4px;
  color:#67736c;
}
@media (max-width:900px){
  .historyToolbar{grid-template-columns:1fr 1fr;}
  .historySearchField{grid-column:1/-1;}
  .historyToolbar #btnDeleteAllSims{width:100%;}
}
@media (max-width:560px){
  .historyToolbar{grid-template-columns:1fr;}
  .historySearchField{grid-column:auto;}
  .historyFilter,.historyToolbar #btnDeleteAllSims{width:100%;}
}

/* ============================================================
   BAU SEAL SYSTEM® — V10.1.0
   ============================================================ */
:root{--bss-red:#c62828;--bss-red-dark:#9f1f1f;--bss-red-soft:#fff5f5;--bss-ink:#312f2f}
.homeCard.bssHomeCard{grid-column:auto;border:1px solid rgba(198,40,40,.22);background:linear-gradient(135deg,#fff 0%,#fff9f9 100%);position:relative;overflow:hidden}
.chantierHomeCard{grid-column:1/-1}
.homeCard.bssHomeCard:after{content:"";position:absolute;right:-58px;top:-58px;width:150px;height:150px;border-radius:50%;background:rgba(198,40,40,.05);pointer-events:none}
.bssEyebrow{font-size:12px;font-weight:900;letter-spacing:.12em;color:var(--bss-red);text-transform:uppercase;margin-bottom:8px}
.bssHomeTitle{display:flex!important;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.bssHomeLogo{display:block;width:54px;height:54px;object-fit:contain;flex:0 0 54px;border-radius:8px}
.bssMark,.bssMiniMark{display:inline-grid;place-items:center;background:var(--bss-red);color:#fff;border-radius:9px;font-weight:950;letter-spacing:.02em}
.bssMark{min-width:48px;height:34px;padding:0 9px;font-size:14px}.bssMiniMark{min-width:30px;height:24px;padding:0 7px;font-size:11px}
.btn-bss{background:var(--bss-red)!important;color:#fff!important;border-color:var(--bss-red)!important;box-shadow:0 8px 20px rgba(198,40,40,.18)!important}
.btn-bss:hover,.btn-bss:focus-visible{background:var(--bss-red-dark)!important;border-color:var(--bss-red-dark)!important}
.btn-bss-outline{background:#fff!important;color:var(--bss-red)!important;border:1px solid rgba(198,40,40,.35)!important;text-decoration:none}
.bssShell{overflow:visible}.bssLogoText{font-size:20px;font-weight:950;color:#313936;display:flex;align-items:center;gap:8px;justify-content:center}.bssLogoText span{background:var(--bss-red);color:#fff;padding:5px 8px;border-radius:8px;font-size:12px}.bssPill{border-color:rgba(198,40,40,.18)!important;color:var(--bss-red)!important}
.bssIntro{margin:16px;padding:18px;border:1px solid rgba(198,40,40,.15);border-radius:22px;background:linear-gradient(135deg,#fff,#fff8f8);display:flex;align-items:center;justify-content:space-between;gap:18px}.bssIntro h2{margin:0 0 7px;font-size:clamp(22px,3vw,34px)}.bssIntro p{margin:0;color:#65706a;line-height:1.55;max-width:820px}
.bssTabs{display:flex;gap:8px;padding:0 16px 16px;overflow-x:auto;scrollbar-width:none}.bssTabs::-webkit-scrollbar{display:none}.bssTab{border:1px solid rgba(49,47,47,.12);background:#fff;color:#4b514e;padding:12px 18px;border-radius:999px;font-weight:850;white-space:nowrap;cursor:pointer}.bssTab.active{background:var(--bss-red);border-color:var(--bss-red);color:#fff;box-shadow:0 7px 18px rgba(198,40,40,.16)}
.bssPanel{display:none;padding:0 16px 18px}.bssPanel.active{display:block}.bssSectionHead{border:1px solid rgba(198,40,40,.10)!important;border-radius:18px;background:#fff!important;margin-bottom:14px}.bssN{background:var(--bss-red)!important;color:#fff!important;border-color:var(--bss-red)!important}
.bssQuestion{background:#fff;border:1px solid rgba(89,105,92,.12);border-radius:20px;padding:16px;margin:12px 0}.bssChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.bssChoice{display:flex;gap:11px;align-items:center;min-height:84px;border:1px solid rgba(89,105,92,.15);border-radius:16px;padding:13px;background:#fff;cursor:pointer;transition:.16s ease}.bssChoice:hover{border-color:rgba(198,40,40,.32);background:#fffafa}.bssChoice:has(input:checked){border-color:var(--bss-red);background:var(--bss-red-soft);box-shadow:inset 0 0 0 1px var(--bss-red)}.bssChoice input{width:20px;height:20px;accent-color:var(--bss-red);flex:0 0 auto}.bssChoice span{display:flex;flex-direction:column;gap:3px}.bssChoice b{font-size:15px}.bssChoice small{color:#748079;line-height:1.35}
.bssResult{margin-top:14px}.bssReco{background:#fff;border:1px solid rgba(198,40,40,.18);border-radius:22px;padding:18px;box-shadow:0 10px 28px rgba(49,47,47,.05)}.bssReco.warning{background:#fffaf5;border-color:rgba(193,110,25,.25)}.bssRecoKicker{color:var(--bss-red);font-size:11px;font-weight:950;letter-spacing:.12em}.bssReco h3{font-size:clamp(24px,4vw,34px);margin:6px 0}.bssRecoUse{color:#67716c;line-height:1.55}.bssBadges{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.bssBadges span{background:#f6f7f6;border:1px solid rgba(89,105,92,.10);border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800}.bssSpecGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.bssSpecGrid>div{padding:11px;border-radius:14px;background:#f7f8f7;display:flex;flex-direction:column;gap:3px}.bssSpecGrid small{color:#79827d}.bssSpecGrid b{font-size:14px;word-break:break-word}.bssReco ul{padding-left:20px;line-height:1.55}.bssReco li+li{margin-top:5px}
.bssProjectBox{margin-top:14px;background:#fff;border:1px solid rgba(89,105,92,.12);border-radius:20px;padding:16px}.bssActions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.bssQtyGrid{display:grid;gap:12px}.bssQtyHero{background:linear-gradient(135deg,var(--bss-red),#a51f1f);color:#fff;padding:16px;border-radius:18px;display:flex;flex-direction:column;gap:3px;margin:12px 0}.bssQtyHero span{font-size:12px;opacity:.85;text-transform:uppercase;letter-spacing:.08em}.bssQtyHero b{font-size:28px}.bssQtyHero small{opacity:.85}.bssAccessoryResults{display:grid;gap:8px}.bssAccessoryResults .note{border-left:3px solid var(--bss-red)}
.bssCatalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bssProductCard{background:#fff;border:1px solid rgba(89,105,92,.12);border-radius:18px;padding:16px}.bssProductTop{display:flex;align-items:center;gap:8px;color:#6d7772;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.bssProductCard h3{font-size:20px;margin:10px 0 6px}.bssProductCard p{color:#6a746f;line-height:1.5}.bssProductCard dl{display:grid;gap:7px;margin:12px 0 0}.bssProductCard dl div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid rgba(89,105,92,.08);padding-top:7px}.bssProductCard dt{color:#79827d}.bssProductCard dd{margin:0;font-weight:800;text-align:right}.bssAccessoryCard{border-left:3px solid rgba(198,40,40,.7)}.bssTechnicalNote{margin-top:16px!important}
.modeBadge.mode-bss{background:#fff1f1!important;color:#a51f1f!important;border-color:rgba(198,40,40,.2)!important}.historyCard.mode-bss-card{border-left:4px solid var(--bss-red)!important}
@media(max-width:820px){.bssIntro{align-items:flex-start;flex-direction:column}.bssChoices,.bssCatalog{grid-template-columns:1fr}.bssSpecGrid{grid-template-columns:1fr 1fr}.bssPanel{padding-left:10px;padding-right:10px}.bssIntro{margin-left:10px;margin-right:10px}.bssTabs{padding-left:10px;padding-right:10px}}
@media(max-width:520px){.bssSpecGrid{grid-template-columns:1fr}.bssChoice{min-height:74px}.bssLogoText{font-size:17px}.bssTabs{gap:6px}.bssTab{padding:10px 14px}.bssActions>.btn{width:100%}.homeCard.bssHomeCard{grid-column:auto}.chantierHomeCard{grid-column:auto}}
@media(max-width:760px){.historyTools{grid-template-columns:1fr 1fr!important}.historyTools #searchSim{grid-column:1/-1}.historyTools #btnDeleteAllSims{grid-column:1/-1}}
@media(max-width:470px){.historyTools{grid-template-columns:1fr!important}.historyTools #searchSim,.historyTools #btnDeleteAllSims{grid-column:auto}}

/* ===== BSS V10.1.1 — visuels produits + accès site ===== */
.bssProductVisual{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:100%;min-height:220px;margin:10px 0 16px;overflow:hidden;
  border-radius:18px;border:1px solid rgba(198,40,40,.12);
  background:linear-gradient(145deg,#fafafa,#f3f5f4)
}
.bssProductVisual.compact{min-height:165px;margin:0 0 14px}
.bssProductImg{display:block;width:100%;height:100%;max-height:320px;object-fit:contain;background:#fff;padding:10px}
.bssProductVisual.compact .bssProductImg{max-height:210px}
.bssProductVisualFallback{min-height:inherit;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:22px;color:#414946}
.bssProductVisualFallback strong{font-size:18px}.bssProductVisualFallback small{color:#7b8580;font-weight:700;letter-spacing:.04em}
.bssFallbackMark{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--bss-red);color:#fff;font-weight:950;letter-spacing:.05em;box-shadow:0 8px 22px rgba(198,40,40,.18)}
.bssRecoMedia{max-width:560px;margin:0 auto}
.bssProductLink{display:flex!important;align-items:center;justify-content:center;text-align:center;width:100%;margin:14px 0 10px;background:var(--bss-red)!important;color:#fff!important;border-color:var(--bss-red)!important;text-decoration:none!important;font-weight:900}
.bssProductLink:hover{filter:brightness(.96)}
.bssProductCard .bssProductLink{margin-top:14px}
@media(max-width:520px){.bssProductVisual{min-height:175px}.bssProductVisual.compact{min-height:145px}.bssProductImg{max-height:235px}.bssProductVisual.compact .bssProductImg{max-height:180px}}

/* Version Mobile (1 seule colonne) */
@media (max-width: 700px) {
  .homeGrid {
    grid-template-columns: 1fr !important;
  }
}
