/* Pilotaj — sous-pages (Méthode, IA durable, Ressources et ses guides, Médias), en plus de style.css.
   Gabarit : scripts/build-pages.mjs ; textes : src/pages.mjs ; comportements : public/pages.js.
   Même charte que l'accueil : fond noir profond, Inter Tight (titres), Outfit (texte), Geist Mono (repères),
   orange Pilotaj, feux vert / orange / rouge toujours avec symbole et mot. */
#main { display: block; outline: none; }

/* ---------- En-tête de page : grille de mesure, lueur, grand dessin en fil de fer qui tourne lentement ---------- */
.pg-hero { position: relative; overflow: hidden; padding: calc(var(--hd-h) + clamp(40px, 7vw, 104px)) var(--pad-x) clamp(56px, 7vw, 104px); background: radial-gradient(60% 80% at 82% 30%, #15161A 0%, #0B0C0F 55%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.pg-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(245, 245, 242, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 245, 242, .035) 1px, transparent 1px); background-size: 96px 96px; -webkit-mask-image: radial-gradient(80% 90% at 60% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(80% 90% at 60% 30%, #000 30%, transparent 85%); }
.pg-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(30% 40% at 84% 100%, rgba(240, 66, 28, .16), transparent 70%); }
.pg-hero > * { position: relative; z-index: 1; }
.pg-hero > .pg-hero-bg { position: absolute; z-index: 0; right: max(-4vw, -60px); top: 50%; width: min(46vw, 600px); aspect-ratio: 1; transform: translateY(-44%); color: rgba(245, 245, 242, .17); pointer-events: none; }
.pg-hero-art { display: block; width: 100%; height: 100%; stroke-width: .32; animation: pg-spin 120s linear infinite; }
.pg-hero-medias .pg-hero-art, .pg-hero-durable .pg-hero-art { color: rgba(240, 106, 67, .3); }
@keyframes pg-spin { to { transform: rotate(360deg); } }
.crumbs ol { list-style: none; margin: 0 0 clamp(28px, 4vw, 52px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; letter-spacing: .06em; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(245, 245, 242, .28); }
.crumbs a { display: inline-block; padding: 12px 6px; margin: -12px -6px; color: var(--text-2); text-decoration: none; transition: color .2s; } /* ≥ 44 × 44 px au doigt (« Home »), texte à la même place */
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.pg-h1 { font: 300 clamp(50px, 7.2vw, 118px)/.94 var(--hero); letter-spacing: -.05em; max-width: 11.5em; text-wrap: balance; }
.pg-sub { margin-top: clamp(22px, 2.4vw, 32px); max-width: 36em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--text-2); }
.pg-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; letter-spacing: .06em; color: var(--text-3); }
.pg-meta span + span::before { content: "·"; margin-right: 14px; }

/* ---------- Sections ---------- */
.pg-sec { position: relative; padding: clamp(64px, 8vw, 120px) var(--pad-x); }
.pg-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pg-sec > .kicker { margin-bottom: 18px; }
.pg-h2 { font: 400 clamp(36px, 4.4vw, 68px)/1 var(--hero); letter-spacing: -.045em; max-width: 15em; margin-bottom: clamp(32px, 4vw, 56px); text-wrap: balance; }
.pg-cards3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pg-card { padding: 26px 26px 30px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--surface) 0%, #0D0E11 100%); }
.pg-card-art { width: 56px; height: 56px; margin-bottom: 26px; color: var(--text); }
.pg-card h3 { font: 400 25px/1.12 var(--hero); letter-spacing: -.03em; }
.pg-card p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* Cartes de ressources (page Ressources, « À lire aussi ») */
.rc { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--surface) 0%, #0D0E11 100%); color: var(--text); text-decoration: none; transition: border-color .3s, transform .3s; }
.rc:hover { border-color: var(--line-3); transform: translateY(-3px); }
.rc-k { font-size: 12.5px; letter-spacing: .08em; color: var(--accent-2); }
.rc-art { width: 64px; height: 64px; margin: 28px 0 32px; color: var(--text); transition: transform .6s cubic-bezier(.2, .8, .2, 1), color .3s; }
.rc:hover .rc-art { transform: rotate(30deg) scale(1.04); color: var(--accent-2); }
.rc-pic { margin: 20px 0 24px; border-radius: 14px; }
.rc-pic .vid-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.rc-pic .vid-play svg { width: 20px; height: 20px; }
.rc-t { display: block; font: 400 26px/1.1 var(--hero); letter-spacing: -.03em; text-wrap: balance; }
.rc-p { display: block; margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.rc-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; font-weight: 500; font-size: 15px; }
.rc:hover .pj-arr { transform: translateX(4px); color: var(--accent-2); }
.pg-next { border-top: 1px solid var(--line); }
.pg-next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Bas de page : appel final ---------- */
.pg-final { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(96px, 12vw, 170px) var(--pad-x); text-align: center; background: var(--bg); border-top: 1px solid var(--line); }
.pg-final > * { position: relative; z-index: 1; }
.pg-final .kicker { margin-bottom: -4px; }
.pg-final h2 { font-size: clamp(42px, 6.2vw, 100px); max-width: 13em; text-wrap: balance; }
.pg-final-sub { max-width: 34em; color: var(--text-2); font-size: 17px; }

/* ---------- Méthode ---------- */
.mt { padding-bottom: 0; }
.mt-card { position: relative; max-width: 1000px; margin: 0; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-2); border-radius: 28px; background: radial-gradient(90% 120% at 100% 0%, rgba(240, 66, 28, .13), transparent 55%), var(--surface); }
.mt-card .kicker { margin-bottom: 18px; }
.mt-card blockquote { margin: 0; }
.mt-card blockquote p { font: 300 clamp(24px, 2.5vw, 38px)/1.28 var(--hero); letter-spacing: -.025em; color: var(--text); text-wrap: pretty; }
.mt-lamps { display: flex; gap: 10px; margin-top: 28px; }
.ms-wrap { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.ms-rail { position: sticky; top: calc(var(--hd-h) + 36px); }
.ms-rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.ms-rail a { display: flex; align-items: center; gap: 14px; min-height: 48px; margin-left: -1px; padding: 0 0 0 18px; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; transition: color .25s, border-color .25s; }
.ms-rail a .mono { font-size: 12px; letter-spacing: .1em; }
.ms-rail a b { font-weight: 500; font-size: 15.5px; }
.ms-rail a:hover { color: var(--text-2); }
.ms-rail a[aria-current] { color: var(--text); border-left-color: var(--accent); }
.ms-rail a[aria-current] .mono { color: var(--accent-2); }
.ms-list { position: relative; list-style: none; margin: 0; padding: 0; }
.ms-list::before { content: ""; position: absolute; left: 21.5px; top: 24px; bottom: 40px; width: 1px; background: linear-gradient(var(--line-3), var(--line)); }
.ms { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; padding-bottom: 20px; scroll-margin-top: calc(var(--hd-h) + 24px); }
.ms-node { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-top: 18px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); font-size: 12px; color: var(--text-3); transition: border-color .5s, color .5s, box-shadow .5s, background .5s; }
.ms.lit .ms-node { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 5px rgba(240, 66, 28, .12), 0 0 22px -4px rgba(240, 66, 28, .6); }
.ms:nth-child(n+6).lit .ms-node { border-color: var(--g); box-shadow: 0 0 0 5px rgba(47, 191, 110, .12), 0 0 22px -4px rgba(47, 191, 110, .6); } /* au travail, suivi : le vert */
.ms-card { padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--surface) 0%, #0D0E11 100%); }
.ms-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 12.5px; letter-spacing: .08em; color: var(--text-3); }
.ms-card h3 { margin-top: 14px; font: 400 clamp(28px, 2.6vw, 40px)/1.06 var(--hero); letter-spacing: -.035em; }
.ms-l { margin-top: 22px; font-size: 12.5px; letter-spacing: .08em; color: var(--accent-2); }
.ms-t { margin-top: 8px; max-width: 62ch; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.ms-more { margin-top: 20px; border-top: 1px solid var(--line); }
.ms-more summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding-top: 4px; list-style: none; cursor: pointer; font-weight: 500; color: var(--text); }
.ms-more summary::-webkit-details-marker { display: none; }
.ms-more summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-3); transition: border-color .2s, background .2s; }
.ms-more summary i::before, .ms-more summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--accent-2); transform: translate(-50%, -50%); transition: transform .25s; }
.ms-more summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.ms-more[open] summary i { border-color: var(--accent); background: rgba(240, 66, 28, .1); }
.ms-more[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.ms-close, .ms-more[open] .ms-open { display: none; }
.ms-more[open] .ms-close { display: inline; }
.ms-more dl { margin: 6px 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ms-more dl > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.ms-more dt { font-size: 12.5px; letter-spacing: .08em; color: var(--text-3); }
.ms-more dd { margin: 8px 0 0; color: var(--text); font-size: 15.5px; line-height: 1.5; }

/* ---------- IA durable ---------- */
.du-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.du-steps li { position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--surface) 0%, #0D0E11 100%); }
.du-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -14px; top: 38px; width: 9px; height: 9px; border-top: 1.5px solid var(--text-3); border-right: 1.5px solid var(--text-3); transform: rotate(45deg); }
.du-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #F0421C; color: #08090B; font: 700 14px var(--sans); }
.du-steps li:nth-child(2) .du-n { background: #F2A23A; }
.du-steps li:nth-child(3) .du-n { background: #2FBF6E; }
.du-steps h3 { margin-top: 20px; font: 400 27px/1.1 var(--hero); letter-spacing: -.03em; }
.du-steps p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.du-cmp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.du-cards { display: grid; gap: 16px; }
.du-card { padding: 24px; border: 1px dashed rgba(245, 245, 242, .26); border-radius: 22px; }
.du-card.du-b { border: 1px solid rgba(47, 191, 110, .5); background: linear-gradient(180deg, rgba(47, 191, 110, .08), transparent 70%), var(--surface); }
.du-card h3 { font: 400 22px/1.2 var(--hero); letter-spacing: -.02em; }
.du-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.du-card li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.du-a li::before { content: ""; width: 8px; height: 8px; margin: 7px 0 0 4px; border: 1.5px solid var(--text-3); border-radius: 50%; }
.du-b li::before { content: "✓"; color: var(--g); font-weight: 700; font-size: 13px; line-height: 1.7; }
.du-sol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 32px; }
.du-sol li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.du-sol .mono { font-size: 12.5px; letter-spacing: .1em; color: var(--accent-2); }
.du-sol h3 { margin-top: 10px; font: 400 23px/1.15 var(--hero); letter-spacing: -.025em; }
.du-sol p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.du-honest { max-width: 920px; padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line-2); border-radius: 26px; background: radial-gradient(70% 100% at 0% 0%, rgba(245, 245, 242, .05), transparent 60%), var(--surface); }
.du-honest h2 { font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--hero); letter-spacing: -.03em; }
.du-honest p { margin-top: 14px; color: var(--text-2); font-size: 17px; line-height: 1.65; max-width: 64ch; }

/* ---------- Ressources ---------- */
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
html:not(.js) .rs-filters { display: none; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--text-2); font: 500 14.5px var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--line-3); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); }
.rs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rs-grid > li[hidden] { display: none; }
.rs { padding-top: clamp(40px, 5vw, 72px); }
/* Dernière carte seule sur sa ligne (ordinateur) : carte large, image ou dessin à gauche */
@media (min-width: 1100px) {
  .rs-grid > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .rs-grid > li:last-child:nth-child(3n+1) .rc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr auto; column-gap: 40px; align-items: start; }
  .rs-grid > li:last-child:nth-child(3n+1) .rc > :is(.rc-pic, .rc-art) { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .rs-grid > li:last-child:nth-child(3n+1) .rc > .rc-art { width: 120px; height: 120px; margin: 24px 0 0 24px; }
  .rs-grid > li:last-child:nth-child(3n+1) .rc > :not(.rc-pic, .rc-art) { grid-column: 2; }
  .rs-grid > li:last-child:nth-child(3n+1) .rc-t { margin-top: 14px; font-size: 34px; }
}
.rs-more-wrap { padding-top: 0; }
.rs-more { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line-2); border-radius: 26px; background: radial-gradient(60% 120% at 100% 100%, rgba(240, 66, 28, .12), transparent 60%), var(--surface); }
.rs-more h2 { font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--hero); letter-spacing: -.03em; }
.rs-more p { margin-top: 8px; color: var(--text-2); }
.rs-more p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.rs-more p a:hover { color: var(--accent-2); }

/* ---------- Guides ---------- */
.ar-wrap { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 720px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ar-side { position: sticky; top: calc(var(--hd-h) + 28px); display: grid; gap: 30px; }
.ar-brief { padding: 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); }
.ar-brief .kicker { margin-bottom: 14px; }
.ar-brief ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ar-brief li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; color: var(--text); font-size: 15px; line-height: 1.5; }
.ar-brief li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--accent); }
.ar-toc p { margin-bottom: 10px; font-size: 12.5px; letter-spacing: .08em; color: var(--text-3); }
.ar-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.ar-toc a { display: block; margin-left: -1px; padding: 9px 0 9px 16px; border-left: 2px solid transparent; color: var(--text-3); font-size: 14.5px; line-height: 1.4; text-decoration: none; transition: color .2s, border-color .2s; }
.ar-toc a:hover { color: var(--text-2); }
.ar-toc a[aria-current] { color: var(--text); border-left-color: var(--accent); }
.ar-body { color: var(--text-2); font-size: 17.5px; line-height: 1.7; }
.ar-sec { padding-top: 6px; scroll-margin-top: calc(var(--hd-h) + 24px); }
.ar-sec + .ar-sec { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.ar-sec h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font: 400 clamp(27px, 2.4vw, 36px)/1.15 var(--hero); letter-spacing: -.03em; color: var(--text); }
.ar-sec h2 .lamp { width: 32px; height: 32px; }
.ar-sec h2 .lamp svg { width: 16px; height: 16px; }
.ar-sec p + p { margin-top: 14px; }
.ar-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.ar-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.ar-list li::before { content: ""; width: 6px; height: 6px; margin-top: .72em; background: var(--accent); }
.ar-ol { list-style: none; margin: 8px 0 0; padding: 0; }
.ar-ol li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.ar-ol li:first-child { border-top: 0; }
.ar-ol .mono { padding-top: 6px; font-size: 13px; letter-spacing: .08em; color: var(--accent-2); }
.ar-ol h3 { font: 400 23px/1.25 var(--hero); letter-spacing: -.02em; color: var(--text); }
.ar-ol p { margin-top: 6px; font-size: 16.5px; }
.ar-ex { margin-top: 18px; padding: 16px 20px; border-left: 3px solid var(--line-3); border-radius: 4px 14px 14px 4px; background: var(--surface); color: var(--text); font-size: 15.5px; line-height: 1.6; }
.ar-light.g .ar-ex { border-left-color: var(--g); background: color-mix(in srgb, var(--g) 7%, var(--surface)); }
.ar-light.o .ar-ex { border-left-color: var(--o); background: color-mix(in srgb, var(--o) 7%, var(--surface)); }
.ar-light.r .ar-ex { border-left-color: var(--r); background: color-mix(in srgb, var(--r) 7%, var(--surface)); }
.ar-more { margin-top: 44px; }

/* ---------- Médias ---------- */
.md-list { display: grid; gap: clamp(40px, 5vw, 72px); }
.vid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 3.6vw, 56px); align-items: center; scroll-margin-top: calc(var(--hd-h) + 20px); }
.vid[data-fmt="vertical"] { grid-template-columns: minmax(0, calc(min(80svh, 780px) * 9 / 16)) minmax(0, 1fr); }
/* Lecteur (scène, affiche, vidéo, durée) : base commune avec l'accueil dans style.css ; comportement public/video.js */
.vid[data-fmt="vertical"] .vid-stage { aspect-ratio: 9 / 16; width: 100%; max-width: calc(min(80svh, 780px) * 9 / 16); justify-self: center; }
.vid.target .vid-stage { box-shadow: 0 0 0 2px var(--accent), 0 40px 100px -50px rgba(0, 0, 0, .95); }
.vid.playing .vid-btn[data-play] { display: none; }
.vid-tags { font-size: 12.5px; letter-spacing: .08em; color: var(--accent-2); }
.vid-t { margin-top: 12px; font: 400 clamp(32px, 3.4vw, 52px)/1 var(--hero); letter-spacing: -.04em; }
.vid-p { margin-top: 16px; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.vid-meta { margin-top: 16px; font-size: 12.5px; letter-spacing: .06em; color: var(--text-3); }
.vid-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
html:not(.js) .vid-bar { display: none; }
.vid-fmt { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.vid-fmt button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 500 13px var(--mono); cursor: pointer; transition: background .2s, color .2s; }
.vid-fmt button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.fmt-w, .fmt-v { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.fmt-w { width: 16px; height: 9px; } .fmt-v { width: 9px; height: 16px; }
.vid-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-3); border-radius: 999px; background: none; color: var(--text); font: 500 14.5px var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.vid-btn:hover { border-color: var(--text); }
.vid-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vid-btn[data-play] { background: var(--accent-btn); border-color: transparent; color: #fff; }
.vid-btn[data-play]:hover { background: var(--accent-hover); }
.vid-btn[data-play] svg { fill: currentColor; stroke: none; }
/* Aucune vidéo en ligne pour ce marché : les films en préparation (sans date ni durée), puis l'appel final */
.md-soon { max-width: 980px; }
.md-soon-k { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; letter-spacing: .08em; color: var(--text-2); }
.md-soon-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--o); box-shadow: 0 0 10px var(--o); }
.md-up { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.md-up li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; align-items: start; padding: 26px; border: 1px dashed rgba(245, 245, 242, .24); border-radius: 22px; background: linear-gradient(180deg, rgba(245, 245, 242, .03), transparent 70%); }
.md-up-art { width: 64px; height: 64px; color: rgba(240, 106, 67, .75); animation: pg-spin 60s linear infinite; }
.md-up-t { margin-top: 10px; font: 400 clamp(26px, 2.4vw, 34px)/1.08 var(--hero); letter-spacing: -.035em; }
.md-up-p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.md-soon-p { margin-top: 26px; max-width: 46ch; font: 300 clamp(21px, 2vw, 27px)/1.35 var(--hero); letter-spacing: -.02em; color: var(--text); }
.md-empty .md-note { margin-top: 32px; }
.md-note { max-width: 62ch; margin-top: 44px; color: var(--text-3); font-size: 13.5px; line-height: 1.55; }

/* ---------- Offres (04/10/2026) : deux formules côte à côte, Pilotaj Hébergé mis en avant (bord et lueur orange,
   pastille « Le point de départ ») ; prix alignés d'une carte à l'autre (sous-grille) ; options sans prix ---------- */
.pg-hero-offres { padding-top: calc(var(--hd-h) + clamp(36px, 4.4vw, 64px)); padding-bottom: clamp(36px, 4vw, 60px); }
.pg-hero-offres .crumbs ol { margin-bottom: clamp(24px, 3vw, 40px); }
.pg-hero-offres .pg-h1 { font-size: clamp(46px, 5.6vw, 88px); }
/* Ordinateur : la phrase à droite du titre, pour que les deux prix tiennent dans le premier écran (1440 × 900) */
@media (min-width: 1100px) {
  .pg-hero-offres { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 5vw, 88px); align-items: end; }
  .pg-hero-offres > .crumbs, .pg-hero-offres > .kicker { grid-column: 1 / -1; justify-self: start; }
  .pg-hero-offres > .pg-sub { margin: 0 0 .5em; max-width: 30em; font-size: 18px; }
  .pg-hero-offres > .pg-hero-bg { right: max(-8vw, -120px); width: min(36vw, 480px); opacity: .7; }
}
.of-plans { padding-top: clamp(32px, 3.4vw, 48px); }
.of-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.of-card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-2); border-radius: 28px; background: linear-gradient(180deg, var(--surface) 0%, #0D0E11 100%); scroll-margin-top: calc(var(--hd-h) + 20px); }
@supports (grid-template-rows: subgrid) {
  .of-grid { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
  .of-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
}
.of-feat { border-color: rgba(240, 66, 28, .55); background: radial-gradient(85% 55% at 100% 0%, rgba(240, 66, 28, .16), transparent 70%), linear-gradient(180deg, var(--surface) 0%, #0D0E11 100%); box-shadow: 0 50px 110px -70px rgba(240, 66, 28, .7); }
.of-head { position: relative; padding-right: 76px; }
.of-art { position: absolute; top: 0; right: 0; width: 64px; height: 64px; color: rgba(245, 245, 242, .5); }
.of-feat .of-art { color: var(--accent-2); }
.of-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px; border: 1px solid rgba(240, 66, 28, .55); border-radius: 999px; background: rgba(240, 66, 28, .08); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; }
.of-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.of-name { font: 400 clamp(32px, 3vw, 46px)/1.02 var(--hero); letter-spacing: -.04em; }
.of-who { margin-top: 10px; color: var(--text); font-weight: 500; font-size: 16px; }
.of-what { margin-top: 10px; max-width: 36ch; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.of-price { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.of-from { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.of-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; }
.of-amt b { font: 300 clamp(44px, 5vw, 76px)/1 var(--hero); letter-spacing: -.045em; color: var(--text); white-space: nowrap; }
.of-per { color: var(--text-2); font-size: 16px; white-space: nowrap; }
/* « set-up » (EN) jamais coupé sur son trait d'union en fin de ligne (build-pages.mjs, txt) */
.nw { white-space: nowrap; }
.of-setup { margin-top: 14px; color: var(--text); font-size: 15.5px; }
.of-setup span { color: var(--text-3); }
/* Nombre d'agents (04/10/2026 au soir) : « Un agent par tâche » (Hébergé, un point) / « Agents illimités sur votre
   infrastructure » + mise en service de chaque nouvel agent (Dédié, l'infini) */
.of-scope { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(245, 245, 242, .025); color: var(--text); }
.of-feat .of-scope { border-color: rgba(240, 66, 28, .3); background: rgba(240, 66, 28, .05); color: var(--accent-2); }
.of-scope-i { width: 24px; height: 24px; margin-top: 1px; }
.of-scope-i circle { fill: currentColor; stroke: none; }
.of-scope-i .of-ring { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .5; }
.of-scope-i .of-inf { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.of-scope p { display: grid; gap: 4px; margin: 0; }
.of-scope b { color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.35; }
.of-scope span { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.of-cta { justify-self: stretch; align-self: start; width: 100%; margin-top: 28px; }
.of-inc { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.of-inc-h { margin-bottom: 14px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.of-inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.of-inc li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.45; }
.of-ck { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--g); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Comment lire les prix (par agent, par mois, à partir de), puis la mention */
.of-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin: clamp(40px, 4.4vw, 64px) 0 0; }
.of-read > div { padding-top: 18px; border-top: 1px solid var(--line-2); }
.of-read dt { display: flex; align-items: baseline; gap: 12px; font: 400 23px/1.2 var(--hero); letter-spacing: -.025em; color: var(--text); }
.of-read dt .mono { font-size: 12px; letter-spacing: .1em; color: var(--accent-2); }
.of-read dd { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.of-legal { margin-top: 32px; max-width: 82ch; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }
/* Options : listées sans prix */
.of-opt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.of-opt-grid li { padding: 22px 22px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.of-plus { position: relative; display: block; width: 32px; height: 32px; border: 1px solid var(--line-3); border-radius: 50%; }
.of-plus::before, .of-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--accent-2); transform: translate(-50%, -50%); }
.of-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.of-opt-grid h3 { margin-top: 20px; font: 400 21px/1.2 var(--hero); letter-spacing: -.02em; text-wrap: balance; }
.of-opt-grid p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.of-opt-note { margin-top: 30px; max-width: 60ch; color: var(--text); font-size: 17px; line-height: 1.55; }
/* Le prix exact : trois temps */
.of-step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.of-step-list li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.of-step-list li:last-child { border-top-color: var(--g); }
.of-step-list .mono { font-size: 12.5px; letter-spacing: .1em; color: var(--accent-2); }
.of-step-list h3 { margin-top: 10px; font: 400 clamp(24px, 2.2vw, 30px)/1.12 var(--hero); letter-spacing: -.03em; }
.of-step-list p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- Tablette ---------- */
@media (max-width: 1099.98px) {
  .pg-cards3, .rs-grid, .pg-next-grid, .du-sol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-cards3 > :last-child:nth-child(odd), .rs-grid > :last-child:nth-child(odd), .pg-next-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ms-wrap { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 32px; }
  .ar-wrap { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
  .ar-side { position: static; }
  .ar-toc { display: none; }
  .du-cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .du-cmp-grid .pj-chart { max-width: none; }
  .vid, .vid[data-fmt="vertical"] { grid-template-columns: minmax(0, 1fr); }
  .md-up { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .of-opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-head { padding-right: 60px; }
  .of-per { flex-basis: 100%; } /* unité (« / agent / mois », « / mois ») sous le montant, pareil dans les deux cartes (Rs 150 000 ne laisse pas la place) */
  .of-art { width: 52px; height: 52px; }
  /* Casse normale des boutons et sur-titres sous 1 100 px (spec-mobile §1.2) */
  .btn, .kicker, .of-badge, .of-from, .of-inc-h { text-transform: none; letter-spacing: .02em; }
  .of-badge, .of-from, .of-inc-h { letter-spacing: .04em; font-size: 13px; }
  .kicker { font-size: 13px; }
  .btn { font-size: 16px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px), (max-height: 600px) {
  .pg-hero { padding: calc(var(--hd-h) + 26px) 20px 44px; }
  .pg-hero > .pg-hero-bg { right: -32%; top: 30%; width: 92vw; opacity: .75; }
  .crumbs ol { margin-bottom: 30px; }
  .pg-h1 { font-size: clamp(40px, 12vw, 56px); }
  .pg-sub { font-size: 17px; }
  .pg-sec { padding: 56px 20px; }
  .pg-h2 { font-size: clamp(32px, 9.4vw, 42px); margin-bottom: 28px; }
  .pg-cards3, .rs-grid, .pg-next-grid, .du-steps, .du-sol { grid-template-columns: minmax(0, 1fr); }
  .pg-card { padding: 22px 20px 24px; }
  .pg-card-art { width: 44px; height: 44px; margin-bottom: 18px; }
  .rc-art { width: 52px; height: 52px; margin: 20px 0 22px; }
  .rc-t { font-size: 24px; }
  .pg-next .rc { padding: 18px 18px 20px; }
  .pg-next .rc-art { display: none; }
  .pg-next .rc-t { margin-top: 12px; font-size: 23px; }
  .pg-next .rc-cta { padding-top: 14px; }
  .pg-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .pg-card-art { grid-row: 1 / span 2; margin: 2px 0 0; }
  .pg-card p { margin-top: 8px; }
  .mt { padding-top: 36px; }
  .du-steps li:not(:last-child)::after { right: auto; left: 40px; top: auto; bottom: -14px; transform: rotate(135deg); }
  .du-sol { gap: 22px; }
  /* Méthode : fil d'étapes en pastilles collé sous l'en-tête, cartes reliées par une ligne */
  .mt-card blockquote p { font-size: 23px; }
  .ms-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ms-rail { position: sticky; top: var(--hd-h); z-index: 5; margin: 0 -20px 26px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; background: rgba(8, 9, 11, .95); border-bottom: 1px solid var(--line); }
  .ms-rail::-webkit-scrollbar { display: none; }
  .ms-rail ol { display: flex; gap: 6px; width: max-content; border: 0; }
  .ms-rail a { gap: 8px; min-height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
  .ms-rail a b { font-size: 14.5px; }
  .ms-rail a[aria-current] { border-color: var(--accent); background: rgba(240, 66, 28, .12); }
  .ms { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; scroll-margin-top: calc(var(--hd-h) + 80px); }
  .ms-list::before { left: 15.5px; }
  .ms-node { width: 32px; height: 32px; margin-top: 20px; font-size: 11px; }
  .ms-card { padding: 20px 18px; }
  .ms-card h3 { font-size: 27px; }
  .ms-t { font-size: 16px; }
  .ms-more dl { grid-template-columns: minmax(0, 1fr); }
  /* Guides */
  .ar-body { font-size: 17px; }
  .ar-ol li { grid-template-columns: 40px minmax(0, 1fr); }
  .ar-ol h3 { font-size: 21px; }
  .ar-sec h2 { font-size: 26px; }
  .ar-sec h2 .lamp { width: 28px; height: 28px; }
  /* Médias */
  .vid-stage { border-radius: 18px; }
  /* Format connu dès le HTML (data-fmt="auto" = vertical sur téléphone) : pas de saut quand video.js choisit le 9:16 */
  .vid[data-fmt="auto"] .vid-stage { aspect-ratio: 9 / 16; width: 100%; justify-self: center; }
  .vid[data-fmt="vertical"] .vid-stage, .vid[data-fmt="auto"] .vid-stage { max-width: calc(min(76svh, 660px) * 9 / 16); }
  .md-up li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 18px 22px; }
  .md-up-art { width: 44px; height: 44px; }
  .md-up-t { font-size: 25px; }
  .md-soon-p { margin-top: 22px; font-size: 21px; }
  .vid-t { font-size: 32px; }
  .vid-bar { gap: 8px; }
  .vid-btn { padding: 0 14px; }
  .rs-filters { flex-wrap: nowrap; margin: 0 -20px 22px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
  .rs { padding-bottom: 32px; }
  .rs-more-wrap { padding-top: 0; } /* sinon 56 + 56 px de vide entre la dernière carte et « Une question… » */
  .rs-more-cta { display: none; } /* téléphone : le panneau orange qui suit et la barre du bas portent déjà la réservation */
  .rs-filters::-webkit-scrollbar { display: none; }
  /* Offres : cartes empilées (Pilotaj Hébergé d'abord), lecture des prix et options en une colonne */
  .pg-hero-offres { padding-bottom: 36px; }
  .pg-hero-offres .pg-h1 { font-size: clamp(40px, 11.4vw, 52px); }
  .of-plans { padding-top: 28px; }
  .of-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .of-card { display: flex; grid-row: auto; padding: 24px 20px 26px; border-radius: 24px; }
  .of-head { padding-right: 52px; }
  .of-art { width: 44px; height: 44px; }
  .of-badge { margin-bottom: 14px; }
  .of-name { font-size: 32px; }
  .of-price { margin-top: 22px; padding-top: 20px; }
  .of-amt b { font-size: clamp(40px, 12.4vw, 52px); }
  .of-cta { min-height: 54px; margin-top: 22px; }
  .of-inc { margin-top: 24px; padding-top: 20px; }
  .of-read { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; }
  .of-read > div { padding: 16px 0; }
  .of-read dt { font-size: 21px; }
  .of-opt-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .of-opt-grid li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 18px 18px 20px; }
  .of-plus { grid-row: 1 / span 2; }
  .of-opt-grid h3 { margin-top: 4px; font-size: 20px; }
  .of-opt-note { font-size: 16px; }
  .of-step-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .of-step-list li { padding: 20px 0 22px; }
  /* Appel final : panneau orange (spec-mobile C14) */
  .pg-final { margin-top: 0; padding: 72px 22px 80px; border-top: 0; border-radius: 28px 28px 0 0; background: var(--accent-btn); color: #fff; }
  .pg-final .final-glow { display: none; }
  .pg-final .kicker { color: #fff; }
  .pg-final .kicker::before { background: #fff; }
  .pg-final h2 { font-size: clamp(40px, 12vw, 54px); font-weight: 300; }
  .pg-final-sub { color: #fff; } /* blanc pur sur #DF340F : 4,5:1 (comme l'appel final de l'accueil) */
  .pg-final .pg-final-cta { width: 100%; min-height: 56px; background: #08090B; color: #fff; font-size: 17px; box-shadow: none; }
  .footer { border-top: 0; }
}
/* Très petit téléphone (320 px) : la pastille « Le point de départ » tient sur une ligne, à gauche du dessin */
@media (max-width: 340px) {
  .of-badge { gap: 7px; padding: 6px 10px; font-size: 12.5px; letter-spacing: .02em; }
}
/* Ordinateur bas (≤ 600 px de haut, donc P) : la vidéo verticale à gauche, comme le format 9:16 choisi par video.js */
@media (min-width: 1100px) and (max-height: 600px) {
  .vid[data-fmt="auto"] { grid-template-columns: minmax(0, calc(min(80svh, 780px) * 9 / 16)) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-hero-art, .md-up-art { animation: none; }
}
@media print {
  .pg-hero-bg, .ms-rail, .vid-bar, .rs-filters, .pj-veil { display: none !important; }
  .ar-side { position: static; }
}
