:root {
  --ink: #172016;
  --night: #344f35;
  --night-2: #253b28;
  --paper: #fbfaf2;
  --paper-2: #f0eedf;
  --line: rgba(52, 79, 53, 0.18);
  --muted: #6a7167;
  --blue: #5f8142;
  --green: #5f8142;
  --teal: #7f9b48;
  --gold: #f4c91d;
  --red: #df1f2d;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(37, 59, 40, 0.14);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

textarea,
select {
  font: inherit;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(37, 59, 40, 0.9), rgba(37, 59, 40, 0.9)),
    repeating-linear-gradient(90deg, #344f35 0 1px, #253b28 1px 76px);
}

.access-panel {
  width: min(100%, 480px);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(251, 250, 242, 0.98);
  box-shadow: var(--shadow);
}

.access-logo {
  display: block;
  width: min(230px, 72vw);
  height: auto;
  margin: 0 0 24px;
}

.access-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: 0;
}

.access-panel label {
  display: block;
  margin: 24px 0 8px;
  color: var(--night);
  font-weight: 700;
}

.password-row {
  display: flex;
  gap: 10px;
}

.access-panel > input,
.password-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--white);
}

.password-row input {
  flex: 1;
}

.password-row button,
.primary-action {
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.access-error {
  margin: 12px 0 0;
  color: var(--red);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(37, 59, 40, 0.72);
  box-shadow: 0 18px 38px rgba(23, 32, 22, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--white);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 160ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 126px;
  height: auto;
}

.brand strong {
  color: var(--white);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav-group {
  position: relative;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active,
.nav-group.is-active > .nav-main {
  background: rgba(244, 201, 29, 0.14);
  color: var(--white);
}

.sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  padding: 10px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(37, 59, 40, 0.94);
  box-shadow: var(--shadow);
}

.nav-group:hover .sub-nav,
.nav-group:focus-within .sub-nav {
  display: grid;
}

.sub-nav a {
  width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 42px;
  height: 38px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--night);
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--night);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.section,
.section-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section {
  max-width: 1220px;
  margin: 0 auto;
}

.section-muted {
  max-width: none;
  background: var(--paper-2);
}

.section-muted > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.section-muted > .user-strip,
.section-muted > .collab-summary,
.section-muted > .contribution-board,
.section-muted > [data-register] {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark {
  max-width: none;
  background: var(--night);
  color: var(--white);
}

.section-dark > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 71px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(251, 250, 242, 0.97), rgba(251, 250, 242, 0.9) 54%, rgba(37, 59, 40, 0.92) 54%),
    linear-gradient(45deg, rgba(244, 201, 29, 0.16), rgba(223, 31, 45, 0.1));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero-aside .eyebrow {
  color: #91d0d4;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 920px;
  color: var(--night);
  font-size: clamp(2.45rem, 6.6vw, 5.8rem);
  letter-spacing: 0;
}

.lead {
  color: var(--night);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 650;
}

.hero-copy p:not(.eyebrow):not(.lead) {
  max-width: 720px;
  color: #3f4858;
  font-size: 1.04rem;
}

.hero-aside {
  display: grid;
  gap: 14px;
}

.hero-aside div,
.principle-card,
.phase-panel,
.process-lanes article,
.ia-grid article,
.journal-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
}

.hero-aside div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-aside span,
.principle-card span,
.process-lanes span,
.ia-grid span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-aside strong {
  display: block;
  margin: 6px 0;
  color: var(--night);
  font-size: 1.15rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  color: var(--night);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.section-dark .section-heading h2 {
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.statement {
  margin: 0;
  color: var(--night);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.32;
}

.objective-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objective-list li,
.deliverable-grid span,
.question-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
  font-weight: 650;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle-card {
  min-height: 178px;
  padding: 20px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.principle-card strong {
  display: block;
  margin: 10px 0;
  color: var(--night);
  font-size: 1.08rem;
}

.principle-card p {
  display: none;
  margin: 0;
  color: #536072;
}

.principle-card[aria-expanded="true"] {
  border-color: rgba(78, 138, 109, 0.42);
  background: #fbfaf6;
}

.principle-card[aria-expanded="true"] p {
  display: block;
}

.timeline {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
}

.timeline-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.timeline-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--night);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.timeline-tabs button.is-active {
  border-color: transparent;
  background: var(--red);
  color: var(--white);
}

.phase-panel {
  display: none;
  min-height: 360px;
  padding: clamp(24px, 5vw, 44px);
}

.phase-panel.is-active {
  display: block;
}

.phase-panel h3 {
  margin: 0 0 18px;
  color: var(--night);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.phase-panel ul,
.process-lanes ul {
  margin: 0;
  padding-left: 20px;
}

.phase-panel li,
.process-lanes li {
  margin: 8px 0;
}

.method-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.method-loop span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.method-text,
.journal p {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.process-lanes,
.ia-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-lanes article,
.ia-grid article {
  padding: 22px;
}

.process-lanes h3,
.ia-grid h3 {
  margin: 8px 0 14px;
  color: var(--night);
  font-size: 1.28rem;
}

.ia-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ia-grid article {
  border-top: 5px solid var(--blue);
}

.ia-grid .accent-workflow {
  border-top-color: var(--gold);
}

.ia-grid .accent-governance {
  border-top-color: var(--teal);
}

.ia-grid .accent-ai {
  border-top-color: var(--green);
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.journal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.journal-placeholder {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.journal-placeholder strong,
.journal-placeholder span {
  display: block;
}

.journal-placeholder span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-list button {
  color: var(--night);
  text-align: left;
  cursor: pointer;
}

.question-list button:hover,
.question-list button:focus-visible {
  border-color: rgba(44, 120, 168, 0.42);
  background: #fbfaf6;
}

.site-footer {
  padding: 36px clamp(18px, 5vw, 72px);
  background: var(--night-2);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  max-width: 920px;
  margin: 0 auto 14px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 30;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(37, 59, 40, 0.76);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(23, 32, 22, 0.24);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(223, 31, 45, 0.86);
}

.section-collab,
.collab-page [data-register],
.radar-board {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(37, 59, 40, 0.08);
}

.section-collab {
  background:
    linear-gradient(180deg, rgba(95, 129, 66, 0.11), rgba(244, 201, 29, 0.06)),
    rgba(255, 255, 255, 0.84);
  border-color: rgba(95, 129, 66, 0.24);
}

.section-dark .section-collab,
.section-dark [data-register] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.section-dark .section-collab {
  background:
    linear-gradient(180deg, rgba(244, 201, 29, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.09);
  border-color: rgba(244, 201, 29, 0.24);
}

.collab-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.collab-header h3,
.register-card h3,
.contribution-board h3 {
  margin: 0;
  color: var(--night);
}

.collab-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--night);
  font: inherit;
  font-size: 1.18rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.collab-title span {
  color: var(--red);
  font-size: 0.95rem;
}

.section-dark .collab-title {
  color: var(--white);
}

.collab-title:hover strong,
.collab-title:focus-visible strong {
  text-decoration: underline;
}

.section-dark .collab-header h3,
.section-dark .register-card h3 {
  color: var(--white);
}

.maturity-box,
.user-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.maturity-box span,
.user-strip span,
.user-strip strong,
.type-badge,
.role-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--night);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-dark .maturity-box span,
.section-dark .type-badge,
.section-dark .role-badge {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--night);
}

.section-dark .register-card .type-badge,
.section-dark .comment-card .type-badge {
  background: #ffffff;
  color: #253b28;
  border-color: rgba(255, 255, 255, 0.52);
}

.role-architecte {
  background: rgba(223, 31, 45, 0.1);
}

.role-direction {
  background: rgba(244, 201, 29, 0.18);
}

.role-operations {
  background: rgba(95, 129, 66, 0.14);
}

.role-consultatif {
  background: rgba(52, 79, 53, 0.08);
}

.comment-form,
.maturity-form,
.register-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
  align-items: end;
}

.register-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.comment-form label,
.maturity-form label,
.register-form label {
  display: grid;
  gap: 7px;
  color: var(--night);
  font-size: 0.85rem;
  font-weight: 850;
}

.section-dark .comment-form label,
.section-dark .maturity-form label,
.section-dark .register-form label {
  color: var(--white);
}

.comment-form input,
.comment-form textarea,
.comment-form select,
.maturity-form select,
.register-form input,
.register-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
}

.form-wide {
  grid-column: 1 / -1;
}

.comment-form button,
.maturity-form button,
.register-form button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.comment-list,
.register-list {
  display: grid;
  gap: 12px;
}

.comment-card,
.register-card,
.contribution-board article,
.collab-summary article,
.radar-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.section-dark .comment-card,
.section-dark .register-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--night);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
}

.identity {
  display: grid;
  gap: 2px;
  margin-right: 4px;
  color: var(--night);
  line-height: 1.15;
}

.identity strong {
  font-size: 0.95rem;
}

.identity small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.section-dark .identity,
.section-dark .identity small {
  color: var(--white);
}

.comment-meta time,
.comment-card small,
.register-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-dark .comment-meta time,
.section-dark .comment-card small,
.section-dark .register-card span {
  color: rgba(255, 255, 255, 0.72);
}

.comment-card p {
  margin: 0;
}

.trace-content {
  margin: 12px 0 0;
  color: var(--muted);
}

.small-danger {
  margin-top: 12px;
  border: 1px solid rgba(223, 31, 45, 0.32);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff7f7;
  color: #b31222;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.section-dark .small-danger {
  border-color: rgba(255, 255, 255, 0.3);
  background: #ffffff;
  color: #b31222;
}

.small-danger:hover {
  border-color: #b31222;
  background: #b31222;
  color: #ffffff;
}

.collab-summary,
.contribution-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.contribution-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collab-summary strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
}

.collab-summary span,
.contribution-board p {
  color: var(--muted);
}

.contribution-board a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.register-card div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.radar-board {
  display: grid;
  gap: 14px;
}

.radar-row {
  display: grid;
  gap: 10px;
}

.radar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.radar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(52, 79, 53, 0.14);
  overflow: hidden;
}

.radar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.radar-note {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .timeline,
  .journal {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background: linear-gradient(180deg, var(--paper), #e9eee9);
  }

  .principle-grid,
  .process-lanes,
  .ia-grid,
  .deliverable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-grid;
    align-content: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 250, 242, 0.86);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-group {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    color: var(--night);
  }

  .site-nav a:hover,
  .site-nav a.is-active,
  .nav-group.is-active > .nav-main {
    background: rgba(244, 201, 29, 0.24);
    color: var(--night);
  }

  .sub-nav {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .sub-nav a {
    color: rgba(37, 59, 40, 0.82);
    font-size: 0.86rem;
  }

  .objective-list,
  .principle-grid,
  .process-lanes,
  .ia-grid,
  .deliverable-grid,
  .collab-summary,
  .contribution-board {
    grid-template-columns: 1fr;
  }

  .collab-header,
  .comment-form,
  .maturity-form,
  .register-form {
    grid-template-columns: 1fr;
  }

  .collab-header {
    display: grid;
  }

  .timeline-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .password-row {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .access-panel {
    padding: 22px;
  }

  .timeline-tabs {
    grid-template-columns: 1fr;
  }

  .section,
  .section-band {
    padding-left: 16px;
    padding-right: 16px;
  }
}
