/* Chantier 1334 : pages dédiés et bare metal (hero Dell, stock, façade animée, livraison, comparateur, simulateur Proxmox).
   Chargée après dedies.css ; couleurs et polices viennent des variables de signal.css. */

/* Hero : nos machines Dell à droite, le visuel garde son propre noir à gauche */
/* Largeur fixée par le ratio de l'image : la pile commence vers 54 % de sa largeur, donc toujours à droite du texte */
.sg-mx-hero .sg-mx-visuel { top: 50%; width: 82%; height: auto; aspect-ratio: 2400 / 1019; translate: 0 -50%; }
.sg-mx-hero .sg-mx-visuel img {
  object-position: 100% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 16%, #000 72%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 30%), linear-gradient(180deg, transparent 0, #000 16%, #000 72%, transparent 100%);
}
.sg-led { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vert) 18%, transparent); }
.sg-mx-assur { grid-column: 1 / 8; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 40px; font-size: 14px; color: var(--ink-2); animation: sg-monte .9s var(--ease) .35s both; }
.sg-mx-assur li { display: inline-flex; align-items: center; gap: 8px; }
.sg-mx-assur svg { width: 14px; height: 14px; color: var(--rose); }
.sg-mx-assur a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; transition: color .2s ease; }
.sg-mx-assur a:hover { color: var(--ink); }
.sg-mx-assur a .ext { width: 11px; height: 11px; color: var(--ink-3); }

/* Bande des machines en stock, juste sous le hero */
.sg-mx-bande { background: var(--bg-2); }
.sg-mx-bande .sg-wrap { display: grid; grid-template-columns: minmax(180px, 1fr) 4fr; align-items: stretch; }
.sg-mx-bande .t { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px 24px 22px 0; font: 700 17px/1.2 var(--f-display); }
.sg-mx-bande .t small { font: 400 13px/1.45 var(--f-text); color: var(--ink-3); }
.sg-mx-bande ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); }
.sg-mx-bande a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 20px; border-left: 1px solid var(--line); transition: background .2s ease; }
.sg-mx-bande a:hover { background: var(--bg-3); }
.sg-mx-bande .n { display: flex; align-items: center; gap: 9px; font: 700 16px/1.2 var(--f-display); }
.sg-mx-bande .n .sg-led { width: 6px; height: 6px; box-shadow: none; }
.sg-mx-bande .s { font-size: 12px; color: var(--ink-3); }
.sg-mx-bande .p { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--ink); }
/* n°1394 : la mention HT / mois sous le prix, dans toutes les langues (DE et IT débordaient à 1280 px sur une seule ligne) */
.sg-mx-bande .p small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sg-dd-ligne:target { background: var(--bg-2); box-shadow: inset 2px 0 0 var(--rose); }
.sg-dd-ligne { scroll-margin-top: 110px; }

/* Bare metal : façade Dell en gros plan, LED d'activité qui clignotent par à-coups */
.sg-mx-metal-grille { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: center; }
.sg-mx-facade { grid-column: 1 / 8; position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.sg-mx-facade img { display: block; width: 100%; height: auto; }
.sg-mx-metal .txt { grid-column: 9 / 13; }
.sg-mx-metal h2 { font: 780 var(--h2)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -.025em; text-wrap: balance; }
.sg-mx-metal .txt > p { margin-top: 22px; max-width: 46ch; color: var(--ink-2); line-height: 1.65; }
.sg-mx-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px var(--gut); margin-top: var(--esp-l); }
.sg-mx-points li { padding-top: 16px; border-top: 1px solid var(--line-2); }
.sg-mx-points h3 { font: 700 17px/1.25 var(--f-display); }
.sg-mx-points p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sg-mx-leds i { position: absolute; left: var(--x); top: var(--y); width: 2.4%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.sg-mx-leds i::before, .sg-mx-leds i::after { content: ''; position: absolute; border-radius: 50%; opacity: 0; }
.sg-mx-leds i::before { inset: 22%; background: rgba(10, 10, 12, .92); animation: sg-mx-clign var(--d, 5s) steps(1, end) var(--r, 0s) infinite; }
.sg-mx-leds i::after { inset: -70%; background: radial-gradient(closest-side, var(--c), transparent); mix-blend-mode: screen; animation: sg-mx-halo var(--d, 5s) ease-in-out var(--r, 0s) infinite; }
.sg-mx-leds .v { --c: color-mix(in srgb, var(--vert) 45%, transparent); }
.sg-mx-leds .a { --c: rgba(255, 176, 46, .4); }
@keyframes sg-mx-clign { 0%, 100% { opacity: 0; } 11% { opacity: 1; } 13% { opacity: 0; } 36% { opacity: 1; } 37% { opacity: 0; } 39% { opacity: 1; } 41% { opacity: 0; } 70% { opacity: 1; } 72% { opacity: 0; } }
@keyframes sg-mx-halo { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* Livraison : trois étapes sur une ligne qui se remplit à l'arrivée */
.sg-mx-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); margin-top: var(--esp-m); counter-reset: e; }
.sg-mx-etapes li { position: relative; padding-top: 28px; }
.sg-mx-etapes li::before { content: ''; position: absolute; top: 0; left: 0; right: calc(-1 * var(--gut)); height: 1px; background: var(--line-2); }
.sg-mx-etapes li:last-child::before { right: 0; }
.sg-mx-etapes li::after { content: ''; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--ink-3); transition: background .4s ease, border-color .4s ease; }
.sg-mx-etapes.vu li::after { background: var(--rose); border-color: var(--rose); }
.sg-mx-etapes.vu li:nth-child(2)::after { transition-delay: .35s; }
.sg-mx-etapes.vu li:nth-child(3)::after { transition-delay: .7s; background: var(--vert); border-color: var(--vert); }
.sg-mx-etapes .k { display: flex; gap: 10px; font-size: 12px; color: var(--ink-3); }
.sg-mx-etapes .k b { color: var(--ink); font-weight: 500; }
.sg-mx-etapes h3 { margin-top: 18px; font: 700 22px/1.2 var(--f-display); }
.sg-mx-etapes p { margin-top: 10px; max-width: 38ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Comparateur des gammes : bornes en barres sur une échelle commune */
.sg-mx-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.sg-mx-cmp article { display: flex; flex-direction: column; padding: 34px 34px 30px; border: 1px solid var(--line-2); background: var(--bg-2); }
.sg-mx-cmp h3 { font: 760 26px/1.1 var(--f-display); font-stretch: 108%; letter-spacing: -.02em; }
.sg-mx-cmp .pitch { margin-top: 12px; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.sg-mx-cmp dl { margin: 28px 0 0; }
.sg-mx-cmp dl > div { display: grid; grid-template-columns: 130px 1fr; column-gap: 18px; row-gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.sg-mx-cmp dt { font: 400 12px/1.6 var(--f-mono); font-stretch: 87.5%; color: var(--ink-3); }
.sg-mx-cmp dd { margin: 0; font-size: 15px; line-height: 1.5; }
.sg-mx-cmp .plage { grid-column: 2; position: relative; height: 4px; background: var(--bg-4); }
.sg-mx-cmp .plage::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); min-width: 4px; background: var(--rose); }
.sg-mx-cmp .dispo { display: flex; align-items: center; gap: 9px; }
.sg-mx-cmp .dispo i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.sg-mx-cmp .dispo.ok i { background: var(--vert); }
.sg-mx-cmp .pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.sg-mx-cmp-echelle { margin-top: 18px; font-size: 12px; color: var(--ink-3); }

/* Simulateur Proxmox : réglages à gauche, chaque machine avec ses jauges à droite */
.sg-mx-sim { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: start; }
.sg-mx-sim .reglages { grid-column: 1 / 6; position: sticky; top: 100px; display: grid; gap: 26px; padding: 30px; border: 1px solid var(--line-2); background: var(--bg-2); }
.sg-mx-sim .champ { margin: 0; padding: 0; border: 0; min-width: 0; }
.sg-mx-sim .champ > label, .sg-mx-sim legend { display: block; margin-bottom: 12px; padding: 0; font: 400 12px/1.4 var(--f-mono); font-stretch: 87.5%; color: var(--ink-3); }
.sg-mx-sim .curseur { display: flex; align-items: center; gap: 16px; }
.sg-mx-sim input[type=range] { flex: 1; accent-color: var(--rose); }
.sg-mx-sim output { min-width: 2.4ch; font-size: 22px; color: var(--ink); text-align: right; }
.sg-mx-sim .choix { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-mx-sim .choix label { position: relative; }
.sg-mx-sim .choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sg-mx-sim .choix span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; font-size: 13px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s ease, box-shadow .2s ease, background .2s ease; }
.sg-mx-sim .choix label:hover span { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.sg-mx-sim .choix input:checked + span { color: var(--ink); background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--ink-3), inset 0 -2px 0 var(--rose); }
.sg-mx-sim .choix input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.sg-mx-sim .sur { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.sg-mx-sim .sur input { margin-top: 3px; accent-color: var(--rose); }
.sg-mx-sim .besoin { padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.sg-mx-sim .besoin b { font: 500 17px/1 var(--f-mono); font-stretch: 87.5%; }
.sg-mx-sim .note { font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.sg-mx-sim .res { grid-column: 6 / 13; display: grid; gap: 10px; }
.sg-mx-sim .res li { display: grid; grid-template-columns: 1fr 168px; column-gap: 24px; row-gap: 10px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); background: var(--bg); transition: opacity .3s ease, border-color .3s ease, background .3s ease; }
.sg-mx-sim .n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 700 18px/1.2 var(--f-display); }
.sg-mx-sim .etat { font: 400 12px/1.4 var(--f-mono); font-stretch: 87.5%; color: var(--ink-3); }
.sg-mx-sim .badge { display: none; padding: 3px 8px; font-size: 12px; font-weight: 500; color: var(--rose-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rose) 45%, transparent); }
.sg-mx-sim .jauge { grid-column: 1; display: grid; grid-template-columns: 38px 1fr 150px; align-items: center; gap: 12px; }
.sg-mx-sim .jauge .l { font-size: 12px; color: var(--ink-3); }
.sg-mx-sim .barre { position: relative; height: 6px; background: var(--bg-4); overflow: hidden; }
.sg-mx-sim .barre i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink-2); transition: width .45s var(--ease), background .3s ease; }
.sg-mx-sim .jauge .v { font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.sg-mx-sim .p { grid-column: 2; grid-row: 1; text-align: right; font-size: 16px; }
.sg-mx-sim .p small { font-size: 12px; color: var(--ink-3); }
.sg-mx-sim .res .sg-btn { grid-column: 2; grid-row: 2 / 4; justify-self: end; }
/* Machine trop petite : seules les barres s'estompent, le texte (ce que le client cherche) reste lisible (audit n°3) */
.sg-mx-sim li.ko .barre { opacity: .5; }
.sg-mx-sim li.ko :is(.n, .p, .jauge .l, .jauge .v) { color: var(--ink-3); }
.sg-mx-sim li.t-ko .jauge:nth-of-type(2) .barre i, .sg-mx-sim li.r-ko .jauge:nth-of-type(3) .barre i { background: var(--rose); }
.sg-mx-sim li.ko .sg-btn { visibility: hidden; }
.sg-mx-sim li.conseil { border-color: var(--line-3); background: var(--bg-2); box-shadow: inset 2px 0 0 var(--rose); }
.sg-mx-sim li.conseil .badge { display: inline-block; }
.sg-mx-sim li.conseil .barre i { background: var(--vert); }
.sg-mx-sim .aucun-msg { display: none; grid-column: 6 / 13; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.sg-mx-sim.aucun .aucun-msg { display: block; }
.sg-mx-sim + .sg-prose2 { margin-top: var(--esp-l); }

/* Tablette et mobile */
@media (max-width: 1100px) {
  .sg-mx-hero .sg-mx-visuel { width: 86%; opacity: .6; }
  .sg-mx-assur { grid-column: 1 / -1; }
  .sg-mx-bande .sg-wrap { grid-template-columns: 1fr; }
  .sg-mx-bande .t { padding: 20px 0 14px; }
  .sg-mx-bande ul { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scrollbar-width: none; grid-auto-columns: minmax(196px, 1fr); }
  .sg-mx-bande li { scroll-snap-align: start; }
  .sg-mx-bande li:first-child a { border-left: 0; padding-left: 0; }
  .sg-mx-facade { grid-column: 1 / -1; }
  .sg-mx-metal .txt { grid-column: 1 / -1; margin-top: 48px; }
  .sg-mx-points { grid-template-columns: 1fr 1fr; }
  .sg-mx-cmp { grid-template-columns: 1fr; }
  .sg-mx-sim .reglages, .sg-mx-sim .res, .sg-mx-sim .aucun-msg { grid-column: 1 / -1; }
  .sg-mx-sim .reglages { position: static; margin-bottom: 24px; }
}
@media (max-width: 720px) {
  .sg-mx-hero .sg-mx-visuel { display: none; } /* #1366 A : sur téléphone, le haut de page reste du texte */
  .sg-mx-assur { gap: 10px 18px; margin-top: 30px; font-size: 13.5px; }
  .sg-mx-bande a { padding: 16px 18px; }
  .sg-mx-points { grid-template-columns: 1fr; }
  .sg-mx-etapes { grid-template-columns: 1fr; gap: 0; }
  .sg-mx-etapes li { padding: 0 0 30px 28px; }
  .sg-mx-etapes li::before { top: 4px; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .sg-mx-etapes li:last-child::before { display: none; }
  .sg-mx-etapes li::after { top: 0; }
  .sg-mx-etapes h3 { margin-top: 10px; font-size: 20px; }
  .sg-mx-cmp article { padding: 26px 22px 24px; }
  .sg-mx-cmp dl > div { grid-template-columns: 1fr; row-gap: 6px; }
  .sg-mx-cmp .plage { grid-column: 1; }
  .sg-mx-sim .reglages { padding: 24px 20px; }
  .sg-mx-sim .res li { grid-template-columns: 1fr; padding: 18px 16px; }
  .sg-mx-sim .jauge { grid-template-columns: 34px 1fr auto; }
  .sg-mx-sim .p { grid-column: 1; grid-row: auto; text-align: left; }
  .sg-mx-sim .res .sg-btn { grid-column: 1; grid-row: auto; justify-self: stretch; }
  .sg-mx-sim li.ko .sg-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-mx-leds i::before, .sg-mx-leds i::after { animation: none; }
  .sg-mx-sim .barre i, .sg-mx-etapes li::after { transition: none; }
}

/* Lignes d'offres : la colonne des boutons a une largeur fixe, sinon une ligne à un seul bouton décale toutes ses colonnes */
@media (min-width: 1101px) {
  .sg-dd-ligne { grid-template-columns: 1.45fr 1.45fr 1.1fr 1fr 232px; }
}

/* Simulateur : seul le conseil garde le bouton plein, les autres machines qui tiennent passent en contour */
.sg-mx-sim li:not(.conseil) .sg-btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.sg-mx-sim li:not(.conseil) .sg-btn:hover { background: var(--bg-3); }
.sg-nw { white-space: nowrap; }

/* Arrivée des visuels (#1365 A, sg-arrive d'accueil.css) : mise au point en glissant depuis la droite. Puis, propre à
   chaque page (Mathis, 03:24) : bare metal, les LED des tiroirs s'allument une à une et reprennent leur activité ;
   dédiés, un balayage lumineux descend la baie une fois, comme une mise sous tension. */
.sg-mx-leds.hero i { width: .7%; }
.sg-mx-leds.hero i::before { inset: 22%; }
.sg-mx-leds.hero i::after { inset: -110%; }
.sg-mx-scan { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); overflow: hidden; pointer-events: none; }
.sg-mx-scan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14%; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--rose-2) 24%, transparent) 40%, rgba(255, 255, 255, .32) 50%, color-mix(in srgb, var(--rose-2) 24%, transparent) 60%, transparent); }
@keyframes sg-mx-balaye { from { opacity: 0; transform: translateY(-100%); } 12%, 88% { opacity: 1; } to { opacity: 0; transform: translateY(714%); } }
@media (prefers-reduced-motion: no-preference) {
  .sg-mx-hero .sg-mx-visuel { animation: sg-arrive 1.1s var(--ease) .1s both; }
  .sg-mx-hero .sg-mx-visuel img { animation: none; }
  .sg-mx-leds.hero i::before { animation: sg-led-eteinte var(--b) linear, sg-mx-clign var(--d) steps(1, end) var(--b) infinite; }
  .sg-mx-leds.hero i::after { animation: sg-led-flash .5s ease-out var(--b) backwards, sg-mx-halo var(--d) ease-in-out var(--b) infinite backwards; }
  .sg-mx-scan::before { animation: sg-mx-balaye 1.7s cubic-bezier(.45, .05, .35, 1) 1.2s both; }
  .sg-mx-hero .sg-lp-actions .sg-btn svg { animation: sg-fleche 2.6s var(--ease) 2s infinite; }
  .sg-mx-hero .sg-lp-actions .sg-btn:hover svg { animation: none; }
}
