/* ==================================================================
   PROJET TUTEURÉ
   ================================================================== */
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.meta-row .tag { font-size: var(--fs-sm); padding: .3rem .7rem; background: var(--sheet); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split h2 { font-size: var(--fs-2xl); font-stretch: 115%; font-weight: 750; margin-bottom: 1rem; }
.split p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.spec-list { list-style: none; margin-top: 1rem; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--cabinet); font-size: var(--fs-sm); }
.spec-list li span:first-child { color: var(--ink-2); }
.spec-list li span:last-child { font-weight: 600; text-align: right; }

.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.devices article { padding: 1.5rem; border-left: 1px solid var(--rule); }
.devices article:first-child { border-left: 0; }
.devices h3 { font-size: var(--fs-lg); font-weight: 700; font-stretch: 108%; margin-bottom: .5rem; }
.devices p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.devices .role { display: inline-block; margin-bottom: .9rem; }
@media (max-width: 800px) { .devices { grid-template-columns: 1fr; } .devices article { border-left: 0; border-top: 1px solid var(--rule); } .devices article:first-child { border-top: 0; } }

/* Schéma bloc : chaîne de données */
.flow { display: flex; align-items: stretch; gap: 0; list-style: none; overflow-x: auto; padding-bottom: .5rem; }
.flow li { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.flow li + li::before { content: ""; width: 28px; height: var(--line); background: var(--ink); flex: none; }
.flow li + li::after { content: ""; position: absolute; left: 20px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }
.flow .box { flex: 1; min-width: 0; padding: .8rem .85rem; background: var(--sheet); border: var(--line) solid var(--ink); border-radius: 2px; }
.flow .box strong { display: block; font-size: var(--fs-sm); }
.flow .box span { display: block; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.4; }
.flow .box.is-key { background: var(--signal-soft); }
@media (max-width: 760px) {
  .flow { flex-direction: column; overflow: visible; }
  .flow li { flex-direction: column; align-items: stretch; min-width: 0; }
  .flow li + li::before { width: var(--line); height: 22px; align-self: center; }
  .flow li + li::after { left: 50%; top: 14px; margin: 0 0 0 -5px; border: 5px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
}

.issues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.issue { padding: 1.25rem 1.25rem 1.25rem 1.5rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--fault); border-radius: var(--r-md); }
.issue h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: .35rem; }
.issue p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 700px) { .issues { grid-template-columns: 1fr; } }

.roadmap { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: r; }
.roadmap li { counter-increment: r; position: relative; padding: 3.25rem 1.25rem 0 0; }
.roadmap li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border: var(--line) solid var(--ink); border-radius: 2px; background: var(--sheet); font-weight: 700; z-index: 1; }
.roadmap li::after { content: ""; position: absolute; left: 38px; right: 0; top: 18px; height: var(--line); background: var(--ink); }
.roadmap li:last-child::after { background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 10px); }
.roadmap h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: .35rem; }
.roadmap p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr; gap: 1.5rem; }
  .roadmap li { padding: 0 0 0 3.5rem; }
  .roadmap li::after { left: 18px; right: auto; top: 38px; bottom: -1.5rem; width: var(--line); height: auto; }
  .roadmap li:last-child::after { display: none; }
}

.split .flow .box { padding: .7rem .6rem; }
.split .flow .box strong { font-size: .875rem; }
