/* Maria — www.maria.swiss · feuille de style (SwissKH Sàrl) */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --navy: #0B2240; --navy-deep: #07101C; --steel: #1F4E73; --steel-dark: #123A5A;
  --accent: #7FB0CF; --accent-2: #9CC4DD;
  --bg: #E8EDF2; --bg-2: #DAE2EA; --surface: #FFFFFF; --surface-2: #F6F8FA;
  --line: #BFCBD7; --line-2: #CFD9E3; --line-3: #E6ECF1;
  --ink: #0B2240; --text-2: #3A4A5E; --text-3: #24344A;
  --on-dark: #E9F0F6; --on-dark-2: #C9D5E2; --on-dark-3: #A9BACD; --dark-line: #2A4468; --dark-line-2: #1E3553;
  --drop: #1E8BE6; --ok-bg: #E3EEDF; --ok: #2F5A27; --warn-bg: #FCEFD8; --warn: #7A4B0C;
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: 80px; --maxw: 1280px; --sy: 120px; --head-h: 88px;
}
@media (max-width: 1100px) { :root { --gutter: 40px; --sy: 96px; --head-h: 76px; } }
@media (max-width: 760px) { :root { --gutter: 16px; --sy: 64px; --head-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-dark); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--drop); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--sy); }

/* --- Typographie commune --- */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.eyebrow--dark { color: var(--accent); }
.h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.h2--sm { font-size: clamp(32px, 3.7vw, 52px); }
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.lead--dark { color: var(--on-dark-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 56px; }
.sec-head > div { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.sec-head > .lead { max-width: 440px; }
@media (max-width: 1100px) { .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; } .sec-head > .lead { max-width: 640px; } }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--steel-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-2); color: var(--navy); }
.btn-ghost-dark { border-color: #3E5A7E; color: var(--on-dark); }
.btn-ghost-dark:hover { border-color: var(--accent); color: #fff; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--steel); }
.btn-outline:hover { border-color: var(--steel); color: var(--steel-dark); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { flex-shrink: 0; }

/* --- En-tête --- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-head.is-scrolled { box-shadow: 0 6px 24px rgba(11, 34, 64, .10); }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: clamp(20px, 2.2vw, 32px); }
.brand { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.brand img:first-child { height: 44px; width: auto; }
.brand img:last-child { height: 36px; width: auto; }
.brand-sep { width: 1px; height: 40px; background: var(--line); }
.head-nav { flex-grow: 1; display: flex; align-items: center; gap: clamp(18px, 1.95vw, 28px); font-size: 15px; font-weight: 500; }
.head-nav a:not(.btn) { color: #1D2B3D; padding: 8px 0; }
.head-nav a:not(.btn):hover { color: var(--steel); }
.head-nav .nav-spacer { flex-grow: 1; }
.head-nav > a, .head-nav > .lang { flex-shrink: 0; white-space: nowrap; }
.nav-login { display: inline-flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
@media (max-width: 1100px) {
  .head-row { gap: 16px; }
  .brand { gap: 12px; }
  .brand img:first-child { height: 34px; }
  .brand img:last-child { height: 28px; }
  .brand-sep { height: 30px; }
}
/* Menu repliable : en dessous de 1280 px, la navigation passe dans le menu (place pour les quatre langues) */
@media (max-width: 1279px) {
  .menu-btn { display: inline-flex; }
  .head-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11, 34, 64, .12); }
  .head-nav.is-open { display: flex; }
  .head-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-3); font-size: 17px; }
  .head-nav .nav-spacer { display: none; }
  .head-nav .btn { margin-top: 16px; }
}

/* --- Hero --- */
.hero { background: var(--navy); color: var(--on-dark); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-block: 96px 112px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(46px, 6.2vw, 84px); line-height: 1.0; letter-spacing: -.02em; text-wrap: balance; }
.hero-lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--on-dark-2); max-width: 580px; text-wrap: pretty; }
.hero-punch { margin: 0; padding-left: 0; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.35; color: #fff; max-width: 560px; text-wrap: balance; }
.hero-punch em { font-style: normal; color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-ctas .btn { min-height: 56px; padding: 0 28px; font-size: 17px; }
.hero-facts { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--dark-line-2); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--on-dark-3); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); }
.hero-visual { position: relative; height: 600px; }
.hero-render { position: absolute; right: 0; top: 0; width: 560px; height: 560px; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-render img { width: 100%; height: 100%; object-fit: cover; }
.toolpath { position: absolute; inset: 0; width: 100%; height: 100%; }
.toolpath path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 7; stroke-linecap: round; animation: path-run 2.4s linear infinite; }
.toolpath circle { fill: none; stroke: var(--accent); stroke-width: 2.8; }
.toolpath circle.dot { fill: var(--accent); stroke: none; }
@keyframes path-run { to { stroke-dashoffset: -28; } }
.render-tag { position: absolute; right: 14px; top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: rgba(7, 16, 28, .72); color: var(--on-dark); }
.code-card { position: absolute; left: 0; bottom: 0; width: 300px; padding: 20px 22px; border-radius: 12px; background: var(--navy-deep); border: 1px solid var(--dark-line); box-shadow: 0 24px 48px rgba(0, 0, 0, .45); font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--on-dark-2); }
.code-head { display: flex; justify-content: space-between; color: var(--on-dark); margin-bottom: 8px; }
.code-head .live { color: var(--accent); }
.c-dim { color: #8DA2BA; }
.c-hi { color: var(--on-dark); }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 64px 80px; }
  .hero-visual { height: auto; max-width: 560px; padding-bottom: 120px; }
  .hero-render { position: relative; width: 100%; height: auto; aspect-ratio: 1; }
  .code-card { left: auto; right: 16px; bottom: 0; }
}
@media (max-width: 760px) {
  .hero-grid { padding-block: 40px 56px; gap: 36px; }
  .hero-copy { gap: 22px; }
  .hero-lead { font-size: 17px; }
  .hero-punch { font-size: 19px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-visual { padding-bottom: 96px; }
  .code-card { width: min(300px, 92%); right: 8px; padding: 14px 16px; font-size: 12px; }
}

/* --- Principes --- */
.principles { border-bottom: 1px solid var(--line); }
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 56px; }
.principles h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 500; font-size: 24px; }
.principles p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 1100px) { .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; } }
@media (max-width: 560px) { .principles-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; } }

/* --- Applications --- */
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 28px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(11, 34, 64, .08); }
.app-card h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; }
.app-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-ico { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; flex-shrink: 0; }
.app-ico svg { width: 24px; height: 24px; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: #CFE2F0; color: var(--steel-dark); }
.app-card--soon { background: #DFE6EE; border-style: dashed; border-color: #93A4B7; box-shadow: none; }
.app-card--soon .app-ico { background: #C5D1DD; color: var(--text-3); }
.app-card--soon .badge { background: transparent; color: var(--text-2); padding-inline: 0; }
.app-card--yours { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.app-card--yours h3 { color: #fff; }
.app-card--yours p { color: var(--on-dark-2); }
.app-card--yours .app-ico { background: var(--accent); color: var(--navy); }
.app-card--yours .badge { background: rgba(127, 176, 207, .18); color: var(--accent); }
.app-card--yours a { margin-top: auto; color: var(--accent); font-weight: 600; }
.app-card--yours a:hover { color: #fff; }
@media (max-width: 1100px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .apps-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .app-card { min-height: 0; padding: 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; }
  .app-top { display: contents; }
  .app-top .app-ico { grid-row: 1 / span 2; }
  .app-top .badge { grid-column: 3; grid-row: 1; }
  .app-card h3 { grid-column: 2; grid-row: 1; font-size: 21px; }
  .app-card p { grid-column: 2 / span 2; grid-row: 2; font-size: 14px; }
  .app-card--soon p { display: none; }
  .app-card--yours a { grid-column: 2 / span 2; }
}

/* --- Décors SwissKH --- */
.decors { background: var(--navy); color: var(--on-dark); }
.decors .h2 { color: #fff; }
.decor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.decor { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 16px; background: #0E2A4C; border: 1px solid var(--dark-line); }
.decor-head { display: flex; align-items: center; gap: 14px; }
.decor-head .app-ico { background: #0F5EA8; }
.decor h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; color: #fff; }
.decor-tag { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--accent); }
.decor-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-dark-2); min-height: 48px; }
.decor-result { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.decor-result img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #15191E; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.decor-result figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-dark-2); }
.decor-result figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: rgba(127, 176, 207, .16); color: var(--accent); }
.decor-arrow { margin: auto 0 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.decor-arrow::before, .decor-arrow::after { content: ""; flex-grow: 1; height: 1px; background: var(--dark-line); }
.decor-note { margin: 32px 0 0; font-size: 13px; color: var(--on-dark-3); }
@media (max-width: 1100px) { .decor-grid { gap: 16px; } .decor { padding: 18px; } .decor h3 { font-size: 24px; } }
@media (max-width: 860px) {
  .decor-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--dark-line) transparent; }
  .decor { scroll-snap-align: start; }
}

/* --- Étapes (sous-traitants) --- */
.steps-sec { background: var(--bg-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.steps li { padding: 32px 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.steps .num { font-family: var(--mono); font-size: 14px; color: var(--steel); }
.steps h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-3); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li { padding-bottom: 8px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; gap: 22px; } .steps li { padding: 0; display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; } .steps .num { grid-row: 1 / span 2; padding-top: 6px; } .steps h3 { font-size: 22px; } .steps p { font-size: 15px; } }

/* --- Fonctions --- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.feature--hi { background: var(--surface); }
.feature svg { width: 30px; height: 30px; color: var(--steel); }
.feature h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.feature p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 1100px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature { padding: 28px; } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } .feature { padding: 20px 18px; gap: 8px; } .feature h3 { font-size: 20px; } .feature p { font-size: 15px; } }

/* --- Atelier --- */
.atelier-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.atelier-copy { display: flex; flex-direction: column; gap: 28px; }
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.icon-list li { display: flex; gap: 12px; }
.icon-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--steel); }
.icon-list b { display: block; font-weight: 600; font-size: 16px; }
.icon-list span { display: block; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.try-hint { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 10px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.try-hint svg { width: 18px; height: 18px; color: var(--drop); }
@media (max-width: 1100px) { .atelier-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 560px) { .icon-list { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* --- Démo gammes opératoires --- */
.gd { position: relative; width: 100%; max-width: 900px; user-select: none; -webkit-user-select: none; }
.gd-win { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px rgba(11, 34, 64, .12); overflow: hidden; }
.gd-title { height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.gd-title .gd-m { width: 20px; height: 20px; color: var(--steel); flex-shrink: 0; }
.gd-names { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.gd-name { font-size: 14px; font-weight: 600; white-space: nowrap; }
.gd-ref { font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-status { margin-left: auto; font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; transition: background-color .3s, color .3s; }
.gd-status.is-draft { background: var(--warn-bg); color: var(--warn); }
.gd-pal { height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-3); }
.gd-pal-label { width: 112px; flex-shrink: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.gd-chips { display: flex; gap: 8px; min-width: 0; }
.gd-chip { height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 4px; border: 1px solid #D5DDE5; border-radius: 999px; background: var(--surface-2); color: #1D2B3D; font-size: 13px; cursor: grab; touch-action: none; white-space: nowrap; transition: border-color .2s, background-color .2s, box-shadow .2s, opacity .2s; }
.gd-chip:hover { border-color: var(--accent); background: #fff; box-shadow: 0 2px 8px rgba(11, 34, 64, .08); }
.gd-chip[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.gd-chip .s { display: none; }
.gd-ico { width: 25px; height: 25px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gd-ico svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.t-perlage, .t-cotes, .t-laser { background: #0F5EA8; }
.t-lavage { background: #1E8BE6; }
.t-ctrl { background: #2F8A5B; }
.t-traitement { background: #6C7A89; }
.gd-body { padding: 14px 20px 0; }
.gd-head, .gd-row { display: grid; grid-template-columns: 24px 52px 32px minmax(0, 1fr) 132px 92px; gap: 12px; align-items: center; }
.gd-head { height: 20px; margin-bottom: 8px; padding: 0 14px 0 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.gd-list { --row-h: 52px; --row-gap: 8px; position: relative; height: calc(6 * (var(--row-h) + var(--row-gap)) - var(--row-gap)); transition: opacity .25s; }
.gd-list.is-fading { opacity: 0; }
.gd-list.no-anim .gd-row, .gd-list.no-anim .gd-end, .gd-list.no-anim .gd-slot { transition: none !important; }
.gd-row { position: absolute; left: 0; right: 0; top: 0; height: var(--row-h); padding: 0 14px 0 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 1px 2px rgba(11, 34, 64, .05); cursor: grab; transition: transform .26s cubic-bezier(.2, 0, 0, 1), box-shadow .2s, border-color .2s, opacity .26s; will-change: transform; }
.gd-row[data-i="1"] { transform: translateY(calc(1 * (var(--row-h) + var(--row-gap)))); }
.gd-row[data-i="2"] { transform: translateY(calc(2 * (var(--row-h) + var(--row-gap)))); }
.gd-row[data-i="3"] { transform: translateY(calc(3 * (var(--row-h) + var(--row-gap)))); }
.gd-row:hover { border-color: #A9BBCD; }
.gd-row.is-dragging { z-index: 5; cursor: grabbing; border-color: var(--drop); box-shadow: 0 18px 36px rgba(11, 34, 64, .20); transition: box-shadow .2s, border-color .2s; }
.gd-row.is-demo-drag { z-index: 5; border-color: var(--drop); box-shadow: 0 18px 36px rgba(11, 34, 64, .20); transition: transform .7s cubic-bezier(.45, 0, .2, 1), box-shadow .2s, border-color .2s; }
.gd-row.is-new { opacity: 0; }
.gd-grip { width: 24px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; display: flex; align-items: center; justify-content: center; color: #8A9BB0; cursor: grab; touch-action: none; }
.gd-grip:hover { background: var(--surface-2); color: var(--steel); }
.gd-grip svg { width: 10px; height: 16px; fill: currentColor; }
.gd-op { justify-self: start; font-family: var(--mono); font-size: 14px; color: var(--steel); padding: 2px 6px; margin-left: -6px; border-radius: 5px; transition: background-color .9s ease-out, color .3s; }
.gd-row.is-shifted .gd-op { color: #0F5EA8; background: #D8EAFB; transition: background-color .15s, color .15s; }
.gd-row.flash .gd-op { animation: op-flash 1.2s ease-out; }
@keyframes op-flash { 0%, 25% { background: #CFE6FA; color: #0F5EA8; } 100% { background: transparent; } }
.gd-row .gd-ico { width: 32px; height: 32px; border-radius: 8px; }
.gd-row .gd-ico svg { width: 19px; height: 19px; stroke-width: 2; }
.gd-txt { min-width: 0; }
.gd-txt b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-txt small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-txt small.m { display: none; }
.gd-poste { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-time { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.gd-end { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 16px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: var(--text-2); transition: transform .26s cubic-bezier(.2, 0, 0, 1), height .26s cubic-bezier(.2, 0, 0, 1), opacity .2s; }
.gd-slot { position: absolute; left: 0; right: 0; top: 0; height: var(--row-h); border: 2px dashed var(--drop); border-radius: 10px; background: rgba(30, 139, 230, .06); opacity: 0; transition: opacity .16s, transform .16s; pointer-events: none; }
.gd-slot.is-on { opacity: 1; }
.gd-bar { height: 64px; margin-top: 14px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-3); }
.gd-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.gd-note::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--drop); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.gd-btn { height: 36px; padding: 0 14px; border-radius: 6px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background-color .2s, color .2s, transform .12s, border-color .2s; }
.gd-replay { border: 1px solid var(--line); background: #fff; color: var(--steel); }
.gd-replay:hover { border-color: var(--steel); }
.gd-replay svg { width: 15px; height: 15px; }
.gd-spacer { flex-grow: 1; }
.gd-print { border: 0; background: var(--navy); color: #E8EDF2; }
.gd-print:hover { background: var(--steel-dark); }
.gd-save { min-width: 168px; justify-content: center; border: 0; background: var(--line-3); color: #5D6B7C; font-weight: 600; cursor: default; }
.gd-save:not(:disabled) { background: var(--steel); color: #fff; cursor: pointer; }
.gd-save:not(:disabled):hover { background: var(--steel-dark); }
.gd-save.is-pressed, .gd-btn:active { transform: scale(.96); }
.gd-ghost { position: absolute; left: 0; top: 0; z-index: 15; pointer-events: none; height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 4px; border: 1px solid var(--drop); border-radius: 999px; background: #fff; color: #1D2B3D; font-size: 13px; white-space: nowrap; box-shadow: 0 16px 32px rgba(11, 34, 64, .22); opacity: 0; transition: opacity .15s; }
.gd-ghost.is-on { opacity: 1; }
.gd-ghost.is-anim { transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .15s; }
.gd-cursor { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; opacity: 0; transition: transform .8s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.gd-cursor.is-on { opacity: 1; }
.gd-cursor .arrow { width: 22px; height: 26px; transform-origin: 2px 2px; transition: transform .12s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.gd-cursor .ring { position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--drop); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.gd-cursor.is-down .arrow { transform: scale(.86); }
.gd-cursor.is-down .ring { opacity: 1; transform: scale(1); }
.gd-toast { position: absolute; left: 50%; bottom: 84px; z-index: 12; width: max-content; max-width: min(620px, 92%); display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: var(--on-dark); font-size: 13.5px; line-height: 1.4; box-shadow: 0 14px 30px rgba(11, 34, 64, .28); transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.gd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.gd-toast svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
@media (max-width: 760px) {
  .gd-title { height: 56px; padding: 0 12px; gap: 10px; }
  .gd-title .gd-names { flex-direction: column; align-items: flex-start; gap: 1px; }
  .gd-ref { font-size: 11px; }
  .gd-status { font-size: 11.5px; padding: 4px 9px; }
  .gd-pal { height: 60px; padding: 0 12px; }
  .gd-pal-label { display: none; }
  .gd-chips { gap: 6px; width: 100%; }
  .gd-chip { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 8px 0 4px; font-size: 13px; }
  .gd-chip .l { display: none; }
  .gd-chip .s { display: inline; overflow: hidden; text-overflow: ellipsis; }
  .gd-body { padding: 12px 12px 0; }
  .gd-head { display: none; }
  .gd-list { --row-h: 56px; }
  .gd-row { grid-template-columns: 44px 44px 30px minmax(0, 1fr); gap: 6px; padding: 0 10px 0 2px; }
  .gd-grip { width: 44px; height: 44px; }
  .gd-op { font-size: 13px; }
  .gd-row .gd-ico { width: 30px; height: 30px; }
  .gd-txt b { font-size: 14px; }
  .gd-txt small { display: none; }
  .gd-txt small.m { display: block; font-size: 12px; }
  .gd-poste, .gd-time { display: none; }
  .gd-bar { height: 60px; margin-top: 12px; padding: 0 12px; gap: 8px; }
  .gd-print { display: none; }
  .gd-save { min-width: 0; height: 40px; }
  .gd-replay { height: 40px; }
  .gd-note { font-size: 12px; }
  .gd-toast { bottom: 76px; font-size: 13px; }
}

/* --- Traçabilité --- */
.trace { background: #fff; }
.trace-grid { display: grid; grid-template-columns: 562px minmax(0, 1fr); gap: 72px; align-items: center; }
.trace-art { position: relative; width: 560px; max-width: 100%; border-radius: 16px; overflow: hidden; background: #F7FAFC; border: 1px solid #D5DEE7; }
.trace-art > svg { width: 100%; height: auto; }
.lot-card { position: absolute; left: 53.57%; top: 42.14%; width: 236px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(11, 34, 64, .14); display: flex; flex-direction: column; gap: 12px; }
.lot-top { display: flex; align-items: center; gap: 12px; }
.lot-top svg { width: 48px; height: 48px; flex-shrink: 0; }
.lot-top b { display: block; font-weight: 600; font-size: 15px; }
.lot-top span { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.lot-rows { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #E1E8EF; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-3); }
.lot-rows li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lot-rows svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }
.lot-foot { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.trace-copy { display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 1100px) { .trace-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } .trace-art { margin-inline: auto; } }
@media (max-width: 600px) {
  .trace-art { border-radius: 14px; overflow: visible; background: transparent; border: 0; }
  .trace-art > svg { border-radius: 14px; background: #F7FAFC; border: 1px solid #D5DEE7; }
  .trace-art .connector { display: none; }
  .lot-card { position: relative; left: auto; top: auto; width: auto; margin: -56px 16px 0; }
}

/* --- Bibliothèques --- */
.libs { background: var(--bg-2); }
.libs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.libs-copy { display: flex; flex-direction: column; gap: 20px; }
.libs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lib-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lib-card svg { width: 32px; height: 32px; color: var(--steel); }
.lib-card h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.lib-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.lib-card a { margin-top: auto; font-weight: 600; }
.libs-partner { margin-top: 40px; padding-top: 32px; border-top: 1px solid #9FB0C2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.libs-partner p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; max-width: 760px; }
@media (max-width: 1100px) { .libs-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 640px) { .libs-cards { grid-template-columns: minmax(0, 1fr); } .lib-card { padding: 22px; } .libs-partner p { font-size: 20px; } }

/* --- Carnet d'adresses --- */
.carnet-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.carnet-copy { display: flex; flex-direction: column; gap: 28px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 15px; padding: 9px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.carnet-aside { display: flex; flex-direction: column; gap: 20px; padding: 44px; border-radius: 18px; background: var(--navy); color: var(--on-dark); }
.carnet-aside h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.15; color: #fff; }
.carnet-aside p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }
@media (max-width: 1100px) { .carnet-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 560px) { .chips li { font-size: 14px; padding: 7px 12px; } .carnet-aside { padding: 26px 22px; } .carnet-aside h3 { font-size: 24px; } }

/* --- Pour qui --- */
.audience { background: var(--navy); color: var(--on-dark); }
.audience .h2 { color: #fff; max-width: 820px; margin-bottom: 56px; }
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aud { display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: 14px; border: 1px solid var(--dark-line); }
.aud .tag { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.aud h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; color: #fff; }
.aud p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }
@media (max-width: 1100px) { .aud-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .aud { padding: 26px; } .audience .h2 { margin-bottom: 36px; } }

/* --- SwissKH --- */
.maker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.maker-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 28px 24px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.maker-art img { width: 100%; aspect-ratio: 422 / 640; object-fit: contain; }
.maker-art figcaption { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line-3); font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.maker-art figcaption img { width: 34px; height: auto; aspect-ratio: auto; }
.maker-copy { display: flex; flex-direction: column; gap: 24px; }
.maker-copy a { font-weight: 600; }
@media (max-width: 1100px) { .maker-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .maker-art { max-width: 620px; } }

/* --- Bêta --- */
.beta-box { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding: 72px; border-radius: 20px; background: var(--bg-2); }
.beta-copy { display: flex; flex-direction: column; gap: 20px; }
.beta-copy .h2 { font-size: clamp(32px, 3.4vw, 48px); }
.beta-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.contact-btn:hover { border-color: var(--steel); color: var(--ink); }
.contact-btn svg { width: 22px; height: 22px; color: var(--steel); flex-shrink: 0; }
.contact-btn small { display: block; font-size: 13px; color: var(--text-2); }
.contact-btn b { display: block; font-size: 17px; font-weight: 600; }
.beta-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .beta-form legend { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #AEBBC8; border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.field textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(30, 139, 230, .35); border-color: var(--drop); }
.field--full, .beta-form fieldset, .form-foot { grid-column: 1 / -1; }
.beta-form fieldset { margin: 0; padding: 0; border: 0; }
.beta-form legend { margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #AEBBC8; border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.checks input { width: 16px; height: 16px; accent-color: var(--steel); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.form-foot p { margin: 0; font-size: 13px; color: var(--text-2); max-width: 420px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ok); min-height: 1px; }
@media (max-width: 1100px) { .beta-box { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px; } }
@media (max-width: 640px) { .beta-box { padding: 28px 20px; border-radius: 16px; } .beta-form { grid-template-columns: minmax(0, 1fr); } .form-foot .btn { width: 100%; } }

/* --- Pied de page --- */
.site-foot { margin-top: var(--sy); padding: 72px 0 48px; background: var(--navy); color: var(--on-dark-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-logos { display: flex; align-items: center; gap: 18px; }
.foot-logos img:first-child { height: 40px; width: auto; }
.foot-logos img:last-child { height: 32px; width: auto; }
.foot-logos span { width: 1px; height: 36px; background: var(--dark-line); }
.foot-brand p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 360px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col h2 { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: var(--on-dark); }
.foot-col a { color: var(--on-dark-2); }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--on-dark-3); }
.foot-bottom a { color: var(--on-dark-3); }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-foot { padding: 48px 0 32px; } .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* --- Page de connexion --- */
.login-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--navy); color: var(--on-dark); }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.login-top a { color: var(--on-dark-2); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.login-top a:hover { color: #fff; }
.login-top .foot-logos img:first-child { height: 34px; }
.login-top .foot-logos img:last-child { height: 28px; }
.login-main { flex-grow: 1; display: grid; place-items: center; padding: 24px var(--gutter) 64px; }
.login-shell { width: min(1080px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; }
.login-intro { display: flex; flex-direction: column; gap: 20px; }
.login-intro h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.login-intro p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--on-dark-2); max-width: 480px; }
.login-art { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--dark-line); }
.login-art img { width: 100%; height: 100%; object-fit: cover; }
.login-card { padding: 40px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 22px; }
.login-card .card-logo { height: 34px; width: auto; align-self: flex-start; }
.login-card h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; }
.login-card form { display: flex; flex-direction: column; gap: 18px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 56px; }
.pw-toggle { position: absolute; right: 4px; top: 2px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--steel); }
.pw-toggle svg { width: 20px; height: 20px; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--steel); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--steel-dark); }
.login-card .btn { width: 100%; }
.login-alt { margin: 0; padding-top: 18px; border-top: 1px solid var(--line-3); font-size: 14px; color: var(--text-2); }
.login-alt a { font-weight: 600; }
.login-msg { display: none; flex-direction: column; gap: 14px; padding: 22px; border-radius: 12px; background: #EAF3FB; border: 1px solid #B7D3EA; }
.login-msg.is-on { display: flex; animation: pop .35s cubic-bezier(.2, 0, 0, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.login-msg h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--navy); }
.login-msg p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-3); }
.login-msg .msg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login-msg .btn { width: auto; flex: 1 1 auto; min-height: 44px; font-size: 15px; padding: 0 16px; }
.login-foot { padding-block: 20px 28px; font-size: 13px; color: var(--on-dark-3); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.login-foot a { color: var(--on-dark-3); }
@media (max-width: 960px) { .login-shell { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 520px; } .login-art { display: none; } .login-intro p { font-size: 16px; } }
@media (max-width: 560px) { .login-card { padding: 26px 20px; } .login-top .foot-logos img:first-child { height: 28px; } .login-top .foot-logos img:last-child { height: 22px; } .login-top .foot-logos span { height: 26px; } }

/* --- Page mentions légales --- */
.legal-head { background: var(--navy); color: var(--on-dark); padding-block: 72px 56px; }
.legal-head h1 { margin: 12px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; color: #fff; }
.legal { padding-block: 64px 24px; }
.legal-body { max-width: 760px; display: flex; flex-direction: column; gap: 36px; }
.legal-body section { display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; }
.legal-body p, .legal-body li { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-3); }
.legal-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-body address { font-style: normal; font-size: 16px; line-height: 1.7; color: var(--text-3); }

/* Ressources humaines · matrice des compétences */
.rh-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.rh-copy { display: flex; flex-direction: column; gap: 28px; }
.skills-card { margin: 0; min-width: 0; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(11, 34, 64, .12); display: flex; flex-direction: column; gap: 18px; }
.skills-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.skills-top b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); }
.skills-top div > span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text-2); }
.skills-tag { padding: 5px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-3); font-family: var(--mono); font-size: 12px; color: var(--steel); white-space: nowrap; }
.skills-scroll { overflow-x: auto; }
.skills { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.skills col.c-name { width: 124px; }
.skills thead th { padding: 0 4px 12px; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--text-3); text-align: center; vertical-align: bottom; }
.skills tbody tr { border-top: 1px solid var(--line-3); }
.skills tbody th { padding: 11px 8px 11px 0; text-align: left; font-weight: 500; color: var(--ink); white-space: nowrap; }
.skills td { padding: 11px 4px; text-align: center; }
.skills .is-absent td .lv { opacity: .4; }
.abs { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.lv { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--steel); background: conic-gradient(var(--steel) 0 var(--p, 0%), transparent 0); vertical-align: middle; }
.lv-1 { --p: 25%; } .lv-2 { --p: 50%; } .lv-3 { --p: 75%; } .lv-4 { --p: 100%; }
.lv-0 { display: inline-block; width: 10px; height: 2px; border-radius: 1px; background: var(--line); vertical-align: middle; }
.skills tfoot tr { border-top: 1px solid var(--line-2); }
.skills tfoot th { padding: 12px 8px 0 0; text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.skills tfoot td { padding: 12px 4px 0; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cov-warn > span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); }
.cov-warn svg { width: 13px; height: 13px; }
.skills-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-2); }
.skills-legend li { display: flex; align-items: center; gap: 8px; }
.skills-legend .lv { width: 14px; height: 14px; }
.skills-foot { margin: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 14px; line-height: 1.45; }
.skills-foot svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.skills-foot b { font-weight: 600; }
@media (max-width: 1100px) { .rh-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 560px) {
  .skills-card { padding: 16px 12px; border-radius: 14px; gap: 14px; }
  .skills-top b { font-size: 18px; }
  .skills { font-size: 13px; }
  .skills col.c-name { width: 64px; }
  .skills thead th { padding: 0 2px 10px; font-size: 11px; letter-spacing: -.01em; }
  .skills tbody th { padding-right: 4px; white-space: normal; line-height: 1.3; }
  .abs { display: block; width: max-content; max-width: 100%; margin: 3px 0 0; padding: 1px 6px; font-size: 10px; }
  .lv { width: 16px; height: 16px; }
  .skills tfoot th { padding-right: 2px; font-size: 10px; letter-spacing: 0; }
  .skills-foot { font-size: 13px; }
}

/* Sélecteur de langue */
.lang { position: relative; flex-shrink: 0; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; color: #1D2B3D; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; cursor: pointer; }
.lang-btn:hover, .lang.is-open .lang-btn { border-color: var(--accent); }
.lang-btn:focus-visible { outline: 3px solid rgba(30, 139, 230, .35); outline-offset: 2px; }
.lang-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
.lang.is-open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: none; min-width: 176px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px rgba(11, 34, 64, .16); }
.lang.is-open .lang-menu { display: block; }
.head-nav .lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 8px; color: #1D2B3D; font-size: 15px; font-weight: 500; }
.head-nav .lang-menu a:hover { background: var(--surface-2); color: var(--steel); }
.head-nav .lang-menu a[aria-current] { background: var(--bg); }
.lang-menu b { width: 22px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--steel); }
.login-top-r { display: flex; align-items: center; gap: 20px; }
.login-langs { display: flex; gap: 2px; }
.login-top .login-langs a { padding: 6px 9px; border-radius: 99px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--on-dark-2); }
.login-top .login-langs a:hover { color: #fff; }
.login-top .login-langs a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }
.legal-note { margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-3); font-size: 14px; color: var(--text-2); }
@media (max-width: 1279px) {
  .head-nav .lang { padding: 16px 0 4px; }
  .lang-btn { display: none; }
  .lang-menu { position: static; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .head-nav .lang-menu a { gap: 0; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; }
  .head-nav .lang-menu a span { display: none; }
  .head-nav .lang-menu a[aria-current] { background: var(--navy); border-color: var(--navy); }
  .head-nav .lang-menu a[aria-current] b { color: #fff; }
  .lang-menu b { width: auto; font-size: 13px; }
}
@media (max-width: 560px) { .login-top-r { gap: 10px; } .login-top .login-langs a { padding: 6px 6px; font-size: 12px; } .login-top-r > a { font-size: 0; gap: 0; } .login-top-r > a svg { width: 22px; height: 22px; } }
