/* ---------- Menu : listes déroulantes, texte seul ---------- */
.nd { position: relative; }
.nd-btn.is-cur { color: var(--fg); }
.nd-panel { position: absolute; top: calc(100% + 14px); left: -18px; min-width: 280px; width: 340px; padding: 8px; display: grid; gap: 2px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s, transform 0.22s var(--ease), visibility 0.18s; z-index: 60; }
.nd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nd.open .nd-panel { opacity: 1; visibility: visible; transform: none; }
.nd.open .nd-btn svg { transform: rotate(180deg); }
.nav .nd-panel a { display: grid; gap: 2px; padding: 11px 14px; border-radius: 12px; color: var(--fg); transition: background-color 0.15s; white-space: normal; }
.nav .nd-panel a:hover, .nav .nd-panel a:focus-visible, .nav .nd-panel a[aria-current="page"] { background: var(--card); }
.nd-panel b { font-weight: 450; font-size: 15px; letter-spacing: -0.01em; }
.nd-panel span { font-size: 13.5px; color: var(--fg-3); }

/* Menu mobile, regroupé */
.mobile-menu { overflow-y: auto; }
.mobile-menu nav a { font-size: 21px; padding: 8px 0; }
.mobile-menu nav a.mm-top { font-size: 24px; padding: 12px 0; }
.mm-h { display: block; margin-top: 18px; padding-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-4); }
.mobile-menu nav .mm-h:first-child { margin-top: 0; }

/* Pied de page : la définition du cabinet */
.foot-def { max-width: 26em; font-size: 14px; line-height: 1.5; color: var(--fg-3); margin: 4px 0 2px; }
@media (min-width: 960px) { .foot-cols { grid-template-columns: repeat(4, auto) !important; } }

/* Lien fléché */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg); }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Cartes de solution : sous-titre */
.offer .osub { margin-top: -14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--fg-4); }
.offer .price { font-size: 26px; letter-spacing: -0.03em; font-weight: 450; }

/* ---------- Extrait d'audit ---------- */
.au { background: var(--bg); color: var(--fg); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); overflow: hidden; font-size: 13.5px; text-align: left; }
.au-sec { padding: 14px 16px 10px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.au-h { font-family: var(--mono); font-size: 10.5px; color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.06em; }
.au-lvls { display: grid; gap: 7px; }
.au-lvl { display: grid; grid-template-columns: 92px 1fr 30px; gap: 12px; align-items: center; }
.au-lvl > i { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.au-lvl > i i { height: 6px; border-radius: 2px; background: var(--line); }
.au-lvl > i i.on { background: var(--fg); }
.au-lvl b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--fg-3); text-align: right; }
.au-row { display: grid; grid-template-columns: 64px 84px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.au-row:first-of-type { border-top: 0; }
.au-row .dom { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.au-row .txt { line-height: 1.35; }
.sev { justify-self: start; font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.sev.crit { color: #c2410c; background: rgba(234, 88, 12, 0.12); }
.sev.high { color: #a16207; background: rgba(202, 138, 4, 0.13); }
.sev.mid { color: var(--fg-3); background: var(--card); }
:root[data-theme="dark"] .sev.crit { color: #fb923c; background: rgba(251, 146, 60, 0.14); }
:root[data-theme="dark"] .sev.high { color: #facc15; background: rgba(250, 204, 21, 0.12); }
.au-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; background: var(--card); }
.au-foot span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-4); }
.au-foot b { font-weight: 500; }
.au-foot em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.au .au-lvl, .au .au-row, .au .au-foot { opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i, 10) * 90ms); }
.au.on .au-lvl, .au.on .au-row, .au.on .au-foot { opacity: 1; transform: none; }
.au-lvl > i i.on { transform-origin: left; }
.au.on .au-lvl > i i.on { animation: au-fill 0.6s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes au-fill { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 520px) { .au-row { grid-template-columns: 64px 1fr; } .au-row .dom { display: none; } .au-lvl { grid-template-columns: 80px 1fr 28px; } }
@media (prefers-reduced-motion: reduce) { .au .au-lvl, .au .au-row, .au .au-foot { opacity: 1; transform: none; transition: none; } .au.on .au-lvl > i i.on { animation: none; } }

/* ---------- Bande de logos (accueil) ---------- */
.tools--strip { padding: clamp(48px, 6vw, 80px) 0; }
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.tl-strip { gap: 8px; }

/* ---------- Nos outils : la pile ---------- */
.stk { display: grid; gap: 12px; }
@media (min-width: 960px) { .stk { grid-template-columns: 1fr 260px; } }
.stk-main { display: grid; gap: 8px; }
.stk-l, .stk-side { border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; background: var(--bg); }
@media (min-width: 760px) { .stk-l { grid-template-columns: 230px 1fr; align-items: center; } }
.stk-l:last-child { background: var(--card); border-style: dashed; }
.stk-h { display: grid; gap: 3px; }
.stk-h b { font-weight: 450; font-size: 18px; letter-spacing: -0.02em; }
.stk-h span { font-size: 13.5px; color: var(--fg-3); }
.stk-side { align-content: start; background: var(--card); }
.stk-side .tl { background: var(--bg); }
.tl--word { padding: 0 16px; color: var(--fg-3); background: transparent; border: 1px solid var(--line); }
.stk-l:last-child .tl--word { background: var(--bg); }

/* ---------- Comprendre ---------- */
.disc-in { display: grid; gap: 32px; }
@media (min-width: 960px) { .disc-in { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.disc-h { display: grid; gap: 12px; align-content: start; }
.disc-h .num, .exp-c .num { font-family: var(--mono); font-size: 12px; color: var(--fg-4); }
.disc-h p { font-size: 18px; color: var(--fg-3); }
.disc-b { display: grid; gap: 26px; }
.disc-b p { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--fg-2); max-width: 34em; }
.chain { display: grid; gap: 10px; max-width: 920px; margin: 0 auto; }
.chain-row { display: grid; gap: 10px; }
@media (min-width: 760px) { .chain-row { grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: stretch; } }
.chain-row > i { display: none; }
@media (min-width: 760px) { .chain-row > i { display: block; align-self: center; height: 1px; background: var(--line-2); position: relative; }
  .chain-row > i::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left-color: var(--line-2); border-right: 0; } }
.chain-b, .chain-base { display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: var(--card); }
.chain-b span, .chain-base span { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.chain-b b, .chain-base b { font-weight: 450; font-size: 18px; letter-spacing: -0.02em; }
.chain-b small, .chain-base small { font-size: 13.5px; color: var(--fg-3); }
.chain-b--end { background: var(--fg); color: var(--bg); }
.chain-b--end small { color: inherit; opacity: 0.65; }
.chain-base { border: 1px dashed var(--line-2); background: transparent; text-align: center; }

/* ---------- Nos expertises ---------- */
.exp { display: grid; gap: 14px; }
@media (min-width: 700px) { .exp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .exp { grid-template-columns: repeat(4, 1fr); } }
.exp-c { background: var(--card); border-radius: var(--r, 22px); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.exp-c p { color: var(--fg-3); font-size: 15px; }
.exp-c ul { list-style: none; padding: 12px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 7px; font-size: 14.5px; color: var(--fg-2); }

/* ---------- Atlas ---------- */
.atl-f { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.atl-f button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; color: var(--fg-2); transition: background-color 0.15s, color 0.15s; }
.atl-f button:hover { color: var(--fg); }
.atl-f button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.atl { display: grid; gap: 14px; }
@media (min-width: 700px) { .atl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .atl { grid-template-columns: repeat(3, 1fr); } }
.atl-c { background: var(--card); border-radius: var(--r, 22px); padding: 24px; display: grid; gap: 10px; align-content: start; min-height: 210px; }
.atl-c[hidden] { display: none; }
.atl-m { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-bottom: 18px; }
.atl-m em { font-style: normal; color: var(--fg-4); }
.atl-c p { color: var(--fg-3); font-size: 15px; }
.atl-th { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .atl-th { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 14px; } }
.atl-t { text-align: left; display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .atl-t { border: 0; border-top: 1px solid var(--line-2); padding: 20px 0 0; } }
.atl-t b { font-weight: 450; font-size: 20px; letter-spacing: -0.02em; }
.atl-t span { color: var(--fg-3); font-size: 15px; }
.atl-t:hover b { text-decoration: underline; text-underline-offset: 4px; }
.offer:has(.price) .h3 { min-height: 0; }

/* ---------- Schémas d'interface des pages solution (remplacent les vidéos) ---------- */
.wv-fig { margin: 0; }
.wv { display: grid; gap: 14px; padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, var(--bg) 0%, var(--card) 70%); }
@media (min-width: 900px) { .wv { grid-template-columns: 1fr 56px 1.05fr 56px 1fr; align-items: center; gap: 0; } }
.wv-col { display: grid; gap: 8px; align-content: center; }
.wv-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-4); margin-bottom: 4px; }
.wv-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; color: var(--fg-2); }
.wv-row b { margin-left: auto; font-weight: 500; color: var(--fg); }
.wv-row b.sm { font-weight: 400; font-size: 13px; color: var(--fg-3); }
.wv-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.wv-plat { display: grid; gap: 6px; padding: 10px; border-radius: 20px; background: var(--fg); color: var(--bg); box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.45); }
.wv-lay { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 13px 14px; border-radius: 13px; background: color-mix(in srgb, var(--bg) 8%, transparent); font-size: 14.5px; }
.wv-lay b { font-weight: 500; }
.wv-lay .ok { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bg) 14%, transparent); animation: wv-ok 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.6s); }
.wv-lay .ok svg { width: 12px; height: 12px; }
.wv-card { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.wv-card .sm { font-size: 13px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.wv-card .big { font-size: 34px; font-weight: 450; letter-spacing: -0.03em; line-height: 1.05; }
.wv-card .q { font-size: 15.5px; line-height: 1.4; }
.wv-card .a { font-size: 17px; line-height: 1.4; }
.wv-card .chip { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--fg-3); }
.wv-card .ok-t svg, .wv-log svg { width: 13px; height: 13px; color: #1f8f5f; }
.wv-log { gap: 0; justify-items: stretch; padding: 8px 16px 14px; }
.wv-log > div { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wv-log time { font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
.wv-log em { font-style: normal; font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; }
.wv-log em.ok { color: #1f8f5f; background: rgba(31, 143, 95, 0.1); }
.wv-log em.no { color: var(--accent); background: var(--accent-soft); }
.wv-log .sm { margin-top: 10px; }
.wv-link { display: none; }
@media (min-width: 900px) {
  .wv-link { display: grid; gap: 22px; padding: 0 6px; }
  .wv-link i { display: block; height: 1.5px; background-image: linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 14px); background-size: 14px 1.5px; animation: wv-run 1.2s linear infinite; opacity: 0.7; }
  .wv-link i:nth-child(2) { animation-delay: -0.4s; } .wv-link i:nth-child(3) { animation-delay: -0.8s; }
}
@keyframes wv-run { to { background-position: 14px 0; } }
@media (max-width: 899px) { .wv-col + .wv-col::before { content: "↓"; justify-self: center; color: var(--fg-4); margin: 0 0 4px; } }
.fig-cap { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); }
@media (prefers-reduced-motion: reduce) { .wv-link i, .wv-lay .ok { animation: none; } }
@keyframes wv-ok { 0%, 70%, 100% { background: color-mix(in srgb, var(--bg) 14%, transparent); } 80% { background: #22a06b; } }
.pf-sec .container::after { content: "Fig. 1 — La chaîne de la donnée, de la source à l’usage. Exemple, chiffres fictifs."; display: block; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); }

/* Fiches solution : la partie technique */
.otech { margin-top: 2px; padding: 14px 0 4px; border-top: 1px dashed var(--line-2); }
.otech > span { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-4); }
.otech ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.otech li { font-family: var(--mono); font-size: 12px; line-height: 1.45; color: var(--fg-2); padding-left: 14px; position: relative; }
.otech li::before { content: "—"; position: absolute; left: 0; color: var(--fg-4); }

/* Accueil : nos outils de travail, par domaine */
.kit .strip-head { margin-bottom: 18px; }
.kit-cols { display: grid; gap: 28px; }
@media (min-width: 900px) { .kit-cols { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.kit-h { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--fg); font-size: 15px; font-weight: 500; }
.kit-col ul { list-style: none; margin: 0; padding: 0; }
.kit-col li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kit-ic { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--card); }
.kit-ic svg { width: 16px; height: 16px; }
.kit-ic .tl-ini { font-size: 12px; }
.kit-col b { font-weight: 450; font-size: 15px; }
.kit-col em { font-style: normal; font-size: 13px; color: var(--fg-3); }

/* Accueil : planche des outils (fiches de spécimen sur papier millimétré) */
.plate-kit { margin: 0; padding: clamp(14px, 2.4vw, 28px); border: 1px solid var(--line-2); border-radius: 8px;
  background-color: var(--bg); background-image: linear-gradient(var(--paper-grid, rgba(0,0,0,.05)) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid, rgba(0,0,0,.05)) 1px, transparent 1px); background-size: 22px 22px; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.spec { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; min-height: 148px; padding: 16px 16px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.2s; transition-delay: calc(var(--k) * 45ms); }
.plate-kit.on .spec { opacity: 1; transform: none; }
.spec:hover { border-color: var(--fg-3); }
.spec-ic { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.spec-ic svg { width: 15px; height: 15px; }
.spec b { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.spec em { font-style: normal; font-size: 13px; line-height: 1.4; color: var(--fg-3); }
.spec-dom { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); }
.spec::after { content: ""; position: absolute; top: 10px; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.spec:hover::after { background: var(--accent); }
.plate-kit figcaption { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); }
@media (prefers-reduced-motion: reduce) { .spec { opacity: 1; transform: none; transition: none; } }

/* Outils : fiches vivantes (filtre, retournement, voyant en service) */
.kit-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.kit-f button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14px; color: var(--fg-2); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.kit-f button:hover { color: var(--fg); border-color: var(--fg-3); }
.kit-f button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.kit-hint { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--fg-4); }
@media (max-width: 700px) { .kit-hint { display: none; } }
.spec { padding: 0; perspective: 900px; background: transparent; border: 0; cursor: pointer; outline: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.4s; }
.spec-f, .spec-b { grid-area: 1 / 1; display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; padding: 16px 16px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.6s var(--ease), border-color 0.2s; }
.spec { display: grid; }
.spec-b { transform: rotateY(180deg); background: var(--fg); color: var(--bg); border-color: var(--fg); align-content: start; }
.spec-b p { margin-top: 10px; font-family: var(--serif); font-size: 16.5px; line-height: 1.35; }
.spec-b .spec-dom { margin: 0; padding: 0; border: 0; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.spec-n { align-self: end; font-family: var(--mono); font-size: 10.5px; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.spec:hover .spec-f, .spec:focus-visible .spec-f, .spec.flip .spec-f { transform: rotateY(-180deg); }
.spec:hover .spec-b, .spec:focus-visible .spec-b, .spec.flip .spec-b { transform: rotateY(0deg); }
.spec.dim { filter: grayscale(1); opacity: 0.28 !important; }
.spec::after { display: none; }
.spec-f::after { content: ""; position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: #2f9e6a; box-shadow: 0 0 0 0 rgba(47, 158, 106, 0.45);
  animation: spec-live 2.6s ease-out infinite; animation-delay: calc(var(--k) * 0.17s); }
.spec-f { position: relative; }
@keyframes spec-live { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 106, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(47, 158, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 106, 0); } }
.spec:hover .spec-f, .spec:hover { border-color: var(--line-2); }
@media (prefers-reduced-motion: reduce) { .spec-f::after { animation: none; } .spec-f, .spec-b { transition: none; } }

/* Outils : planches de spécimen (pointillé de gravure, repères en croix, légende) */
.spec-f, .spec-b { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; }
.xh { position: absolute; width: 9px; height: 9px; pointer-events: none; }
.xh::before, .xh::after { content: ""; position: absolute; background: var(--fg-4); }
.xh::before { left: 4px; top: 0; width: 1px; height: 9px; } .xh::after { top: 4px; left: 0; height: 1px; width: 9px; }
.xh-tl { top: 6px; left: 6px; } .xh-tr { top: 6px; right: 6px; } .xh-bl { bottom: 6px; left: 6px; } .xh-br { bottom: 6px; right: 6px; }
.spec-f::after { top: 14px; right: 18px; }
/* médaillon : un disque au pointillé, comme les figures de la frise */
.spec-ic { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; margin-bottom: 12px; }
.spec-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fg) 60%, transparent) 0.75px, transparent 1.15px) 0 0 / 4px 4px;
  -webkit-mask-image: radial-gradient(circle, transparent 38%, #000 42%, #000 58%, transparent 74%); mask-image: radial-gradient(circle, transparent 38%, #000 42%, #000 58%, transparent 74%); }
.spec-ic svg { position: relative; width: 17px; height: 17px; }
/* verso : planche à l'encre, gravure au pointillé qui s'estompe, légende en serif */
.spec-b { transform: rotateY(180deg); background: var(--fg); color: var(--bg); border-color: var(--fg); overflow: hidden; align-content: start; }
.spec-b::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--bg) 30%, transparent) 0.7px, transparent 1.1px) 0 0 / 5px 5px;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 100%, #000 0%, transparent 60%); mask-image: radial-gradient(120% 90% at 100% 100%, #000 0%, transparent 60%); }
.spec-b .spec-ic { width: 26px; height: 26px; margin-bottom: 8px; } .spec-b .spec-ic::before { display: none; }
.spec-b .spec-ic svg { width: 14px; height: 14px; padding: 0; background: none; color: var(--bg); }
.spec-b p { position: relative; margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.35; color: var(--bg); }
.spec-t { position: relative; align-self: end; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.spec-b .xh::before, .spec-b .xh::after { background: color-mix(in srgb, var(--bg) 45%, transparent); }

/* Outils : plus de retournement. L'usage se révèle par un balayage d'encre depuis le bas. */
.spec { perspective: none; }
.spec-f, .spec-b { backface-visibility: visible; -webkit-backface-visibility: visible; }
.spec:hover .spec-f, .spec:focus-visible .spec-f, .spec.flip .spec-f { transform: none; }
.spec-b { transform: none !important; z-index: 1; clip-path: inset(100% 0 0 0); transition: clip-path 0.55s var(--ease); }
.spec-b > * { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.spec:hover .spec-b, .spec:focus-visible .spec-b, .spec.flip .spec-b { clip-path: inset(0 0 0 0); }
.spec-b::before, .spec-b .xh { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .spec-b { transition: none; } .spec-b > * { transition: none; } }

/* Outils : morphose au pointillé, comme la frise (remplace le balayage) */
.spec { position: relative; }
.spec-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.spec-b { clip-path: none !important; background: transparent !important; color: var(--fg) !important; border-color: var(--line) !important; opacity: 0; transition: opacity 0.3s ease !important; z-index: 3; }
.spec-b::before { display: none; }
.spec-b p { color: var(--fg) !important; }
.spec-b .spec-ic svg { color: var(--fg) !important; }
.spec-t { color: var(--fg-3) !important; }
.spec-b .xh::before, .spec-b .xh::after { background: var(--fg-4) !important; }
.spec-b > * { opacity: 0; transform: translateY(4px); transition: opacity 0.4s ease, transform 0.5s var(--ease) !important; }
.spec-f > *:not(.xh) { transition: opacity 0.25s ease; }
.spec.on .spec-f > *:not(.xh) { opacity: 0; }
.spec.on .spec-f::after { opacity: 0; }
.spec.on .spec-b { opacity: 1; }
.spec.on.ready .spec-b > * { opacity: 1; transform: none; }
.spec:hover .spec-b, .spec:focus-visible .spec-b, .spec.flip .spec-b { clip-path: none; }
.spec:not(.on) .spec-b > * { transition-delay: 0s !important; }
.spec { overflow: hidden; border-radius: 2px; }
.spec:hover .spec-b > *, .spec:focus-visible .spec-b > * { opacity: 0; }
.spec.on.ready .spec-b > * { opacity: 1 !important; transform: none !important; }

/* Morphose lettre à lettre : l'opacité est pilotée par le script */
.spec-f > *:not(.xh) { opacity: var(--fo, 1) !important; transition: none !important; }
.spec-f::after { opacity: var(--fo, 1) !important; }
.spec-b { opacity: 1 !important; transition: none !important; }
.spec-b > * { opacity: var(--bo, 0) !important; transform: none !important; transition: none !important; }
.spec-b .xh { opacity: 1 !important; }
.spec-b { pointer-events: none; }

/* Outils : fiches statiques, l'usage visible directement (plus d'animation au survol) */
.spec { cursor: default; overflow: visible; }
.spec-f { grid-template-rows: auto auto auto 1fr auto; transform: none !important; }
.spec-f > *:not(.xh) { opacity: 1 !important; }
.spec-f::after { opacity: 1 !important; }
.spec-u { margin: 10px 0 0; font-family: var(--serif); font-size: 15px; line-height: 1.4; color: var(--fg-2); }
.spec:hover .spec-f { border-color: var(--fg-4); }
.specs { align-items: stretch; }

/* Outils : trois frises, une par domaine, dans l'esprit de la frise animée */
.kit-rows { display: grid; gap: clamp(28px, 4vw, 44px); }
.kr { display: grid; gap: 14px; }
@media (min-width: 900px) { .kr { grid-template-columns: 150px 1fr; gap: 24px; align-items: start; } }
.kr-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding-top: 13px; }
.kr-line { position: relative; list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.kr-line::-webkit-scrollbar { display: none; }
.kr-line::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-2); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.kit-rows.on .kr-line::before { transform: none; }
.kr-line li { position: relative; flex: 1 0 128px; display: grid; justify-items: start; gap: 2px; padding-right: 14px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(0.25s + var(--k) * 90ms); }
.kit-rows.on .kr-line li { opacity: 1; transform: none; }
.kr-ic { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; background: var(--bg); }
.kr-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fg) 60%, transparent) 0.75px, transparent 1.15px) 0 0 / 4px 4px;
  -webkit-mask-image: radial-gradient(circle, transparent 38%, #000 42%, #000 58%, transparent 74%); mask-image: radial-gradient(circle, transparent 38%, #000 42%, #000 58%, transparent 74%); }
.kr-ic svg { position: relative; width: 17px; height: 17px; }
.kr-line b { font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em; }
.kr-line em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .kr-line::before, .kr-line li { transition: none; transform: none; opacity: 1; } }
.kr-line li { align-content: start; }
@media (max-width: 899px) { .kr-line { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 30px; } }

/* Pourquoi les entreprises nous appellent : chiffres sur une ligne */
.points .point b { font-size: clamp(26px, 2.5vw, 36px); white-space: nowrap; }
.points .point p { max-width: 26em; }
@media (min-width: 900px) { .points .point { padding-right: 20px; } }
@media (max-width: 420px) { .points .point b { white-space: normal; } }

/* ---------- Page Data : la chaîne complète, de la source à la BI ---------- */
.dp-fig { margin: 0; }
.dp-pipe { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.dp-line { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 960px) { .dp-line { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; } }
.dp-line::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-2); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); display: none; }
@media (min-width: 960px) { .dp-line::before { display: block; } }
.dp-pipe.on .dp-line::before { transform: none; }
.dp-line::after { content: ""; position: absolute; top: 19px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; display: none; }
@media (min-width: 960px) { .dp-line::after { display: block; } .dp-pipe.on .dp-line::after { animation: dp-run 4.5s linear 1.4s infinite; } }
@keyframes dp-run { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.dp-line li { position: relative; display: grid; align-content: start; gap: 4px; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: calc(0.3s + var(--k) * 120ms); }
.dp-pipe.on .dp-line li { opacity: 1; transform: none; }
.dp-ic { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; background: var(--bg); }
.dp-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fg) 60%, transparent) 0.75px, transparent 1.15px) 0 0 / 4px 4px;
  -webkit-mask-image: radial-gradient(circle, transparent 38%, #000 42%, #000 58%, transparent 74%); mask-image: radial-gradient(circle, transparent 38%, #000 42%, #000 58%, transparent 74%); }
.dp-ic svg { position: relative; width: 18px; height: 18px; }
.dp-line b { font-weight: 500; font-size: 15.5px; letter-spacing: -0.01em; }
.dp-line p { font-size: 13.5px; line-height: 1.45; color: var(--fg-2); }
.dp-line em { margin-top: 4px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--fg-4); }
.dp-trans { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 13.5px; color: var(--fg-2); }
.dp-trans span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.dp-trans i { font-style: normal; display: inline-flex; align-items: center; gap: 8px; }
.dp-trans i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-4); }
.dp-grid { display: grid; gap: 34px 28px; }
@media (min-width: 700px) { .dp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .dp-grid { grid-template-columns: repeat(3, 1fr); } }
.dp-c { padding-top: 18px; border-top: 1px solid var(--fg); display: grid; gap: 8px; align-content: start; }
.dp-c > p { color: var(--fg-3); font-size: 15px; margin-bottom: 6px; }
.dp-c .checks { gap: 6px; }
.dp-c .checks li { font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .dp-line::before, .dp-line li { transition: none; transform: none; opacity: 1; } .dp-line::after { display: none; } }
@media (max-width: 959px) {
  .dp-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .dp-line p { font-size: 13px; }
}

/* Page Data : la gravure plus discrète, alignée sur le texte */
#approche .split { align-items: center; }
#approche .plate-img { max-width: 340px; aspect-ratio: 4 / 4.6; }
#approche .plate figcaption { max-width: 340px; }
@media (min-width: 960px) { #approche .split { grid-template-columns: 1.15fr 0.85fr; } }

/* Page Data : frise des outils un peu plus grande */
.tools .kr-line::before { top: 28px; }
.tools .kr-ic { width: 56px; height: 56px; margin-bottom: 12px; }
.tools .kr-ic svg { width: 23px; height: 23px; }
.tools .kr-line b { font-size: 15.5px; }
.tools .kr-line em { font-size: 11px; }
.tools .kr-h { padding-top: 20px; }

/* ---------- Nos outils : carte de l'architecture ---------- */
.om-line { }
@media (min-width: 960px) { .om-line { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; } }
.om-line li { gap: 3px; }
.om-dot { position: relative; z-index: 1; width: 13px; height: 13px; margin: 16px 0 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg); }
.om-line::before { top: 22px; }
.om-line::after { top: 19.5px; }
.om-tools { display: grid; gap: 6px; margin-top: 12px; }
.om-t { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg); }
.om-t i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); }
.om-t i svg { width: 13px; height: 13px; }
.om-gov { gap: 10px 22px; }
.om-gov .om-t { font-size: 13.5px; }
.om-gov .om-t::before { display: none; }
.om .dp-trans i::before { display: none; }
.dp-trans .om-t { font-family: var(--font); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--fg); }
@media (min-width: 960px) { .om-line p { min-height: 2.9em; } }
.dp-c .kr-h { display: block; margin-bottom: -2px; }

/* Frises : fond de planche, comme l'animation de l'accueil */
.kit-fig { margin: 0; }
.kit-plate { position: relative; padding: clamp(26px, 3.4vw, 44px) clamp(18px, 3vw, 40px); border-radius: 10px; background: #f4f3ef; }
:root[data-theme="dark"] .kit-plate { background: #161513; }
.kit-plate .kr-ic, .kit-plate .dp-ic { background: #f4f3ef; }
:root[data-theme="dark"] .kit-plate .kr-ic, :root[data-theme="dark"] .kit-plate .dp-ic { background: #161513; }
.kit-plate .xh { position: absolute; }
.kit-plate .xh-tl { top: 12px; left: 12px; } .kit-plate .xh-tr { top: 12px; right: 12px; }

/* Nouveau logo : moins de marge interne, hauteur ajustée */
.brand img { height: 26px; }
@media (max-width: 700px) { .brand img { height: 23px; } }
.foot-brand img { height: 28px; width: auto; }
