/* Pages logiciels de montage (s'appuie sur portfolio.css) */
.lg-hero h1 { max-width: 20ch; }
.lg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 30px; }
.lg-facts > div { padding: 16px 18px; border-radius: 16px; background: var(--s2); }
.lg-facts dd a { color: var(--violet); }
.lg-inset { margin: 40px 0; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(109, 66, 245, .22), rgba(255, 178, 63, .08)); border: 1px solid var(--line); }
.lg-inset b { display: block; font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.lg-inset p { margin: 0 !important; color: #e4ddf1; } .lg-inset a { color: var(--head); font-weight: 700; }
.lg-reads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .lg-reads a { color: var(--violet); font-size: 15px; }
.lg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.lg-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .2s, transform .3s var(--ease); }
.lg-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .14; filter: blur(10px); transition: opacity .3s; }
.lg-card:hover { border-color: var(--c); transform: translateY(-3px); } .lg-card:hover::after { opacity: .28; }
.lg-card__logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin-bottom: 8px; }
.lg-card b { font-size: 21px; letter-spacing: -.02em; }
.lg-card__t { color: var(--muted); font-size: 15px; line-height: 1.5; }
.lg-card__meta { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--head); }
.pf-text table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 15.5px; }
.pf-text th, .pf-text td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pf-text th { color: var(--ink); font-weight: 700; }
@media (max-width: 1000px) { .lg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lg-grid { grid-template-columns: 1fr; } .pf-text table { font-size: 14px; } }

/* ================= Page mère : guide + carte ================= */
.lgh-hero { padding-top: 34px; max-width: 900px; }
.lgh-hero h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: .95; letter-spacing: -.045em; }
.lgh-lead { margin-top: 18px !important; font-size: 18px; line-height: 1.6; color: #e4ddf1; max-width: 64ch; }
.lgh-guide { margin-top: 44px; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, rgba(109, 66, 245, .16), rgba(27, 20, 41, .9)); border: 1px solid var(--line); }
.vp .lgh-guide h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; max-width: none; }
.lgh-q { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lgh-qg p { margin: 0 0 8px !important; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lgh-qg div { display: flex; flex-wrap: wrap; gap: 8px; }
.lgh-qg button { padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink); font: 600 14.5px/1 inherit; font-family: inherit; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.lgh-qg button:hover { border-color: var(--violet); }
.lgh-qg button[aria-pressed="true"] { background: var(--vs); border-color: var(--vs); transform: translateY(-1px); }
.lgh-result { margin-top: 16px !important; color: #e4ddf1; font-size: 15.5px; }
.lgh-result b { color: var(--head); }
.lgh-mapwrap { margin-top: 26px; }
.lgh-map { position: relative; height: 470px; border-radius: 24px; background:
	linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 25%,
	linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 25% 100%,
	radial-gradient(circle at 20% 20%, rgba(109, 66, 245, .22), transparent 55%), radial-gradient(circle at 85% 85%, rgba(79, 209, 139, .12), transparent 50%), #140f20;
	border: 1px solid var(--line); overflow: hidden; }
.lgh-ax { position: absolute; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.lgh-ax--y { left: 14px; top: 12px; } .lgh-ax--x { right: 16px; bottom: 12px; }
.lgh-dot { position: absolute; left: calc(6% + var(--x) * .86%); bottom: calc(8% + var(--y) * .78%); transform: translate(-50%, 50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; transition: opacity .35s, filter .35s, transform .35s var(--ease); animation: lgh-pop .7s var(--ease) both; animation-delay: calc(var(--x) * 6ms); }
.lgh-dot i { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; font-style: normal; font-weight: 800; font-size: 19px; color: #fff; background: color-mix(in srgb, var(--c) 30%, #1b1429); border: 1.5px solid var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 12%, transparent), 0 14px 30px -12px var(--c); transition: transform .3s var(--ease), box-shadow .3s; }
.lgh-dot span { font-size: 13px; font-weight: 700; white-space: nowrap; padding: 3px 9px; border-radius: 99px; background: rgba(14, 10, 23, .75); }
.lgh-dot:hover i { transform: scale(1.12) rotate(-4deg); box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 18%, transparent), 0 18px 36px -12px var(--c); }
.lgh-dot:hover { z-index: 3; }
.lgp--hub.is-filtered .lgh-dot:not(.on) { opacity: .18; filter: grayscale(1); }
.lgp--hub.is-filtered .lgh-dot.on i { animation: lgh-glow 1.6s ease-in-out infinite; }
.lgp--hub.is-filtered .lgh-cards .lg-card:not(.on) { opacity: .35; }
.lgp--hub.is-filtered .lgh-cards .lg-card.on { border-color: var(--c); }
@keyframes lgh-pop { from { opacity: 0; transform: translate(-50%, 50%) scale(.4); } }
@keyframes lgh-glow { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--c) 22%, transparent), 0 18px 36px -12px var(--c); } }
.lgh-note { margin-top: 10px !important; font-size: 13.5px; color: var(--muted); }
.lgh-cards { margin-top: 40px; }
.lgh-compare { margin-top: 80px; }
.lgh-table { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--s1); }
.lgh-table table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.lgh-table th, .lgh-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.lgh-table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lgh-table tbody th a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.lgh-table tbody th i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-style: normal; font-size: 12px; color: #fff; background: color-mix(in srgb, var(--c) 35%, #1b1429); border: 1px solid var(--c); }
.lgh-table tbody tr:hover { background: rgba(155, 123, 255, .06); }
.lgh-text { max-width: 760px; margin-top: 80px; font-size: 17.5px; line-height: 1.75; color: #e4ddf1; }
.lgh-text section + section { margin-top: 40px; } .lgh-text a { color: var(--violet); }
.vp .lgh-text h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; max-width: none; }
.vp .lgh-text p { margin: 0 0 14px; }

/* ================= Pages enfants : écran de démarrage ================= */
.lgs-splash { padding-top: 26px; }
.lgs-win { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 30%, #140f20), #120d1c 60%); box-shadow: 0 40px 80px -50px var(--c); }
.lgs-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(0, 0, 0, .25); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.lgs-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .lgs-bar i:nth-child(2) { background: #febc2e; } .lgs-bar i:nth-child(3) { background: #28c840; }
.lgs-bar span { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lgs-in { display: flex; align-items: center; gap: 28px; padding: 44px 40px 30px; }
.lgs-logo { flex: none; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 28px; font-weight: 800; font-size: 42px; letter-spacing: -.03em; color: #fff; background: color-mix(in srgb, var(--c) 32%, #1b1429); border: 2px solid var(--c); box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 10%, transparent), 0 24px 50px -18px var(--c); animation: lgs-in .8s var(--ease) both; }
.lgs-pub { margin: 0 0 8px !important; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--c); font-weight: 700; }
.lgs-in h1 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1; letter-spacing: -.04em; max-width: 22ch; }
.lgs-load { display: flex; align-items: center; gap: 14px; padding: 0 40px 30px; }
.lgs-load b { position: relative; flex: 1; max-width: 320px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lgs-load b::after { content: ""; position: absolute; inset: 0; background: var(--c); transform-origin: left; animation: lgs-load 2.2s var(--ease) both; }
.lgs-load span { font-size: 13px; color: var(--muted); animation: lgs-done 2.2s steps(1) both; }
@keyframes lgs-load { from { transform: scaleX(0); } }
@keyframes lgs-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
.lgs-lead { margin: 26px 0 0 !important; font-size: 18px; line-height: 1.6; color: #e4ddf1; max-width: 70ch; }
.lgs-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 30px 0 0; border-radius: 16px; border: 1px solid var(--line); background: var(--s1); overflow: hidden; }
.lgs-tools > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.lgs-tools > div:last-child { border-right: 0; }
.lgs-tools dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--c); font-weight: 700; }
.lgs-tools dd { margin: 5px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.lgs-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 44px; margin-top: 60px; align-items: start; }
.lgs-toc { position: sticky; top: 110px; padding-left: 16px; }
.lgs-toc p { margin: 0 0 10px !important; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lgs-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lgs-toc a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s; }
.lgs-toc a:hover, .lgs-toc a.on { color: var(--ink); }
.lgs-toc a.on { font-weight: 700; }
.lgs-prog { position: absolute; left: 0; top: 30px; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.lgs-prog::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); background: var(--c); border-radius: 2px; box-shadow: 0 0 10px var(--c); }
.lgs-text section { scroll-margin-top: 100px; }
.lgs-text h2 { position: relative; }
.lgs-procon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lgs-pc { position: relative; padding: 20px 20px 18px 58px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); }
.lgs-pc span { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 18px; }
.lgs-pc--plus span { background: rgba(79, 209, 139, .18); color: #4fd18b; } .lgs-pc--moins span { background: rgba(255, 178, 63, .16); color: #ffb23f; }
.lgs-pc p { margin: 0 !important; font-size: 15.5px; line-height: 1.6; }
.lgs-side { top: 110px; }
.lgs-all { margin-top: 18px !important; } .lgs-all a { color: var(--violet); font-weight: 700; text-decoration: none; }
@media (max-width: 1180px) { .lgs-body { grid-template-columns: 200px minmax(0, 1fr); } .lgs-side { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media (max-width: 900px) {
	.lgh-q { grid-template-columns: 1fr; }
	.lgh-map { height: 420px; }
	.lgh-dot i { width: 46px; height: 46px; font-size: 16px; border-radius: 14px; }
	.lgh-dot span { font-size: 11.5px; }
	.lgs-body { grid-template-columns: 1fr; gap: 30px; }
	.lgs-toc { position: static; }
	.lgs-in { flex-direction: column; align-items: flex-start; padding: 30px 22px 22px; gap: 18px; }
	.lgs-logo { width: 78px; height: 78px; font-size: 30px; border-radius: 20px; }
	.lgs-load { padding: 0 22px 22px; }
	.lgs-procon { grid-template-columns: 1fr; }
	.lgs-tools > div { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .lgh-dot span { display: none; } .lgh-map { height: 360px; } }
@media (prefers-reduced-motion: reduce) { .lgh-dot, .lgs-logo, .lgs-load b::after, .lgp--hub.is-filtered .lgh-dot.on i { animation: none !important; } }

/* affiliation */
.aff-box .aff-btn { margin-top: 12px; width: 100%; justify-content: center; }
.aff-note { margin: 10px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: var(--muted) !important; }
.aff-alt { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted) !important; }
/* comparatif : une fiche par logiciel sur mobile */
@media (max-width: 640px) {
	.lgh-table { overflow: visible; border: 0; background: none; }
	.lgh-table table { min-width: 0; }
	.lgh-table table, .lgh-table tbody, .lgh-table tr, .lgh-table th, .lgh-table td { display: block; width: 100%; }
	.lgh-table thead { display: none; }
	.lgh-table tr { border: 1px solid var(--line); border-radius: 16px; background: var(--s1); padding: 12px 14px; margin: 0 0 12px; }
	.lgh-table th, .lgh-table td { border: 0; padding: 4px 0; }
	.lgh-table td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 2px; }
}
