/* Styles propres à la page « strategie » (repris de la maquette). */
/* ---- Stratégie & durabilité : le cadre se referme sur un seul choix ---------------- */
.s-crop { --len: 4.6; }
.s-crop .pin-stage { background: #fff; color: #000; }
.s-hero { position: absolute; z-index: 6; left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); bottom: 40px; display: grid; gap: 16px; }
@media (min-width: 900px) { .s-hero { left: 64px; right: 64px; bottom: auto; top: 50%; transform: translateY(-50%); } }
@media (max-width: 899px) { .s-hero { padding-top: 56px; background: linear-gradient(rgba(255,255,255,0), #fff 48px); } }
.s-hero h1 { display: grid; gap: 16px; }
.s-hero .h1-seo { color: var(--encre-2); }
.s-hero .giant { font-size: clamp(3rem, 12.6vw, 10rem); color: #000; max-width: 10em; }
.s-hero .giant em { font-style: normal; text-decoration: line-through; text-decoration-thickness: .08em; }
.opts-cloud { position: absolute; inset: 0; z-index: 1; }
.op { position: absolute; left: 0; top: 0; display: grid; gap: 4px; white-space: nowrap; font: 700 var(--fs, 1.6rem)/1 var(--f-display); letter-spacing: -.035em; color: #9AA5AD; opacity: .2; }
.op small { font: 500 .78rem/1.25 var(--f-mono); letter-spacing: 0; color: var(--rouge-txt); opacity: 0; }
.op.out { color: #C9D2D8; }
.op.out .lbl { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #9AA5AD; }
.op.out small { opacity: 1; }
.op.cap { translate: -50% -50%; color: #9AA5AD; z-index: 5; }
.op.cap.on { color: #000; }
.s-mask { position: absolute; z-index: 2; background: #fff; opacity: .5; visibility: hidden; left: 0; top: 0; width: 0; height: 0; }
.s-bar { position: absolute; z-index: 4; background: #000; left: 0; top: 0; width: 0; height: 0; }
.s-logo { position: absolute; z-index: 5; left: 0; top: 0; visibility: hidden; overflow: visible; }
.s-out { position: absolute; z-index: 6; left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); bottom: 36px; font: 750 clamp(2.6rem, 11.5vw, 8.6rem)/.9 var(--f-display); letter-spacing: -.038em; visibility: hidden; }
@media (min-width: 900px) { .s-out { left: 64px; bottom: 6%; font-size: clamp(2.6rem, 6vw, 5.4rem); } }
.s-out span { display: block; color: #9AA5AD; }

/* Double matérialité : ce qui compte, on l'encadre */
.s-mat { --len: 1.5; }
@media (min-width: 900px) { .s-mat { --len: 2; } }
.s-mat .pin-stage { background: var(--brume); }
.s-mat__in { position: absolute; inset: calc(var(--bar-h) + 24px) max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; grid-template-rows: auto minmax(0, 1fr); }
@media (min-width: 900px) { .s-mat__in { left: 64px; right: 64px; top: calc(var(--bar-h) + 40px); bottom: 40px; grid-template-rows: none; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: center; } }
.s-mat__head { display: grid; gap: 12px; align-content: center; }
.s-mat__head .t1 { max-width: 9em; font-size: clamp(2.4rem, 9vw, 5.6rem); }
.s-mat__head .lead { font-size: 1rem; }
@media (min-width: 900px) { .s-mat__head .lead { font-size: var(--t-lead); } }
.matrix { position: relative; min-height: 0; height: 100%; max-height: 640px; max-width: 100%; justify-self: center; width: 100%; margin: 26px 0 20px; }
@media (min-width: 900px) { .matrix { aspect-ratio: 1 / 1; height: auto; max-height: none; width: min(100%, calc(100svh - var(--bar-h) - 150px)); } }
.matrix .ax { position: absolute; background: var(--encre); }
.matrix .ax.x { left: 0; right: 0; bottom: 0; height: 2px; transform-origin: 0 50%; }
.matrix .ax.y { left: 0; top: 0; bottom: 0; width: 2px; transform-origin: 50% 100%; }
.matrix .lx, .matrix .ly { position: absolute; font: 500 .75rem/1.3 var(--f-mono); color: var(--encre-2); }
.matrix .lx { right: 0; bottom: -22px; }
.matrix .ly { left: 8px; top: -2px; }
.matrix .ex { position: absolute; left: 8px; bottom: 8px; font: 500 .6875rem/1 var(--f-mono); color: var(--encre-2); }
.qf { position: absolute; left: 55%; top: 0; width: 45%; height: 55%; }
.qf i { position: absolute; background: #000; visibility: hidden; }
/* Téléphones : le titre reste à l'intérieur du cadre, la matrice garde de la place sur un écran court */
@media (max-width: 899px) {
  .s-hero { left: max(34px, env(safe-area-inset-left, 0px)); right: max(34px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 899px) and (max-height: 760px) {
  .s-hero .giant { font-size: clamp(2.6rem, 11.4vw, 3.4rem); }
  .s-mat__head { gap: 8px; }
  .s-mat__head .t1 { font-size: clamp(2rem, 8.6vw, 2.8rem); }
  .s-mat__head .lead-more { display: none; }
  .matrix { margin: 20px 0 18px; }
}
.qf .b1 { left: 0; top: 0; bottom: 0; width: 8px; transform-origin: 50% 100%; }
.qf .b2 { top: 0; left: 21%; right: 0; height: 8px; transform-origin: 0 50%; }
.qf .b3 { right: 0; top: 0; bottom: 0; width: 8px; transform-origin: 50% 0; }
.qf .b4 { bottom: 0; left: 0; right: 29%; height: 8px; transform-origin: 0 50%; }
.qf .b5 { bottom: 0; right: 0; width: 16%; height: 8px; transform-origin: 100% 50%; }
.qf b { position: absolute; right: 0; top: calc(100% + 10px); text-align: right; background: var(--brume); padding: 2px 4px; font: 700 .875rem/1.2 var(--f-text); white-space: nowrap; opacity: 0; }
@media (min-width: 900px) { .qf b { right: calc(100% + 14px); top: 50%; translate: 0 -50%; font-size: 1rem; } }
.enj { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; font: 500 .75rem/1.1 var(--f-text); color: var(--encre-2); white-space: nowrap; }
.enj i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.enj span { opacity: 0; background: var(--brume); padding: 1px 4px; }
.enj.mat span { color: #000; font-weight: 700; }
@media (min-width: 900px) { .enj { font-size: .875rem; } .enj i { width: 14px; height: 14px; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--encre-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* Ordre du jour */
.agenda { border-top: 3px solid #000; }
.agenda .situation { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 20px 0; display: grid; grid-template-columns: 70px minmax(0, 1fr) 26px; gap: 14px; align-items: start; text-align: left; font-size: 1.125rem; }
@media (min-width: 900px) { .agenda .situation { grid-template-columns: 120px minmax(0, 1fr) 26px; font-size: 1.375rem; padding: 26px 0; } }
.agenda .pt { font: 500 .8125rem/1.6 var(--f-mono); color: var(--encre-2); }
.agenda .situation .box { grid-column: 3; grid-row: 1; border-radius: 0; }
.agenda .situation[aria-pressed="true"] { background: none; }
.agenda .situation[aria-pressed="true"] .txt { font-weight: 600; }
.agenda .situation[aria-pressed="true"] .box { background: #000; border-color: #000; }

/* Le plan sur une page */
.sheet { position: relative; background: #fff; color: #000; padding: clamp(24px, 5vw, 64px); box-shadow: 0 40px 80px -50px rgba(18,26,33,.45); max-width: 1000px; }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 28px; height: 28px; border: 0 solid #000; }
.sheet::before { left: 10px; top: 10px; border-left-width: 3px; border-top-width: 3px; }
.sheet::after { right: 10px; bottom: 10px; border-right-width: 3px; border-bottom-width: 3px; }
.sheet__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 3px solid #000; font: 500 .8125rem/1.3 var(--f-mono); color: var(--encre-2); }
.sheet__head b { font: 700 1.125rem/1.2 var(--f-display); color: #000; letter-spacing: -.01em; }
.prow { display: grid; gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
@media (min-width: 800px) { .prow { grid-template-columns: 54px minmax(0, 4fr) minmax(0, 6fr); } }
.prow .n { font: 500 .8125rem/1.6 var(--f-mono); color: var(--encre-2); }
.prow h3 { font: 700 clamp(1.25rem, 2.2vw, 1.75rem)/1.05 var(--f-display); letter-spacing: -.025em; }
.prow p { color: var(--encre-2); }
.prow .livrables { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; list-style: none; }
.prow .livrables li { font: 500 .75rem/1.2 var(--f-mono); padding: 5px 8px; border: 1px solid var(--filet); }

/* Registre des choix */
.ledger-wrap { overflow-x: auto; }
.ledger { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; }
.ledger caption { text-align: left; font: 500 .8125rem/1.3 var(--f-mono); color: var(--encre-2); padding-bottom: 12px; caption-side: top; }
.ledger th { text-align: left; font: 500 .75rem/1.2 var(--f-mono); color: var(--encre-2); padding: 10px 12px 10px 0; border-bottom: 3px solid #000; }
.ledger td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td:first-child { font: 700 clamp(1.1rem, 2vw, 1.5rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.ledger tr.no td:first-child { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--encre-2); }
.ledger .dec { font: 600 .8125rem/1.2 var(--f-mono); white-space: nowrap; }
.ledger tr.no .dec { color: var(--rouge-txt); }
.ledger tr.yes .dec::before { content: ""; display: inline-block; width: 10px; height: 10px; background: #000; margin-right: 8px; }
.ledger td:last-child { color: var(--encre-2); }
@media (max-width: 640px) {
  .ledger { min-width: 0; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .ledger td { display: block; padding: 0; border: 0; }
  .ledger td:last-child { grid-column: 1 / -1; }
}

/* Les quatre gestes, chacun dans son cadre */
.frames4 { display: grid; gap: 20px; }
@media (min-width: 900px) { .frames4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fr { position: relative; padding: 26px 22px 22px; display: grid; gap: 10px; align-content: start; }
.fr i { position: absolute; background: #000; }
.fr .a { left: 0; top: 0; bottom: 0; width: 5px; }
.fr .b { top: 0; left: 21%; right: 0; height: 5px; }
.fr .c { right: 0; top: 0; bottom: 0; width: 5px; }
.fr .d { bottom: 0; left: 0; right: 29%; height: 5px; }
.fr .e { bottom: 0; right: 0; width: 16%; height: 5px; }
.fr .n { font: 500 .8125rem/1 var(--f-mono); color: var(--encre-2); }
.fr h3 { font: 700 1.5rem/1.1 var(--f-display); letter-spacing: -.02em; }
.fr p { color: var(--fg-2); }
.fr .vous { color: var(--fg); font-size: .9375rem; padding-top: 10px; border-top: 1px solid var(--line); }

.is-static .s-crop .pin-stage, .is-static .s-mat .pin-stage { padding: calc(var(--bar-h) + 40px) 20px 60px; }
.is-static .s-hero, .is-static .s-out, .is-static .s-mat__in { position: relative; inset: auto; transform: none; margin-bottom: 24px; visibility: visible; }
.is-static .opts-cloud, .is-static .s-mask, .is-static .s-bar, .is-static .s-logo { display: none; }
.is-static .matrix { height: 420px; }
