/* =========================================================
   Logetic — pages Appliance, Cloud et architecture
   ========================================================= */

/* ---------- Héro produit (fond sombre + visuel) ---------- */
.lg-phero { position: relative; overflow: hidden; padding: calc(var(--nf-topbar-h) + var(--nf-bar-h) + clamp(40px, 6vw, 88px)) 0 clamp(64px, 8vw, 120px); background: radial-gradient(120% 90% at 85% 20%, #0B5A6E 0%, var(--nf-ink) 38%, var(--nf-night) 100%); color: #fff; }
.lg-phero::after { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 70%; background: radial-gradient(closest-side, rgba(221, 122, 62, .22), transparent); pointer-events: none; }
.lg-phero__grid { position: relative; z-index: 1; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lg-phero__grid > * { margin: 0 !important; }
.lg-phero h1 { color: #fff; max-width: 15ch; }
.lg-phero .nf-lead { color: rgba(255, 255, 255, .82); max-width: 52ch; }
.lg-phero .nf-kicker { color: var(--nf-glacier); }
.lg-phero .wp-block-buttons { gap: 12px; margin-top: 28px; }
.lg-phero__facts { display: flex !important; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px !important; padding: 0; list-style: none; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.lg-phero__facts li { display: flex; align-items: center; gap: 8px; margin: 0; }
.lg-phero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lg-orange); }
@media (max-width: 960px) { .lg-phero__grid { grid-template-columns: 1fr; } }

/* ---------- Boîtier Logetic (3D en CSS) ---------- */
.lg-box-scene { --w: 380px; --h: 104px; --d: 280px; position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1400px; }
.lg-box-scene::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 46px; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); filter: blur(6px); }
.lg-box { position: relative; z-index: 1; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-26deg); }
.lg-box-scene { animation: lg-box-in 1.1s var(--nf-ease) both; }
@keyframes lg-box-in { from { opacity: 0; translate: 0 24px; } }
@media (prefers-reduced-motion: reduce) { .lg-box-scene { animation: none; } }
.lg-box__face { position: absolute; left: 0; top: 0; backface-visibility: hidden; }
.lg-box__front { width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / 2)); border-radius: 6px; background: linear-gradient(180deg, #0A4D5F 0%, #003645 55%, #002B37 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .25); display: flex; align-items: center; gap: 16px; padding: 0 18px; }
.lg-box__back { width: var(--w); height: var(--h); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #002630; }
.lg-box__top { width: var(--w); height: var(--d); transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); border-radius: 6px; background: linear-gradient(135deg, #1B7A90 0%, #0F6276 45%, #0A5163 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 40px rgba(0, 0, 0, .2); }
.lg-box__top::before { content: ""; position: absolute; inset: 22% 14%; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 3px, transparent 3px 11px); opacity: .55; }
.lg-box__top::after { content: ""; position: absolute; left: 18px; bottom: 16px; width: 90px; height: 20px; background: url("../img/brands/logetic-logo-white.svg") left center / contain no-repeat; opacity: .5; }
.lg-box__right { width: var(--d); height: var(--h); transform: rotateY(90deg) translateZ(calc(var(--w) - var(--d) / 2)); border-radius: 4px; background: linear-gradient(180deg, #003341 0%, #00222B 100%); display: flex; align-items: center; gap: 7px; padding: 0 22px; }
.lg-box__left { width: var(--d); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); background: #002630; }
.lg-box__bottom { width: var(--w); height: var(--d); transform: rotateX(-90deg) translateZ(calc(var(--h) - var(--d) / 2)); background: #00161C; }
.lg-box__logo { height: 30px; width: auto; flex: none; }
.lg-box__strip { flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(221, 122, 62, 0) 0%, var(--lg-orange) 40%, #F2B184 50%, var(--lg-orange) 60%, rgba(221, 122, 62, 0) 100%); box-shadow: 0 0 14px rgba(221, 122, 62, .8); animation: lg-glow 3.2s ease-in-out infinite; }
@keyframes lg-glow { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .lg-box__strip { animation: none; } }
.lg-box__leds { display: flex; gap: 7px; flex: none; }
.lg-box__leds i { width: 7px; height: 7px; border-radius: 50%; background: #5DD39E; box-shadow: 0 0 8px #5DD39E; }
.lg-box__leds i:nth-child(2) { background: var(--lg-orange); box-shadow: 0 0 8px var(--lg-orange); }
.lg-box__leds i:nth-child(3) { background: rgba(255, 255, 255, .25); box-shadow: none; }
.lg-box__port { width: 22px; height: 18px; border-radius: 2px; background: #0B151A; box-shadow: inset 0 0 0 2px #304A52, inset 0 -6px 0 #000; }
.lg-box__port:nth-child(5) { margin-left: auto; width: 12px; border-radius: 6px; }
@media (max-width: 600px) { .lg-box-scene { --w: 250px; --h: 70px; --d: 180px; min-height: 280px; } .lg-box__logo { height: 18px; } .lg-box__port { width: 15px; height: 13px; } }

/* Variante « machine virtuelle » : simple fenêtre d'hyperviseur */
.lg-vm { border-radius: var(--nf-r-m); background: #fff; box-shadow: var(--nf-shadow-soft); overflow: hidden; font-size: 13px; }
.lg-vm__bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--nf-mist); border-bottom: 1px solid var(--nf-line); font-weight: 600; color: var(--nf-muted); }
.lg-vm__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD7DA; }
.lg-vm__bar span { margin-left: 8px; }
.lg-vm__rows { list-style: none; margin: 0; padding: 8px 0; }
.lg-vm__rows li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--nf-slate); }
.lg-vm__rows li b { font-weight: 600; color: var(--nf-ink); }
.lg-vm__rows li em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #E6F6EE; color: #1E7B50; }
.lg-vm__rows li.is-logetic { background: var(--lg-peach); }

/* ---------- Modules du boîtier ---------- */
.lg-modules { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.lg-modules > * { margin: 0 !important; }
.lg-modules li { position: relative; padding: 26px 22px 24px; border-radius: var(--nf-r-m); background: #fff; border: 1px solid var(--nf-line); }
.lg-modules li::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--nf-ink) var(--ico) center / 22px no-repeat; }
.lg-modules li:nth-child(2n)::before { background-color: var(--lg-orange); }
.lg-modules b { display: block; margin-bottom: 6px; font-size: 17px; font-stretch: 105%; color: var(--nf-ink); }
.lg-modules span { font-size: 14.5px; color: var(--nf-muted); }
@media (max-width: 1000px) { .lg-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lg-modules { grid-template-columns: 1fr; } }

/* ---------- Smartphones avec le portail ---------- */
.lg-phones { display: flex !important; justify-content: center; align-items: flex-end; gap: clamp(14px, 3vw, 36px); flex-wrap: wrap; }
.lg-phones > * { margin: 0 !important; }
.lg-phone { --brand: var(--lg-orange); position: relative; flex: none; width: 236px; aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 40px; background: linear-gradient(145deg, #2B3A40, #0C1418 60%); box-shadow: 0 40px 70px -34px rgba(0, 20, 26, .7), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.lg-phone::before { content: ""; position: absolute; top: 18px; left: 50%; z-index: 2; width: 72px; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #05090B; }
.lg-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 31px; background: #F4F6F7; display: flex; flex-direction: column; text-align: center; color: var(--nf-slate); font-size: 11px; line-height: 1.35; }
.lg-phone__status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 10.5px; font-weight: 700; color: #111; }
.lg-phone__status span:last-child { letter-spacing: 1px; }
.lg-phone__photo { height: 64px; margin-top: 18px; background: var(--photo, linear-gradient(135deg, #CFE3E8, #F4E3D5)) center / cover; }
.lg-phone__card { flex: 1; margin: -26px 12px 12px; padding: 14px 14px 12px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -14px rgba(0, 40, 50, .35); display: flex; flex-direction: column; }
.lg-phone__lang { align-self: flex-end; display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: #F1F4F5; font-size: 8.5px; font-weight: 700; color: var(--nf-muted); }
.lg-phone__lang b, .lg-phone__lang span { padding: 1px 6px; border-radius: 999px; }
.lg-phone__lang b { background: #fff; color: var(--nf-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.lg-phone__brand { margin: 4px auto 10px; padding-bottom: 4px; border-bottom: 1.5px solid #D5DEE1; font-size: 15px; font-weight: 700; color: #1B2A30; }
.lg-phone__title { margin: 0; font-size: 14px; font-weight: 600; color: #6B7A80; }
.lg-phone__sub { margin: 4px 0 10px; font-size: 9.5px; color: #8A9BA2; }
.lg-phone__tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #E1E8EA; border-radius: 10px; overflow: hidden; font-size: 9.5px; font-weight: 600; }
.lg-phone__tabs span { padding: 7px 4px; color: #6B7A80; }
.lg-phone__tabs span:first-child { background: var(--brand); color: #fff; }
.lg-phone__field { margin-top: 10px; padding: 8px 9px; border: 1px solid #D5DEE1; border-radius: 8px; text-align: left; font-size: 9.5px; color: #9AAAB0; }
.lg-phone__check { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; text-align: left; font-size: 8.5px; }
.lg-phone__check i { flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 8px no-repeat; }
.lg-phone__btn { margin-top: 10px; padding: 9px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lg-phone__foot { margin-top: auto; padding-top: 10px; }
.lg-phone__foot img { width: 66px; height: auto; display: inline-block; }
.lg-phone__code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 12px; }
.lg-phone__code span { padding: 8px 0; border: 1px solid #D5DEE1; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--nf-ink); }
.lg-phone__code span.is-empty { color: transparent; border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }
.lg-phone__ok { width: 54px; height: 54px; margin: 16px auto 12px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 26px no-repeat; box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 16%, transparent); }
.lg-phone__bar { height: 4px; margin: 14px 8px 0; border-radius: 4px; background: #E6ECEE; overflow: hidden; }
.lg-phone__bar i { display: block; width: 62%; height: 100%; background: var(--brand); }
.lg-phones--brands .lg-phone-wrap:first-child { transform: rotate(-4deg) translateY(14px); }
.lg-phones--brands .lg-phone-wrap:last-child { transform: rotate(4deg) translateY(14px); }
.lg-phone--lg { width: 262px; }
.lg-phone--petrol { --brand: #0F6E73; --photo: linear-gradient(135deg, #BFD7D4, #E9EFEA); }
.lg-phone--forest { --brand: #2C7A55; --photo: linear-gradient(135deg, #CFE2C9, #EEF3E4); }
.lg-phone--navy { --brand: #1F4E7A; --photo: linear-gradient(135deg, #C9D6E6, #EEF1F6); }
.lg-phone--wine { --brand: #9B2335; --photo: linear-gradient(135deg, #E7CDD1, #F5ECE6); }
.lg-phone-cap { margin: 18px 0 0 !important; text-align: center; font-size: 14px; font-weight: 600; color: var(--nf-ink); }
.lg-phone-cap small { display: block; font-weight: 400; color: var(--nf-muted); }
.lg-phone-wrap { display: flex !important; flex-direction: column; align-items: center; }
.lg-phone-wrap > * { margin: 0 !important; }
@media (max-width: 760px) { .lg-phone { width: 200px; } .lg-phones--brands .lg-phone-wrap { transform: none !important; } .lg-phones--brands .lg-phone-wrap:nth-child(n+3) { display: none !important; } }

/* Parcours en trois écrans */
.lg-journey { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: lgj; }
.lg-journey > * { margin: 0 !important; }
.lg-journey__step { display: flex !important; flex-direction: column; align-items: center; text-align: center; }
.lg-journey__step > * { margin: 0 !important; }
.lg-journey__step h3 { margin-top: 26px !important; font-size: 19px; }
.lg-journey__step h3::before { counter-increment: lgj; content: counter(lgj); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--lg-orange); color: #fff; font-size: 14px; vertical-align: 2px; }
.lg-journey__step p { margin-top: 8px !important; max-width: 34ch; color: var(--nf-muted); }
@media (max-width: 900px) { .lg-journey { grid-template-columns: 1fr; gap: 56px; } }

/* ---------- Schémas d'architecture ---------- */
.lg-arch { margin: 0; padding: clamp(18px, 3vw, 36px); border-radius: var(--nf-r-l); background: #fff; border: 1px solid var(--nf-line); box-shadow: var(--nf-shadow-soft); }
.lg-arch svg { display: block; width: 100%; height: auto; font-family: inherit; }
.lg-arch figcaption { margin-top: 16px; font-size: 14px; color: var(--nf-muted); text-align: center; }
.lg-arch .t-title { font-size: 15px; font-weight: 700; fill: var(--nf-ink); }
.lg-arch .t-sm { font-size: 12.5px; fill: var(--nf-muted); }
.lg-arch .t-lbl { font-size: 13px; font-weight: 600; fill: var(--nf-slate); }
.lg-arch .t-w { font-size: 13px; font-weight: 600; fill: #fff; }
.lg-arch .t-ws { font-size: 11.5px; fill: #F2B184; }
.lg-arch .t-zone { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; fill: var(--lg-orange-dark); }
.lg-arch .flow { stroke-dasharray: 6 7; animation: lg-dash 1.6s linear infinite; }
@keyframes lg-dash { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .lg-arch .flow { animation: none; } }
.lg-arch-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lg-arch-grid > * { margin: 0 !important; }
.lg-arch-card { min-width: 0; display: flex !important; flex-direction: column; gap: 16px; }
.lg-arch-card > * { margin: 0 !important; }
.lg-arch-card h3 { font-size: 22px; }
.lg-arch-card .wp-block-buttons { margin-top: auto !important; }
@media (max-width: 900px) { .lg-arch-grid { grid-template-columns: 1fr; } }
.lg-arch-wide { overflow-x: auto; }
.lg-arch-wide svg { min-width: 640px; }

/* ---------- Tableau comparatif ---------- */
.lg-compare { overflow-x: auto; border-radius: var(--nf-r-l); background: #fff; box-shadow: var(--nf-shadow-soft); }
.lg-compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.lg-compare th, .lg-compare td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--nf-line); }
.lg-compare thead th { padding-top: 22px; font-size: 18px; font-stretch: 105%; color: var(--nf-ink); border-bottom: 2px solid var(--nf-ink); }
.lg-compare thead th:nth-child(2) { border-bottom-color: var(--lg-orange); }
.lg-compare thead th small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--nf-muted); }
.lg-compare tbody th { width: 26%; font-weight: 600; color: var(--nf-ink); background: var(--nf-mist); }
.lg-compare td { color: var(--nf-slate); }
.lg-compare tr:last-child > * { border-bottom: 0; }
.lg-compare a { font-weight: 600; color: var(--lg-orange-dark); }

/* ---------- Méthodes d'identification ---------- */
.lg-auth { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lg-auth > * { margin: 0 !important; }
.lg-auth .nf-feature { padding: 26px 24px; border-radius: var(--nf-r-m); background: #fff; border: 1px solid var(--nf-line); }
@media (max-width: 900px) { .lg-auth { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lg-auth { grid-template-columns: 1fr; } }

/* ---------- Bloc « option » (machine virtuelle / centralisation) ---------- */
.lg-option { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lg-option > * { margin: 0 !important; }
@media (max-width: 900px) { .lg-option { grid-template-columns: 1fr; } }
.lg-chips { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 18px 0 0 !important; padding: 0; list-style: none; }
.lg-chips li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--nf-mist); border: 1px solid var(--nf-line); font-size: 14px; font-weight: 600; color: var(--nf-ink); }

/* ---------- Choix Appliance / Cloud (cartes visuelles) ---------- */
.lg-choose { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lg-choose > * { margin: 0 !important; }
.lg-choose__card { position: relative; display: flex !important; flex-direction: column; overflow: hidden; border-radius: var(--nf-r-l); background: #fff; box-shadow: var(--nf-shadow-soft); }
.lg-choose__card > * { margin: 0 !important; }
.lg-choose__visual { height: 220px; display: grid; place-items: center; background: radial-gradient(120% 120% at 80% 10%, #0B5A6E 0%, var(--nf-ink) 45%, var(--nf-night) 100%); overflow: hidden; }
.lg-choose__visual .lg-box-scene { --w: 280px; --h: 76px; --d: 200px; min-height: 220px; transform: scale(.92); }
.lg-choose__visual .lg-box-scene::after { bottom: 30px; }
.lg-choose__body { display: flex !important; flex-direction: column; flex: 1; gap: 12px; padding: clamp(24px, 3vw, 36px); }
.lg-choose__body > * { margin: 0 !important; }
.lg-choose__body .wp-block-list { margin-top: 6px !important; }
.lg-choose__body .lg-badge { align-self: flex-start; }
.lg-choose__body .wp-block-buttons { margin-top: auto !important; padding-top: 12px; }
@media (max-width: 860px) { .lg-choose { grid-template-columns: 1fr; } }

/* Nuage (visuel Cloud) */
.lg-cloudviz { width: 100%; max-width: 560px; margin-inline: auto; }
.lg-cloudviz svg { display: block; width: 100%; height: auto; overflow: visible; }
.lg-cloudviz .t-w { font-size: 14px; font-weight: 700; fill: #fff; }
.lg-cloudviz .t-ws { font-size: 11.5px; fill: #F2B184; }
.lg-cloudviz .t-site { font-size: 12px; font-weight: 600; fill: rgba(255, 255, 255, .85); }
.lg-cloudviz .flow { stroke-dasharray: 5 7; animation: lg-dash 1.8s linear infinite; }
.lg-choose__visual .lg-cloudviz { max-width: 270px; }

/* Panneau sombre (renvoi vers une autre formule) */
.lg-panel-dark { display: grid; place-items: center; min-height: 300px; padding: 24px; border-radius: var(--nf-r-l); background: radial-gradient(120% 120% at 80% 10%, #0B5A6E 0%, var(--nf-ink) 45%, var(--nf-night) 100%); }
.lg-box__front { gap: 20px; padding: 0 22px; }
