/* ===================================================== Onglets du dossier : Usine / Solutions logicielles */
.mk-areas { display: flex; gap: 6px; border-bottom: 2px solid var(--line, #dfe5ec); }
.mk-areas button { border: 0; background: none; padding: 10px 18px; font-size: 15px; font-weight: 650; color: var(--muted, #6b7a8c); border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; display: flex; gap: 8px; align-items: center; }
.mk-areas button:hover { color: #185FA5; background: #f5f8fb; }
.mk-areas button[aria-selected=true] { color: #185FA5; border-color: #378ADD; background: #E6F1FB; }
.mk-areas .cnt { font-size: 12px; background: #e9eef3; color: var(--muted, #6b7a8c); border-radius: 10px; padding: 1px 8px; }
body.mk-dark .mk-areas { border-color: rgba(173, 201, 240, .14); }
body.mk-dark .mk-areas button { color: #9FB3CF; }
body.mk-dark .mk-areas button:hover { background: rgba(255, 255, 255, .04); color: #EEF4FC; }
body.mk-dark .mk-areas button[aria-selected=true] { background: rgba(77, 143, 224, .2); color: #fff; border-color: #7FB6FF; }
body.mk-dark .mk-areas .cnt { background: rgba(255, 255, 255, .1); color: #C3D1E3; }

/* ===================================================== Choix de configuration : indicateurs */
/* Pastille sur la tuile / le nœud : ⚙ cochés / offerts (ambre = rien de choisi, bleu = déjà des choix) */
.cfg-badge { --cc: #F2B33D; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); white-space: nowrap; }
.cfg-badge.some { --cc: #4D8FE0; }
body.mk-dark .cfg-badge.some { --cc: #7FB6FF; }
body:not(.mk-dark) .cfg-badge { color: color-mix(in srgb, var(--cc) 70%, #000); }
.mk-st.row .cfg-badge { grid-column: 1 / -1; justify-self: start; margin-top: 3px; }
.fr-node .cfg-badge { margin-top: 1px; }
.mk-leg .leg-cfg { color: #F2B33D; font-weight: 600; }

/* Bandeau en haut de la fiche : « 5 choix de configuration à faire ↓ » */
.cfg-callout { --cc: #F2B33D; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); background: color-mix(in srgb, var(--cc) 10%, transparent); color: inherit; cursor: pointer; font-size: 14px; }
.cfg-callout.some { --cc: #4D8FE0; }
.cfg-callout:hover { background: color-mix(in srgb, var(--cc) 18%, transparent); }
.cfg-callout strong { display: block; }
.cfg-callout small { display: block; font-size: 12.5px; opacity: .8; }
.cfg-callout-ico { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: var(--cc); color: #0D1A2E; }
.cfg-callout.todo .cfg-callout-ico { animation: cfgPulse 2.2s ease-in-out 3; }
@keyframes cfgPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--cc) 25%, transparent); } }

/* Section des choix : bande « tous niveaux » puis colonnes Standard / Avancé / Expert */
.mk-config { scroll-margin-top: 20px; }
.mk-config-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-config-head .mk-addon-title { margin: 0; }
.cfg-count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(242, 179, 61, .16); color: #b07a12; }
.cfg-count.some { background: rgba(77, 143, 224, .16); color: #2f6db5; }
body.mk-dark .cfg-count { color: #F2C66D; } body.mk-dark .cfg-count.some { color: #A9CBFF; }
.mk-config-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mk-config-col { display: grid; gap: 10px; align-content: start; }
.mk-config-col .mk-lv-name { margin-bottom: 0; }
@media (max-width: 760px) { .mk-config-cols { grid-template-columns: 1fr; } }

/* ===================================================== Plan des solutions logicielles */
.sw-squares { grid-template-columns: repeat(2, 1fr); }
.sw-sq .fr-sq-ico { font-size: 24px; line-height: 1; }
.sw-sq.k-product { border-color: rgba(127, 182, 255, .45); color: var(--fr-text); }
.sw-node { width: 190px; gap: 3px; padding: 12px 12px 14px; }
.sw-node.k-product { border: 1.5px solid #4D8FE0; background: color-mix(in srgb, #4D8FE0 12%, var(--fr-card)); }
.sw-node.k-ext { border: 1.5px dashed #9FB3CF; }
.sw-node small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--fr-muted); }
.sw-node.k-product small { color: var(--fr-link); }
.sw-node p { margin: 0; font-size: 12px; color: var(--fr-muted); line-height: 1.35; }
.sw-ico { font-size: 26px; line-height: 1; }
.sw-node .fr-handle { top: 50%; transform: translateY(-50%); }
.sw-label { position: absolute; z-index: 3; transform: translate(-50%, -50%); max-width: 220px; padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 1.3; text-align: center;
  background: var(--fr-card); color: var(--fr-text); border: 1px solid var(--fr-link); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); cursor: pointer; }
.sw-label.empty { color: var(--fr-muted); border-style: dashed; }
.sw-label.sel { border-color: #28C1ED; box-shadow: 0 0 0 3px rgba(40, 193, 237, .25); }
.sw-menu { transform: translate(-50%, 40%); }

/* ===================================================== Présentation : choix retenus, phases, solutions logicielles */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ch-card { background: #ffffff0c; border: 1px solid #ffffff1a; border-radius: 16px; padding: 16px 18px; animation: pop .5s both; animation-delay: var(--d, 0ms); }
.ch-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: 16px; }
.ch-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ch-card li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; font-size: 14px; color: #dbe9f3; }
.ch-card li > i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.ch-card li.sp > i { background: #E88AD6; }
.ch-card li b { font-weight: 600; color: #fff; }
.ch-card li small { display: block; color: #9fbcd1; font-size: 12.5px; }
.ch-card li em { font-style: normal; font-size: 11px; color: #9fbcd1; border: 1px solid #ffffff26; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

.ph-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ph-col { background: #ffffff0a; border: 1px solid #ffffff1a; border-radius: 16px; padding: 14px; display: grid; gap: 10px; animation: pop .5s both; animation-delay: var(--d, 0ms); }
.ph-col header { display: flex; align-items: center; gap: 10px; color: #fff; }
.ph-col header div { flex: 1; display: grid; }
.ph-col header small { color: #9fbcd1; font-size: 12.5px; }
.ph-col header b { font-size: 22px; }
.ph-step { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #1fb6e6; color: #0a1c2b; flex: none; }
.ph-used .ph-step { background: #4fe0a4; }
.ph-used { border-color: #4fe0a455; }
.ph-st { background: #ffffff08; border-radius: 10px; padding: 8px 10px; }
.ph-st-name { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9fbcd1; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.ph-st ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; color: #e4eff7; }
.ph-st em { font-style: normal; font-size: 11px; color: #f2c66d; }
@media (max-width: 1000px) { .ph-board { grid-template-columns: 1fr 1fr; } }

.sw-fit { position: relative; overflow: hidden; }
.sw-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.sw-stage svg { position: absolute; inset: 0; overflow: visible; }
.sws-node { position: absolute; box-sizing: border-box; display: grid; justify-items: center; gap: 3px; text-align: center; padding: 12px; border-radius: 14px; color: #fff;
  background: #ffffff0f; border: 1.5px dashed #9fbcd1; }
.sws-node.k-product { border: 1.5px solid #5fd0f5; background: #1fb6e61f; box-shadow: 0 0 24px #1fb6e633; }
.sws-node small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #9fbcd1; }
.sws-node.k-product small { color: #5fd0f5; }
.sws-node p { margin: 0; font-size: 12px; color: #b9cfdf; line-height: 1.35; }
.sws-label { position: absolute; transform: translate(-50%, -50%); max-width: 220px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; text-align: center; background: #0a1c2b; color: #fff; border: 1px solid #5fd0f5; }

/* ===================================================== Export PDF : toutes les diapositives, une par page, même visuel */
@media print {
  @page { size: letter landscape; margin: 0; }
  html, body, body.presenting { background: #0a1c2b !important; }
  .slides { display: block !important; }
  .slide { grid-area: auto !important; display: block !important; box-sizing: border-box; min-height: 215mm; padding: 12mm 14mm !important; break-after: page; break-inside: avoid;
    background: #0a1c2b; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .slide:last-child { break-after: auto; }
  .slide *, .slide { animation: none !important; transition: none !important; }
  .slide * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .story { min-height: 0 !important; background: #0a1c2b !important; }
  .cover { min-height: 185mm !important; }
  .s-head h2 { font-size: 30px; }
  .ch-card, .ph-col, .ph-st, .gain, .stile { break-inside: avoid; }
}

/* Icônes des onglets et logos des produits WEB-CAB */
.mk-areas .sti { width: 20px; height: 20px; }
.sw-logo { width: 30px; height: 30px; display: block; }
.fr-sq-ico .sw-logo { width: 30px; height: 30px; }
.sw-lockup { display: flex; align-items: center; gap: 8px; text-align: left; padding: 2px 0; }
.sw-lockup .sw-logo { width: 40px; height: 40px; flex: none; }
.sw-lockup b { display: block; font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.05; color: var(--fr-text, #fff); }
.sw-lockup small { display: block; font-size: 11px; letter-spacing: .14em; color: var(--fr-muted, #9fbcd1); text-transform: none; font-weight: 500; }
.sw-node.k-product { gap: 6px; }
.sw-ico .sti { width: 28px; height: 28px; }
.sws-node .sw-lockup b { color: #fff; } .sws-node .sw-lockup small { color: #9fbcd1; }
.sws-node .sw-ico { color: #9fbcd1; }

/* Diapositive « Vos stations sur mesure » */
.xs-card { border-style: dashed; border-color: #F2B33D80; }
.xs-card header small { display: block; font-size: 12px; color: #9fbcd1; }
.xs-card header .sti { width: 30px; height: 30px; color: #F2B33D; flex: none; }
.xs-card .xs-note { margin: 0 0 10px; font-size: 13.5px; color: #dbe9f3; }
.xs-card li > i { background: #ffffff33; }
.xs-card li.xs-used > i { background: var(--used, #8CB23F); }
.xs-card li.xs-want > i { background: var(--want, #28C1ED); }
.xs-card li em.none { border: 0; }
