/* Kapel — pages des modules. Complète styles.css. --c : couleur du module, --cl : sa teinte claire (sur fond marine). */

.page .band-dark .accent { color: var(--cl); }
.page .eyebrow { color: var(--c) !important; }
.page .band-dark .eyebrow { color: var(--cl) !important; }
.page .more { border-bottom-color: var(--c); }
.band-light .more, .band-white .more { color: var(--navy); }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 700; }
.example { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; border: 1px dashed currentColor; color: var(--soft-light); vertical-align: middle; }
.band-dark .example { color: var(--soft-dark); }

/* ---------- Hero de page ---------- */
.phero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 28px) 0 56px; }
.phero-grid { position: relative; display: grid; gap: 32px; }
.back { display: inline-flex; gap: 8px; font-size: .88rem; color: var(--soft-dark); text-decoration: none; margin-bottom: 22px; }
.back:hover { color: #fff; }
.phero h1 { font-size: clamp(2.1rem, 7.6vw, 3.7rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.phero-sub { font-size: 1.14rem; margin-top: 18px; max-width: 34em; }
.phero .hero-cta { margin-top: 26px; }
.phero-visual { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); background: var(--navy-card); }
.phero-visual > img { width: 100%; }
.js .phero-text > *, .js .phero-visual, .js .phero .plan { opacity: 0; animation: word .8s var(--ease) forwards; }
.js .phero-text > :nth-child(2) { animation-delay: .08s; }
.js .phero-text > :nth-child(3) { animation-delay: .16s; }
.js .phero-text > :nth-child(4) { animation-delay: .24s; }
.js .phero-text > :nth-child(5) { animation-delay: .32s; }
.js .phero-visual, .js .phero .plan { animation-delay: .35s; }
.phero .arcs-hero { opacity: .4; }
.phero .plan { margin-bottom: 96px; }

/* Étiquette d'un point (plusieurs lignes) */
.hot b small { display: block; font-weight: 500; font-size: .92em; color: var(--soft-light); }
.hot-rich { align-items: flex-start; }
.hot-rich b { border-radius: 12px; padding: 7px 12px; white-space: normal; max-width: 200px; line-height: 1.25; margin-top: -6px; }
.js .hot-appear b { opacity: 0; transform: translateX(-8px); animation: word .6s var(--ease) 1.3s forwards; }
.hot-ok { --hc: var(--green); }
.hot-show { opacity: 1 !important; }

/* ---------- Cartes génériques ---------- */
.cards { display: grid; gap: 14px; }
.card { border-radius: var(--radius); padding: 24px; }
.band-light .card { background: #fff; border: 1px solid var(--line-light); }
.band-white .card { background: var(--light); border: 1px solid var(--line-light); }
.band-dark .card { background: var(--navy-card); border: 1px solid var(--line-dark); }
.band-dark .card h3 { color: #fff; }
.card h3 { margin-bottom: 8px; }
.card-n { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--c); margin-bottom: 10px; }
.band-dark .card-n { color: var(--cl); }
.card-img { margin: -24px -24px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 10; position: relative; background: var(--light); }
.card-img > img { width: 100%; height: 100%; object-fit: cover; }

/* Étapes avec visuel */
.step-visual { margin: -22px -22px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 11; position: relative; background: var(--navy); }
.step-visual > img { width: 100%; height: 100%; object-fit: cover; }
.step-visual .demo-rec { top: 12px; left: 12px; }
.mock { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; padding: 16px 18px; background: var(--light); }
.mock-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; background: #fff; border-radius: 8px; padding: 4px; font-size: .76rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.mock-row img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.mock-row em { font-style: normal; color: var(--red); font-size: .9em; display: block; font-weight: 700; }
.mock-validate { align-content: center; justify-items: center; gap: 12px; text-align: center; }
.mock-langs { display: flex; gap: 6px; }
.mock-langs span { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 8px; background: #fff; color: var(--navy); border: 1px solid var(--line-light); }
.mock-publish { font-size: .86rem; font-weight: 700; background: var(--green); color: #fff; padding: 9px 20px; border-radius: 999px; }
.mock-note { font-size: .74rem; color: var(--soft-light); }
.js .reveal .mock > * { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in .mock > * { opacity: 1; transform: none; }
.js .reveal.in .mock > :nth-child(1) { transition-delay: .5s; }
.js .reveal.in .mock > :nth-child(2) { transition-delay: .9s; }
.js .reveal.in .mock > :nth-child(3) { transition-delay: 1.3s; }
.js .reveal.in .mock > :nth-child(4) { transition-delay: 1.7s; }

/* Chiffres */
.stats-3 { margin: 0; }
.band-dark .stat { background: var(--navy-card); border: 1px solid var(--line-dark); }
.page .stat-n { color: var(--cl) !important; }
.stat-words { font-size: clamp(2rem, 8vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; }

/* Grande citation */
.bigquote { max-width: 900px; }
.bigquote blockquote { font-size: clamp(1.6rem, 6vw, 2.9rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); border-left: 6px solid var(--c); padding-left: 22px; margin: 8px 0 22px; text-wrap: balance; }
.bigquote p { font-size: 1.12rem; max-width: 36em; }
.quote-grid { display: grid; gap: 28px; align-items: center; }
.quote-photo { max-width: 280px; border-radius: var(--radius); overflow: hidden; }

/* Avant / Après en colonnes (texte) */
.versus { display: grid; gap: 14px; }
.versus > div { border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line-dark); }
.versus h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.versus li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line-dark); font-size: 1.05rem; }
.versus li::before { content: ''; position: absolute; left: 2px; top: 1.1em; width: 12px; height: 2px; background: currentColor; }
.versus-before { color: var(--soft-dark); }
.versus-before h3 { color: var(--soft-dark); }
.versus-after { background: var(--navy-card); color: #fff; border-color: var(--c) !important; }
.versus-after h3 { color: var(--cl); }
.versus-after li::before { height: 12px; width: 12px; border-radius: 50%; background: var(--c); top: .95em; left: 0; }

/* ---------- Fiche d'exemple (plan, tableau de bord) ---------- */
.inter { display: grid; gap: 20px; align-items: start; }
.fiche { background: #fff; color: var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.fiche.is-swap { animation: panel .4s var(--ease); }
.fiche-photos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: var(--line-light); }
.fiche-photos figure { position: relative; aspect-ratio: 16 / 10; }
.fiche-photos img { width: 100%; height: 100%; object-fit: cover; }
.fiche-photos figcaption { position: absolute; left: 8px; bottom: 8px; font-size: .66rem; font-weight: 700; background: rgba(10, 26, 63, .82); color: #fff; padding: 3px 8px; border-radius: 999px; }
.fiche-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.fiche-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fiche-zone { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-light); }
.fiche h3 { font-size: 1.3rem; color: var(--navy); }
.fiche dl { margin: 0; display: grid; gap: 0; }
.fiche dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-light); font-size: .94rem; }
.fiche dt { color: var(--soft-light); }
.fiche dd { margin: 0; font-weight: 500; color: var(--navy); }
.band-dark .fiche-note, .fiche-note { font-size: .92rem; background: var(--light); border-left: 4px solid var(--c); border-radius: 0 10px 10px 0; padding: 10px 12px; color: var(--navy); }
.fiche-note:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; white-space: nowrap; }
.badge[data-s="open"], .badge[data-s="alert"] { background: var(--red); }
.badge[data-s="progress"], .badge[data-s="warn"] { background: var(--orange); }
.badge[data-s="closed"], .badge[data-s="ok"] { background: var(--green); }

/* Plan interactif */
.iplan { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.iplan > img { width: 100%; }
.iplan button { position: absolute; width: 9.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .12); cursor: pointer; padding: 0; transition: transform .2s var(--ease), background-color .2s; }
.iplan button::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; animation: hot 2s ease-out infinite; animation-delay: var(--d, 0s); opacity: 0; }
.iplan button:hover { transform: translate(-50%, -50%) scale(1.12); }
.iplan button.is-active { background: rgba(255, 255, 255, .3); box-shadow: 0 0 0 4px var(--c), 0 0 0 7px #fff; }
.iplan button.is-active::after { display: none; }
.inter-hint { font-size: .9rem; margin-top: 12px; }

/* Rappel d'une solution */
.recall { background: #fff; border-radius: var(--radius); border: 1px solid var(--line-light); padding: 20px; display: grid; gap: 12px; box-shadow: 0 24px 50px -30px rgba(10, 26, 63, .4); }
.recall-new, .recall-old { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.recall img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.recall b { display: block; color: var(--navy); line-height: 1.25; }
.recall small { color: var(--soft-light); font-size: .84rem; }
.recall-link { justify-self: start; font-size: .78rem; font-weight: 700; color: #fff; background: var(--c); padding: 5px 12px; border-radius: 999px; }
.recall-old { background: var(--light); border-radius: 12px; padding: 10px; }

/* ---------- Santé-sécurité : rapport ---------- */
.report-grid { display: grid; gap: 24px; align-items: start; }
.tablet { background: #0b1227; border-radius: 26px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(10, 26, 63, .6); }
.report { background: #fff; border-radius: 16px; padding: 18px 16px; display: grid; gap: 14px; color: var(--navy); }
.js .report .rl { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(.3s + var(--i, 0) * .16s); }
.js .reveal.in .report .rl { opacity: 1; transform: none; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-light); }
.report-head b { font-size: 1.2rem; letter-spacing: -.01em; }
.report-task { font-size: .95rem; color: var(--navy) !important; }
.report-task span { color: var(--soft-light); }
.danger { border: 1px solid var(--line-light); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.danger-top { display: grid; gap: 8px; }
.danger h3 { font-size: 1.08rem; color: var(--navy); }
.danger h3 span { color: var(--soft-light); font-weight: 500; }
.danger-cause { font-size: .88rem; }
.score { justify-self: start; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 8px; color: #fff; transition: background-color .4s; font-variant-numeric: tabular-nums; }
[data-level="high"] { --lv: var(--red); }
[data-level="mid"] { --lv: var(--orange); }
[data-level="low"] { --lv: var(--green); }
.score { background: var(--lv); }
.measures { display: grid; }
.measures-title { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-light) !important; }
.measure { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line-light); cursor: pointer; align-items: start; }
.measure input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.m-text { font-size: .92rem; font-weight: 500; line-height: 1.3; }
.m-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .76rem; color: var(--soft-light); }
.m-status { font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--light); color: var(--soft-light); }
.m-status[data-s="progress"] { background: rgba(217, 146, 43, .16); color: #96610f; }
.measure input:checked ~ .m-meta .m-status { background: rgba(46, 158, 107, .16); color: #1c7a50; }
.measure input:checked ~ .m-text { color: var(--soft-light); }

.matrix-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.matrix-card h3 { font-size: 1.1rem; }
.matrix-wrap { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; }
.matrix-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft-light); text-align: center; }
.matrix-x { grid-column: 2; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft-light); text-align: center; }
.matrix { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; aspect-ratio: 1; max-width: 340px; width: 100%; }
.matrix i { border-radius: 5px; background: var(--lv); opacity: .28; }
.matrix-dot { position: absolute; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: var(--lv); border: 3px solid #fff; box-shadow: 0 6px 14px -4px rgba(10, 26, 63, .5); transition: left .7s var(--ease), top .7s var(--ease), background-color .5s; z-index: 1; }
.matrix-legend { display: grid; gap: 8px; font-size: .9rem; }
.matrix-legend li { display: flex; gap: 10px; align-items: center; color: var(--navy); }
.matrix-legend b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lv); color: #fff; font-size: .78rem; transition: background-color .5s; }
.matrix-legend span { margin-left: auto; font-weight: 700; color: var(--lv); font-variant-numeric: tabular-nums; white-space: nowrap; }
.matrix-reset { justify-self: start; background: none; border: 1.5px solid var(--line-light); border-radius: 999px; padding: 8px 16px; font-size: .86rem; font-weight: 700; cursor: pointer; color: var(--navy); }
.matrix-reset:hover { border-color: var(--c); }
.matrix-tip { font-size: .9rem; }

/* ---------- Curseur avant / après ---------- */
.ba-grid { display: grid; gap: 28px; }
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1400 / 782; --p: 50%; background: var(--navy-card); user-select: none; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-tag { position: absolute; top: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: #fff; }
.ba-before .ba-tag { left: 10px; background: var(--red); }
.ba-after .ba-tag { right: 10px; background: var(--green); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .4); }
.ba-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 1rem; letter-spacing: .1em; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .6); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba input::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 400px; }
.ba input::-moz-range-thumb { width: 48px; height: 400px; border: 0; }
.ba:focus-within { outline: 3px solid var(--sky); outline-offset: 3px; }
.ba-caption { display: grid; gap: 10px; margin-top: 14px; }
.ba-caption p { position: relative; padding-left: 26px; color: var(--light) !important; font-size: .98rem; line-height: 1.35; }
.ba-caption p::before { content: ''; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; border-radius: 50%; background: var(--hc); border: 2px solid #fff; }
.ba-caption b { color: #fff; }
.ba-caption small { display: block; color: var(--soft-dark); font-size: .9em; }
.ba-title { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }

/* ---------- Maintenance : tableau de bord ---------- */
.dash { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 4px 6px 14px; color: var(--navy); font-weight: 700; }
.dash-bar span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; color: var(--soft-light); }
.dash-bar span:first-of-type { margin-left: auto; }
.dash-bar i, .tile i { width: 10px; height: 10px; border-radius: 50%; background: var(--st); }
[data-state="ok"] { --st: var(--green); }
[data-state="warn"] { --st: var(--orange); }
[data-state="alert"] { --st: var(--red); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: 12px; background: var(--light); border: 2px solid transparent; cursor: pointer; color: var(--navy); font-size: .84rem; font-weight: 700; line-height: 1.2; text-align: center; transition: border-color .2s, transform .2s var(--ease); }
.tile:hover { transform: translateY(-2px); border-color: var(--line-light); }
.tile.is-active { border-color: var(--navy); background: #fff; }
.tile svg { width: 40px; height: 40px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile i { position: absolute; top: 10px; right: 10px; }
.tile[data-state="alert"] i { animation: blink 1.2s steps(2, start) infinite; }

/* Bloc large image + texte */
.wide { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.band-light .wide { background: #fff; border: 1px solid var(--line-light); }
.wide-img { aspect-ratio: 16 / 10; }
.wide-img img { width: 100%; height: 100%; object-fit: cover; }
.wide-body { padding: 26px 24px; display: grid; gap: 10px; align-content: center; }
.wide-body h3 { font-size: 1.5rem; }

/* Liens entre modules */
.links2 { display: grid; gap: 14px; }
.link-card { display: grid; gap: 10px; border-radius: var(--radius); padding: 24px; text-decoration: none; border-top: 4px solid var(--lc); transition: transform .2s var(--ease); }
.band-light .link-card { background: #fff; }
.band-white .link-card { background: var(--light); }
.link-card:hover { transform: translateY(-3px); }
.link-card small { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lc); display: flex; align-items: center; gap: 8px; }
.link-card small::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--lc); }
.link-card b { font-size: 1.15rem; line-height: 1.3; color: var(--navy); font-weight: 500; }
.link-card em { font-style: normal; font-weight: 700; font-size: .92rem; color: var(--navy); }

.cta .hero-cta { margin-top: 0; }
.cta-solo { position: relative; max-width: 760px; }
.cta-solo h2 { font-size: clamp(2rem, 7vw, 3.4rem); color: #fff; margin-bottom: 26px; }
.footer-mods { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (min-width: 640px) {
  .cards-2, .cards-3, .cards-4, .cards-6, .links2, .versus, .ba-caption { grid-template-columns: 1fr 1fr; }
  .steps-3 .step-visual { aspect-ratio: 4 / 3; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .report { padding: 26px 24px; }
  .danger-top { grid-template-columns: 1fr auto; align-items: start; }
  .measure { grid-template-columns: 22px 1fr auto; }
  .m-meta { grid-column: 3; justify-content: flex-end; }
  .quote-grid { grid-template-columns: 1fr 240px; gap: 44px; }
  .wide { grid-template-columns: 1fr 1fr; }
  .wide-img { aspect-ratio: auto; min-height: 320px; }
  .wide-body { padding: 36px; }
  .stats-3 { grid-template-columns: 1fr 1fr; }
  .stats-3 .stat:last-child { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .phero { padding: calc(var(--nav-h) + 56px) 0 96px; }
  .phero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
  .phero-stack .phero-grid { grid-template-columns: 1fr; gap: 48px; }
  .phero-stack .phero-text { max-width: 820px; }
  .phero .arcs-hero { left: 50%; width: 130%; -webkit-mask-image: linear-gradient(to top, #000 0 30%, transparent 80%); mask-image: linear-gradient(to top, #000 0 30%, transparent 80%); }
  .phero .plan { margin-bottom: 40px; }
  .phero .plan-card { right: auto; left: -28px; bottom: -44px; width: 280px; }
  .cards-3, .cards-6 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .stats-3 { grid-template-columns: repeat(3, 1fr); }
  .stats-3 .stat { grid-template-columns: 1fr; gap: 8px; align-content: start; }
  .stats-3 .stat:last-child { grid-column: auto; }
  .inter { grid-template-columns: 1.5fr 1fr; gap: 28px; }
  .inter-dash { grid-template-columns: 1.25fr 1fr; }
  .report-grid { grid-template-columns: 1.55fr 1fr; gap: 32px; }
  .matrix-card { position: sticky; top: calc(var(--nav-h) + 20px); }
  .ba-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ba-caption { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr 300px; gap: 72px; }
  .quote-photo { max-width: none; }
  .nav-links { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .phero-text > *, .js .phero-visual, .js .phero .plan, .js .hot-appear b, .js .report .rl, .js .reveal .mock > * { opacity: 1; transform: none; }
  .iplan button::after { display: none; }
}

/* Compléments */
.mock-row.plain { grid-template-columns: 1fr auto; padding: 9px 12px; font-size: .84rem; }
.mock-row.plain b { font-size: .72rem; color: #fff; background: var(--lv); padding: 3px 9px; border-radius: 999px; }
.mock-ladder .mock-row { width: var(--w); border-left: 4px solid var(--c); }
.js .reveal.in .mock > :nth-child(5) { transition-delay: 2.1s; }
.plan-conn { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plan-conn line { stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.conn-d { display: none; }
@media (max-width: 959px) {
  .steps-v { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .phero-visual.shot img { width: 760px; max-width: none; }
}
@media (min-width: 960px) {
  .conn-m { display: none; }
  .conn-d { display: inline; }
  .steps-v .step-visual { aspect-ratio: 4 / 3; }
}
@media (min-width: 960px) {
  .phero .plan { margin-bottom: 110px; }
  .phero .plan-card { left: -20px; bottom: -104px; width: 230px; }
}

/* Procédures vivantes : citation + boucle */
.band-white .loop-steps span { background: #fff; }
@media (min-width: 640px) { .quote-grid-loop { grid-template-columns: 1fr; } }
@media (min-width: 960px) { .quote-grid-loop { grid-template-columns: .85fr 1fr; gap: 48px; } }

/* Santé-sécurité : deux photos dans le hero */
.phero-duo { display: grid; gap: 14px; }
.hot-left { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -9px); }
.js .hot-appear b { animation-delay: var(--hd, 1.3s); }
.hot-left { width: max-content; }

/* ---------- Procédures : la capture à droite du titre, en partie derrière le texte ---------- */
@media (min-width: 960px) {
  .phero-wide .phero-grid { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 0; align-items: center; }
  .phero-wide .phero-text { position: relative; z-index: 2; }
  .phero-wide .phero-visual {
    margin-left: -70px;
    /* La capture déborde jusqu'au bord droit de l'écran (en gardant la marge de la page). */
    margin-right: calc(-1 * max(0px, (100vw - 1180px) / 2));
    border: 0; border-radius: 0; box-shadow: none; background: none;
    /* Le bord gauche de la capture (fond marine, vide) se fond derrière le texte. */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%);
    mask-image: linear-gradient(to right, transparent 0, #000 10%);
  }
}

/* ---------- Santé-sécurité : deux photos qui se chevauchent ---------- */
.phero-duo { display: block; }
.phero-duo .phero-visual { width: 80%; position: relative; z-index: 1; transition: scale .3s var(--ease), box-shadow .3s; cursor: pointer; }
.phero-duo .phero-visual + .phero-visual { margin: -9% 0 0 20%; z-index: 2; }
.phero-duo .phero-visual:hover, .phero-duo .phero-visual.is-front { z-index: 3; scale: 1.03; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85); }
.phero-duo:hover .phero-visual:not(:hover), .phero-duo.has-front .phero-visual:not(.is-front):not(:hover) { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .phero-duo .phero-visual:hover, .phero-duo .phero-visual.is-front { scale: none; }
}
@media (min-width: 960px) {
  .phero-wide .phero-sub { max-width: 395px; }
}

/* Procédures, grand écran : le titre reprend ses deux lignes et passe au-dessus du haut (vide) de la capture, abaissée. */
@media (min-width: 1100px) {
  .phero-wide .phero-grid { align-items: start; }
  .phero-wide h1 { width: max-content; white-space: nowrap; }
  .phero-wide h1 .accent { display: block; }
  .phero-wide .phero-visual { margin-top: 112px; }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .phero-wide .phero-visual { margin-top: 182px; }
}

/* Tablette : les étapes avec visuel passent en ligne (visuel à gauche, texte à droite). */
@media (min-width: 640px) and (max-width: 959px) {
  .steps-v .step { display: grid; grid-template-columns: 42% 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 26px; padding: 0 22px 0 0; overflow: hidden; }
  .steps-v .step-visual { grid-column: 1; grid-row: 1 / 5; margin: 0; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; min-height: 220px; }
  .steps-v .step-n { grid-column: 2; grid-row: 1; align-self: end; margin-top: 22px; }
  .steps-v .step h3 { grid-column: 2; grid-row: 2; }
  .steps-v .step p { grid-column: 2; grid-row: 3; margin-bottom: 22px; }
}
