/* Pages projet : même direction que l'accueil (voir style.css). */
.project-head { padding-top: 52px; padding-bottom: 28px; }
.back { display: inline-block; font: 500 .85rem var(--sans); letter-spacing: .06em; text-transform: uppercase;
        color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.back:hover { color: var(--text); }
.project-head h1 { margin-bottom: 18px; }
.project-head .pitch { font-size: 1.12rem; max-width: 62ch; color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 30px 0 0; }
.facts div { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.facts dt { font-weight: 600; color: var(--text); font-size: .92rem; }
.facts dd { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.facts a.ext { color: var(--solution); text-decoration: none; word-break: break-all; }
.facts a.ext:hover { text-decoration: underline; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.prose p { max-width: 70ch; margin: 0 0 14px; font-size: 1.05rem; }
.lede { max-width: 70ch; margin: -6px 0 22px; }
.points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.points li { border-bottom: 1px solid var(--line); padding: 14px 0; color: var(--muted); }
.points li b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }
code { font: 500 .88em var(--mono); color: var(--text); }
.note { color: var(--muted); font-size: .9rem !important; margin-top: 22px !important; }

.next { padding-top: 10px; padding-bottom: 20px; }
.next a { font: 500 .95rem var(--sans); letter-spacing: .06em; color: var(--solution); text-decoration: none; }
.next a:hover { text-decoration: underline; }

/* Fenêtre d'application autour d'une démo (Taxis) : barre de titre claire et trois boutons, comme une vraie fenêtre. */
.appwin { margin: 0; max-width: 820px; background: #ffffff; border: 1px solid #6b6560; border-radius: 8px; overflow: hidden;
          box-shadow: 0 10px 34px rgba(0,0,0,.45); }
.appbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 30px; padding: 0 10px;
          background: linear-gradient(#ececec, #dedede); border-bottom: 1px solid #c4c4c4; font: 600 12.5px system-ui, sans-serif; color: #3c3c3c; }
.appbar .dots { display: flex; gap: 6px; }
.appbar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #c9c9c9; border: 1px solid #b0b0b0; }
.appwin img { display: block; width: 100%; height: auto; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.legend-row > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sw.line { width: 18px; height: 3px; border-radius: 2px; }

/* Démo de l'algorithme génétique : l'animation à gauche, les étapes numérotées à droite. */
.ga-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .ga-grid { grid-template-columns: 1fr; gap: 28px; } }
.ga-grid .legend { font-size: .86rem; color: var(--muted); text-align: center; max-width: 56ch; margin: 10px auto 0; }
.ga-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.ga-steps li { border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--muted); font-size: .95rem; }
.ga-steps li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.ga-steps li b::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 500 .8rem var(--mono);
                      color: var(--muted); margin-right: 10px; }

/* Figures du rapport : posées sur une feuille blanche, comme dans le rapport. */
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .figs { grid-template-columns: 1fr; } }
.fig { margin: 0; }
.fig img { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px; }
.fig figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.takeaways p { max-width: 75ch; margin: 18px 0 0; color: var(--body); }
.takeaways p[hidden] { display: none; }
