
/* Navigation en carte (carte-nav.mjs) */
.cx-nav { gap: 2px; }
.cx-btn { display: inline-flex; align-items: center; text-decoration: none; font: 500 .93rem/1 var(--texte); color: var(--gris); background: none; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 8px; transition: color .2s, background .2s; }
.cx-btn:hover, .cx-btn:focus-visible { color: var(--blanc); background: rgb(var(--voile) / .06); }
.cx-btn.ici { color: var(--blanc); box-shadow: inset 0 -2px 0 var(--clair); border-radius: 8px 8px 2px 2px; }
.cx-appel { margin-left: auto; margin-right: 10px; }
.cx-ouvrir { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; margin-right: 10px; padding: 10px 16px 10px 13px; border: 0; border-radius: 999px; cursor: pointer; font: 600 .9rem/1 var(--texte); color: var(--blanc); background: rgb(var(--voile) / .06); box-shadow: inset 0 0 0 1px rgb(var(--voile) / .12); transition: box-shadow .3s, background .3s; }
.cx-ouvrir svg { width: 18px; height: 18px; fill: none; stroke: var(--clair); stroke-width: 1.6; stroke-linejoin: round; transition: transform .6s var(--doux); }
.cx-ouvrir:hover { box-shadow: inset 0 0 0 1px var(--clair); }
.cx-ouvrir:hover svg, .cx-ouvrir[aria-expanded="true"] svg { transform: rotate(60deg); }

.cx { position: fixed; inset: 0; z-index: 48; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(60% 70% at 62% 48%, rgb(var(--a1) / .16), transparent 70%), rgb(var(--base)); animation: cx-fond .5s var(--doux); }
.cx[hidden] { display: none; }
@keyframes cx-fond { from { opacity: 0; } }
.cx-in { width: min(var(--large), 100% - 2 * var(--gouttiere)); margin: 0 auto; min-height: 100%; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 8px 48px; padding: 92px 0 24px; }
.cx-gauche { display: grid; align-content: center; gap: 22px; padding-bottom: 24px; }
.cx-gauche h2 { font: 600 clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem)/1.05 var(--titre); letter-spacing: -.04em; text-wrap: balance; }
.cx-chapo { color: var(--gris); font-size: 1.02rem; line-height: 1.5; max-width: 34ch; }
.cx-metiers { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-metiers button { font: 500 .88rem/1.2 var(--texte); color: var(--gris); background: rgb(var(--voile) / .04); border: 0; box-shadow: inset 0 0 0 1px rgb(var(--voile) / .12); padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: color .2s, background .25s, box-shadow .25s; }
.cx-metiers button:hover { color: var(--blanc); box-shadow: inset 0 0 0 1px rgb(var(--voile) / .3); }
.cx-metiers button[aria-checked="true"] { color: #fff; background: var(--indigo); box-shadow: none; }
.cx-legende { min-height: 7.5em; }
.cx-phrase { font: 500 1.12rem/1.45 var(--titre); letter-spacing: -.015em; color: var(--blanc); max-width: 34ch; animation: cx-mot .5s var(--doux); }
.cx-phrase a { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 600 .9rem/1.3 var(--texte); letter-spacing: 0; color: var(--clair); min-height: 44px; }
.cx-phrase a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
@keyframes cx-mot { from { transform: translateY(6px); } }

.cx-carte { position: relative; align-self: center; justify-self: center; width: min(100%, 980px, max(640px, calc((100svh - 280px) * 1000 / 800))); aspect-ratio: 1000 / 800; container-type: inline-size; }
.cx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cx-guide { fill: none; stroke: rgb(var(--voile) / .07); stroke-width: 1; stroke-dasharray: 2 7; }
.cx-contour { fill: rgb(var(--a1) / .025); stroke: rgb(var(--voile) / .16); stroke-width: 1.2; stroke-dasharray: 1; animation: cx-trace 1.1s var(--trace) both; }
.cx-rayon { fill: none; stroke: rgb(var(--voile) / .14); stroke-width: 1.4; stroke-dasharray: 1; animation: cx-trace .8s var(--trace) both; transition: stroke .4s, stroke-width .4s, opacity .4s; }
.cx-rayon:nth-of-type(2) { animation-delay: .06s; } .cx-rayon:nth-of-type(3) { animation-delay: .12s; } .cx-rayon:nth-of-type(4) { animation-delay: .18s; } .cx-rayon:nth-of-type(5) { animation-delay: .24s; } .cx-rayon:nth-of-type(6) { animation-delay: .3s; }
@keyframes cx-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cx-flux { fill: var(--clair); opacity: 0; transition: opacity .4s; }
.cx-centre-cercle { fill: rgb(var(--s1)); stroke: rgb(var(--a1) / .55); stroke-width: 1.4; }
.cx-halo { fill: rgb(var(--a1) / .12); stroke: rgb(var(--a1) / .35); stroke-width: 1; transform-box: fill-box; transform-origin: center; transform: scale(.4); opacity: 0; transition: transform .5s var(--doux), opacity .4s; }
.cx-point { fill: rgb(var(--ink)); transition: fill .3s; }
.cx-noeud { animation: cx-pop .6s var(--doux) both; animation-delay: calc(.35s + var(--i) * .06s); transform-box: fill-box; transform-origin: center; }
@keyframes cx-pop { from { transform: scale(0); } }
.cx-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15%; display: grid; place-items: center; text-align: center; pointer-events: none; }
.cx-centre-nom { font: 600 clamp(.8rem, 1.55cqi, 1.05rem)/1.2 var(--titre); letter-spacing: -.02em; color: var(--blanc); text-wrap: balance; animation: cx-mot .45s var(--doux); }

.cx-bloc { position: absolute; width: 25%; display: grid; gap: 6px; transition: opacity .4s; }
.cb-haut { transform: translate(-50%, calc(-100% - 22px)); text-align: center; justify-items: center; }
.cb-bas { transform: translate(-50%, 22px); text-align: center; justify-items: center; }
.cb-droite { --tx: 34px; }
.cb-gauche { --tx: calc(-100% - 34px); }
.cb-monte { transform: translate(var(--tx), calc(-100% + 12px)); }
.cb-descend { transform: translate(var(--tx), -12px); }
.cb-milieu { transform: translate(var(--tx), -50%); }
.cb-gauche { text-align: right; justify-items: end; }
.cx-sommet { font: 600 clamp(.95rem, 1.85cqi, 1.3rem)/1.15 var(--titre); letter-spacing: -.025em; color: var(--blanc); transition: color .25s; }
.cx-sommet:hover { color: var(--clair); }
.cx-bloc ul { display: grid; gap: 1px; }
.cx-bloc li a { display: inline-block; padding: 3px 0; font-size: clamp(.78rem, 1.45cqi, .93rem); line-height: 1.35; color: var(--gris); transition: color .25s, opacity .35s; }
.cx-bloc li a:hover { color: var(--blanc); }
.cx-bloc li.on a { color: var(--blanc); }
.cx-bloc li a { position: relative; }
.cx-bloc li.on a::before { content: ""; position: absolute; top: calc(3px + .675em - 3px); left: -15px; width: 6px; height: 6px; border-radius: 50%; background: var(--clair); box-shadow: 0 0 0 4px rgb(var(--a1) / .2); }
.cb-gauche li.on a::before { left: auto; right: -15px; }

/* Un métier choisi : ses offres s'allument, le reste se retire */
.cx.filtre .cx-bloc li[data-o]:not(.on) a { opacity: .32; }
.cx.filtre .cx-bloc.eteint .cx-sommet { color: rgb(var(--ink) / .4); }
.cx .cx-rayon.on, .cx .cx-rayon.vise { stroke: var(--clair); stroke-width: 2; }
.cx .cx-flux.on, .cx .cx-flux.vise { opacity: 1; }
.cx .cx-noeud.on .cx-halo, .cx .cx-noeud.vise .cx-halo { transform: scale(1); opacity: 1; }
.cx .cx-noeud.on .cx-point, .cx .cx-noeud.vise .cx-point { fill: var(--clair); }
.cx.filtre .cx-rayon:not(.on):not(.vise) { opacity: .45; }

.cx-bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; border-top: 1px solid rgb(var(--voile) / .1); }
.cx-ress { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: .92rem; }
.cx-ress span { color: var(--clair); font-weight: 600; margin-right: 4px; }
.cx-ress a { color: var(--gris); min-height: 40px; display: inline-flex; align-items: center; transition: color .2s; }
.cx-ress a:hover { color: var(--blanc); }
.cx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cx-apercu { display: grid; gap: 8px; max-width: 34ch; animation: cx-mot .35s var(--doux); }
.cx-apercu[hidden] { display: none; }
.cx-apercu b { font: 600 .82rem/1.3 var(--texte); color: var(--clair); }
.cx-apercu span { font: 500 1.12rem/1.45 var(--titre); letter-spacing: -.015em; color: var(--blanc); }
.cx-coord { display: flex; gap: 18px; font: 400 .9rem/1.4 var(--mono); color: var(--gris); }
.cx-coord a { min-height: 44px; display: inline-flex; align-items: center; }
.cx-actions .btn { padding: 14px 22px; font-size: .92rem; }
.cx-ouvert .cx-top { background: rgb(var(--base) / .82) !important; backdrop-filter: blur(14px); border-color: transparent !important; box-shadow: none !important; }
.cx { overflow-x: hidden; }
.cx-ouvert .reglages { display: none; }

@media (max-width: 1180px) { .cx-btn { padding-inline: 10px; } .cx-in { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 8px 28px; } }
@media (max-width: 1060px) {
  .cx-nav { display: none; } .top .btn-s { display: none; } .cx-ouvrir { display: none; } .burger { display: block; }
  .cx-in { grid-template-columns: 1fr; padding-top: 96px; gap: 20px; }
  .cx-gauche { padding-bottom: 0; }
  .cx-carte { width: 100%; }
}
/* Téléphone : la carte garde ses sommets, les offres passent dessous, en liste */
@media (max-width: 640px) {
  .cx-metiers { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); scrollbar-width: none; }
  .cx-metiers button { flex: none; }
  .cx-legende { min-height: 0; }
  .cx-carte { aspect-ratio: 1 / 1; overflow: visible; }
  .cx-svg { left: -4%; width: 108%; top: -4%; height: 108%; }
  .cx-bloc { width: auto; transform: none !important; position: static; }
  .cx-carte .cx-bloc ul { display: none; }
  .cx-bloc .cx-sommet { position: absolute; font-size: .8rem; max-width: 7em; transform: var(--t); left: var(--x); top: var(--y); text-align: center; }
  .cx-liste-mobile { display: grid !important; }
}
.cx-liste-mobile { display: none; gap: 18px; grid-column: 1 / -1; }
.cx-liste-mobile section { display: grid; gap: 4px; }
.cx-liste-mobile h3 { font: 600 1.05rem/1.2 var(--titre); letter-spacing: -.02em; }
.cx-liste-mobile h3 a { display: inline-flex; min-height: 40px; align-items: center; }
.cx-liste-mobile li a { display: flex; align-items: center; min-height: 44px; color: var(--gris); border-bottom: 1px solid rgb(var(--voile) / .06); }
.cx-liste-mobile li.on a { color: var(--blanc); }
.cx-liste-mobile li.on a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clair); margin-right: 10px; box-shadow: 0 0 0 4px rgb(var(--a1) / .2); }
.cx.filtre .cx-liste-mobile li[data-o]:not(.on) a { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .cx, .cx-contour, .cx-rayon, .cx-noeud, .cx-phrase, .cx-centre-nom { animation: none; } .cx-flux { display: none; } }

@media (max-width: 640px) {
.cx-bloc[data-s="logiciels"] .cx-sommet { --x: 50.0%; --y: 25.7%; --t: translate(-50%, -135%); }
.cx-bloc[data-s="reseaux"] .cx-sommet { --x: 67.2%; --y: 32.8%; --t: translate(12px, -50%); }
.cx-bloc[data-s="telephonie"] .cx-sommet { --x: 74.3%; --y: 50.0%; --t: translate(12px, -50%); }
.cx-bloc[data-s="infrastructure"] .cx-sommet { --x: 67.2%; --y: 67.2%; --t: translate(12px, -50%); }
.cx-bloc[data-s="cybersecurite"] .cx-sommet { --x: 50.0%; --y: 74.3%; --t: translate(-50%, 35%); }
.cx-bloc[data-s="securite-physique"] .cx-sommet { --x: 32.8%; --y: 67.2%; --t: translate(calc(-100% - 12px), -50%); }
.cx-bloc[data-s="poste"] .cx-sommet { --x: 25.7%; --y: 50.0%; --t: translate(calc(-100% - 12px), -50%); }
.cx-bloc[data-s="services"] .cx-sommet { --x: 32.8%; --y: 32.8%; --t: translate(calc(-100% - 12px), -50%); }
}
