/* Industry journeys: orientation, apps and illustrative business flows. */
.sector-hero { text-align: left; }
.sector-hero h1, .sector-hero .lead { margin-inline: 0; }
.sector-hero h1 { max-width: 24ch; }
.sector-hero .lead, .sector-page .section-copy { max-width: 65ch; }
.sector-hero .btn-group { margin-top: 1.5rem; }
.module-index-section { padding-block: 2.5rem; }
.module-index-section .section-heading { font-size: 1.7rem; margin-bottom: 1rem; }
.module-index-section .section-copy { margin-bottom: 1.4rem; font-size: .95rem; }
.module-index-section .module-keypoints { gap: .75rem 1.5rem; }
.module-index-section .module-keypoint { display: flex; flex-direction: row; gap: .8rem; padding: .9rem 0; border-top: 1px solid var(--border); align-items: start; }
.module-keypoint .sector-number { color: var(--accent-light); margin: .1rem 0 0; }
.module-keypoint strong { display: block; font-weight: 500; font-size: .95rem; line-height: 1.5; }
.module-keypoint small { display: block; color: var(--text-secondary); line-height: 1.5; font-size: .8rem; margin-top: .2rem; }
.module-keypoint-arrow { color: var(--accent-light); margin-left: auto; }
.module-keypoint:hover strong { color: var(--accent-light); }
.module-keypoints-note { margin-top: 1.1rem; font-size: .85rem; }
.module-keypoints-note .text-link { color: var(--accent-light); }
.sector-page .story-position { top: calc(var(--header-height, 84px) + 24px); }
.sector-page .story-position h2 { font-size: 1.6rem; font-weight: 500; }
.sector-page .story-tool { font-size: .8rem; line-height: 1.6; }
.sector-page .story-output { margin-top: .8rem; max-width: 30ch; }
.sector-page .story-chapter { scroll-margin-top: calc(var(--header-height, 84px) + 28px); padding-bottom: 3rem; margin-bottom: 3rem; }
.sector-page .story-chapter p { max-width: 65ch; }
.stage-apps { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.5rem 0 1.2rem; }
.stage-apps a { display: inline-block; color: var(--teal); border: 1px solid var(--border-light); border-radius: 4px; padding: .35rem .6rem; font-size: .8rem; line-height: 1.6; }
.stage-apps a:hover { background: var(--bg-elevated); }
.stage-apps a.company-app { color: var(--accent-light); border-color: var(--accent-light); }
.sector-page .story-method { border-left-color: var(--accent-light); }
.sector-page .story-method .section-label { color: var(--accent-light); }
.sector-page .story-method p { font-size: .9rem; }
.sector-page .app-detail { scroll-margin-top: calc(var(--header-height, 84px) + 24px); }
/* Opening a fiche changes its reading frame, never the official app artwork. */
.sector-page .app-detail[open] { border-color: var(--border-light); }
.sector-page .app-detail[open] > summary {
  background: var(--bg-elevated); border-radius: 7px 7px 0 0;
  box-shadow: inset 3px 0 0 var(--accent-light); border-bottom: 1px solid var(--border);
}
.app-stage-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.app-stage-links > span { font-size: .8rem; color: var(--text-secondary); }
.app-stage-links .text-link { font-size: .85rem; }
.sector-page #app-construction .construction-app-icon { border-color: var(--accent-light); color: var(--accent-light); }
.sector-page #app-construction summary strong { color: var(--accent-light); }
.sector-page .certification-section { scroll-margin-top: calc(var(--header-height, 84px) + 24px); }
.sector-page .certification-intro .section-label { display: block; }
.sector-page .certification-status { display: inline-block; margin: 1rem 0 .4rem; max-width: none; border-color: var(--accent-light); color: var(--accent-light); }
.sector-page .certification-intro h2 { margin-bottom: 1rem; }
.certification-goal { color: var(--text-secondary); line-height: 1.6; font-size: .9rem; margin-bottom: 1.5rem; }
.sector-method-summary .card { border-top: 2px solid var(--accent-light); }
.sector-page #contact, .sector-page #demande-contact { scroll-margin-top: calc(var(--header-height, 84px) + 24px); }
.service-planning table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .8rem; }
.service-planning caption { text-align: left; font-size: .8rem; color: var(--text-secondary); margin-bottom: .8rem; }
.service-planning th, .service-planning td { padding: .75rem .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: break-word; line-height: 1.6; }
.service-planning th { font-weight: 500; }
.service-planning td span { display: block; background: var(--bg-elevated); border-left: 2px solid var(--teal); padding: .5rem; color: var(--text-secondary); }
.service-deliverables { list-style: none; padding: 0; margin: 0; }
.service-deliverables li { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--border); align-items: start; }
.service-deliverables strong { font-size: .85rem; font-weight: 500; }
.service-deliverables span { font-size: .8rem; color: var(--teal); }
.service-deliverables small { font-size: .8rem; color: var(--text-secondary); }
.service-charge { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.service-charge dt { color: var(--text-secondary); font-size: .8rem; line-height: 1.6; }
.service-charge dd { color: var(--text); font-size: 1.8rem; letter-spacing: -.04em; margin: .6rem 0 0; }
.sector-page .service-charge-result { margin-top: 1.5rem; color: var(--teal); font-size: .9rem; }
.sector-page .construction-visual figcaption { font-size: .8rem; }
@media (max-width: 900px) {
  .sector-page .story-position { top: var(--header-height, 84px); padding: .6rem .8rem; display: grid; grid-template-columns: auto minmax(0,1fr); gap: .25rem .7rem; border-top-width: 2px; }
  .sector-page .story-position .story-count { grid-column: 1; grid-row: 1; display: block; align-self: center; font-size: .75rem; margin: 0; }
  .sector-page .story-position h2 { grid-column: 2; grid-row: 1; display: block; font-size: .95rem; margin: 0; line-height: 1.4; }
  .sector-page .story-position .story-output { grid-column: 1 / -1; display: block; max-width: none; font-size: .75rem; margin: 0; line-height: 1.5; }
  .sector-page .story-position .story-tool { display: none; }
  .sector-page .story-chapter { scroll-margin-top: calc(var(--header-height, 84px) + 105px); }
  .sector-page .story-chapter h2 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .module-index-section .module-keypoints { grid-template-columns: 1fr; gap: 0; }
  .module-keypoint small { font-size: .78rem; }
  .module-index-section { padding-block: 2rem; }
  .service-deliverables li { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .service-deliverables small { grid-column: 1 / -1; }
  .service-charge { grid-template-columns: 1fr; }
  .service-charge > div { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid var(--border); padding-top: .8rem; }
  .service-charge dd { font-size: 1.5rem; margin: 0; white-space: nowrap; }
  .service-planning th, .service-planning td { padding: .5rem .25rem; font-size: .75rem; }
  .service-planning td span { padding: .3rem; }
}

/* One real workflow: a case file, people, actions and the apps they use. */
.story-casefile {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4rem;
  padding: 2rem 0;
  margin: 0 0 2rem;
  border-block: 1px solid var(--border-light);
}
.casefile-intro .folio-kicker { margin-bottom: 1rem; }
.casefile-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.casefile-intro p { font-size: .88rem; line-height: 1.8; color: var(--text-secondary); max-width: 58ch; }
.story-casefile dl { display: grid; gap: 1.3rem; margin: 0; }
.story-casefile dt { font: .72rem/1.6 ui-monospace, monospace; color: var(--accent-light); margin-bottom: .4rem; }
.story-casefile dd { font-size: .9rem; line-height: 1.7; color: var(--text); margin: 0; }
.workflow-reading-key { font-size: .8rem; line-height: 1.8; color: var(--text-secondary); max-width: 80ch; margin-bottom: 4rem; }
.workflow-reading-key strong { color: var(--text); font-weight: 500; }
.story-case-reference { font: .7rem/1.7 ui-monospace, monospace; color: var(--text-secondary); margin: .8rem 0; }
.chapter-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; }
.chapter-document { font: .72rem/1.7 ui-monospace, monospace; color: var(--text-secondary); }
.workflow-operations { list-style: none; padding: 0; margin: 2rem 0; }
.workflow-operation { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--border-light); align-items: start; }
.operation-actor { display: block; font: .72rem/1.7 ui-monospace, monospace; color: var(--accent-light); margin-bottom: .65rem; }
.sector-page .operation-work h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.5; margin: 0 0 .7rem; }
.sector-page .operation-work p { font-size: .88rem; line-height: 1.85; margin: 0 0 1rem; }
.operation-record { display: block; font-size: .76rem; line-height: 1.7; color: var(--teal); }
.operation-record > span { margin-right: .25rem; }
.operation-apps { display: grid; gap: 1rem; border-left: 1px solid var(--border); padding-left: 1rem; }
.workflow-app { display: flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--text); text-decoration: none; }
.workflow-app img { width: 28px; height: 28px; flex-shrink: 0; }
.workflow-app > span:not(.workflow-company-mark):not(.workflow-app-arrow) { min-width: 0; flex: 1; }
.workflow-app strong { display: block; font-weight: 500; font-size: .875rem; line-height: 1.5; }
.workflow-app small { display: block; font-size: .8125rem; line-height: 1.6; color: var(--text-secondary); margin-top: .2rem; }
.workflow-app-arrow { color: var(--text-secondary); font-size: .75rem; }
.workflow-app:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.workflow-app:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.workflow-app.company-app strong, .workflow-app.company-app .workflow-app-arrow { color: var(--accent-light); }
.workflow-company-mark { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-left: 1.5px solid var(--accent-light); border-bottom: 1.5px solid var(--accent-light); color: var(--accent-light); position: relative; font: 11px ui-monospace, monospace; }
.workflow-company-mark::before { content: ''; position: absolute; top: 0; left: -1.5px; width: 48%; height: 1.5px; background: var(--accent-light); }
.story-handoff { margin-top: 2rem; padding: 1.1rem 0 1.1rem 1.2rem; border-left: 2px solid var(--accent-light); }
.story-handoff .folio-kicker { margin-bottom: .45rem; }
.sector-page .story-handoff p { font-size: .9rem; color: var(--text); margin-bottom: .5rem; }
.story-handoff .text-link { font-size: .8rem; }
.story-checkpoint { border-bottom: 1px solid var(--border); margin: 1rem 0 1.5rem; }
.story-checkpoint summary { font-size: .8rem; line-height: 1.7; padding: .8rem 0; color: var(--text-secondary); cursor: pointer; }
.story-checkpoint summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.sector-page .story-checkpoint p { font-size: .85rem; padding: .4rem 0 1rem; }
.sector-page .story-method { padding-left: 1rem; margin-top: 1.5rem; }
.sector-page .story-method .section-label { text-transform: none; font-size: .7rem; letter-spacing: .015em; }
.sector-qualification { padding: 1.3rem 0; margin: 1rem 0 2rem; border-block: 1px solid var(--border); }
.sector-qualification h3 { font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.sector-qualification ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; padding: 0; }
.sector-qualification li { color: var(--text-secondary); font-size: .85rem; line-height: 1.8; }
@media (max-width: 1100px) and (min-width: 901px) {
  .workflow-operation { grid-template-columns: minmax(0, 1fr) 160px; gap: 1rem; }
}
@media (max-width: 900px) {
  .story-casefile { gap: 2rem; }
  .sector-page .story-position .story-case-reference { display: none; }
  .workflow-operation { grid-template-columns: minmax(0, 1fr) 190px; }
}
@media (max-width: 600px) {
  .story-casefile { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .workflow-operation { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .operation-apps { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; border: 0; padding: 0; }
  .workflow-app { flex: 1 1 140px; max-width: 220px; }
  .workflow-reading-key { margin-bottom: 2.5rem; }
  .chapter-document { display: none; }
  .sector-qualification ul { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .sector-page .story-position { position: static; }
}
.workflow-quote { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 1.3rem 0; font-size: .8rem; }
.workflow-quote caption { text-align: left; font-size: .75rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 1rem; }
.workflow-quote th, .workflow-quote td { padding: .8rem .5rem; text-align: right; border-bottom: 1px solid var(--border); line-height: 1.7; }
.workflow-quote th { font-weight: 500; }
.workflow-quote thead th:first-child, .workflow-quote tbody th { text-align: left; width: 40%; }
.workflow-quote tbody td:last-child { white-space: nowrap; }
.workflow-quote tfoot th { text-align: left; }
.workflow-quote tfoot td { white-space: nowrap; width: auto; color: var(--accent-light); font-weight: 500; }
.sector-page .chapter-heading .section-label { color: var(--accent-light); }
@media (max-width: 600px) {
  .workflow-quote { font-size: .7rem; }
  .workflow-quote th, .workflow-quote td { padding: .65rem .2rem; }
}
/* People have their own signs; the official app icons keep their own column. */
.person-symbol { display: block; width: 40px; height: 40px; flex-shrink: 0; color: var(--text); fill: none; --illustration-accent: var(--accent-light); }
.story-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.story-person { display: flex; align-items: flex-start; gap: .6rem; min-width: 0; }
.story-person strong { display: block; font-size: .8rem; line-height: 1.6; font-weight: 500; }
.story-person p { color: var(--text-secondary); font-size: .75rem; line-height: 1.8; margin-top: .4rem; }
.operation-person { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.operation-person .operation-actor { margin: 0; }
.operation-avatars { display: flex; gap: .1rem; flex-shrink: 0; }
.operation-avatars .person-symbol { width: 40px; height: 40px; }
.story-glossary { border-block: 1px solid var(--border); margin-top: 2rem; padding-block: .5rem; }
.story-glossary summary { padding: .75rem 0; font-size: .9rem; font-weight: 500; cursor: pointer; }
.story-glossary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; padding: 1.3rem 0; }
.story-glossary dt { font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: .5rem; }
.story-glossary dd { margin: 0; color: var(--text-secondary); font-size: .85rem; line-height: 1.8; }
@media (max-width: 900px) { .story-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .story-people, .story-glossary dl { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .story-person .person-symbol { width: 36px; height: 36px; }
}

#chiffrage-illustre { scroll-margin-top: calc(var(--header-height, 84px) + 28px); }
@media (max-width: 900px) { #chiffrage-illustre { scroll-margin-top: calc(var(--header-height, 84px) + 105px); } }

.story-person > .person-symbol { width: 48px; height: 48px; }
@media (max-width: 600px) {
  .operation-person { flex-wrap: wrap; }
  .operation-person .operation-actor { flex: 1 1 130px; }
}
