/* Page /ajouter — refonte complète. Variables du site (thèmes clair + sombre). */
.aj-hero { padding: clamp(56px, 8vw, 84px) 0 28px; display: grid; gap: 18px; justify-items: start; }
.aj-hero h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -0.045em; font-weight: 700; line-height: 1.05; text-wrap: balance; }
.aj-hero h1 em { font-style: normal; color: var(--g, #0a0a0a); }
.aj-hero p { max-width: 560px; color: var(--muted); font-size: 18px; }
.aj-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin-top: 6px; }
.aj-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13.5px; color: var(--muted); }
.aj-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g, #0a0a0a); }
.aj-facts strong { color: var(--text); font-weight: 600; }

.aj-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 18px; }
.aj-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.aj-chip { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--muted); font: 500 14px/1 var(--font); cursor: pointer; transition: all .15s; }
.aj-chip:hover { color: var(--text); border-color: var(--g, #0a0a0a); }
.aj-chip[aria-pressed="true"] { background: var(--g, #0a0a0a); border-color: var(--g, #0a0a0a); color: var(--on-g, #ffffff); }
.aj-count { font-size: 13.5px; color: var(--muted-soft); }

.aj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.aj-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 1px 2px rgba(34, 34, 34, .04); transition: border-color .25s, transform .3s var(--ease), box-shadow .25s; }
.aj-card:hover { border-color: var(--g-line, var(--line-strong)); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34, 34, 34, .08); }
.aj-card[hidden] { display: none; }
.aj-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; background: var(--g-soft, var(--card)); border-color: var(--g-line, var(--line)); }
.aj-top { display: flex; align-items: center; gap: 16px; }
.aj-avatar { width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.aj-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aj-card.wide .aj-avatar { width: 88px; height: 88px; border-radius: 20px; }
.aj-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aj-name h2 { font-size: 21px; letter-spacing: -0.03em; font-weight: 650; }
.aj-name h2 .tm { font-size: .55em; vertical-align: super; color: var(--muted); }
.aj-flag { padding: 3px 10px; border-radius: 999px; background: var(--g-soft, #f2f2f2); color: var(--g-dark, #2b2b2b); font-size: 12px; font-weight: 600; }
.aj-card.wide .aj-flag { background: var(--card); }
.aj-main { flex: 1; min-width: 0; display: grid; gap: 12px; }
.aj-main p { color: var(--muted); font-size: 15px; }
.aj-card.wide .aj-main { gap: 10px; }
.aj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aj-tags span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12px; color: var(--muted); }
.aj-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; }
.aj-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.aj-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g, #0a0a0a); box-shadow: 0 0 0 4px rgba(125, 125, 125, .15); }
.aj-card .btn { margin-left: auto; }
.aj-card.wide .aj-foot { margin-top: 4px; }

.aj-section { margin-top: clamp(56px, 8vw, 84px); }
.aj-section > h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.035em; font-weight: 650; margin-bottom: 8px; }
.aj-section > p.lead { color: var(--muted); max-width: 620px; margin-bottom: 26px; }
/* Étapes : timeline verticale — pastilles cerclées de vert reliées par un fil */
.aj-steps { --st-accent: var(--g, #0a0a0a); --st-fill: var(--card, #ffffff); --st-glow: var(--g-soft, rgba(125, 125, 125, .14)); --st-line: var(--line-strong, #d8d8d8);
  list-style: none; display: flex; flex-direction: column; padding: 0; margin: 0; counter-reset: s; }
html[data-theme="dark"] .aj-steps { --st-fill: var(--bg, #0a0a0a); --st-glow: rgba(149, 149, 149, .18); --st-line: #2d2d2d; }
.aj-steps li { position: relative; min-height: 34px; padding: 0 0 34px 60px; counter-increment: s; }
.aj-steps li:last-child { padding-bottom: 0; }
.aj-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; box-sizing: border-box;
  border: 2px solid var(--st-accent); border-radius: 50%; background: var(--st-fill); box-shadow: 0 0 0 5px var(--st-glow); color: var(--text); font-weight: 650; font-size: 14px; line-height: 1; }
.aj-steps li::after { content: ""; position: absolute; left: 16px; top: 46px; bottom: 6px; width: 1px; background: var(--st-line); }
.aj-steps li:last-child::after { display: none; }
.aj-steps h3 { font-size: 17px; letter-spacing: -0.02em; font-weight: 650; line-height: 1.3; margin: 2px 0 4px; }
.aj-steps p { font-size: 14.5px; color: var(--muted); max-width: 62ch; }
.aj-tip { margin-top: 18px; padding: 16px 20px; border: 1px solid var(--g-line, var(--line)); border-left: 3px solid var(--g, #0a0a0a); border-radius: 0 var(--radius) var(--radius) 0; background: var(--g-soft, var(--bg-soft)); font-size: 14.5px; color: var(--muted); }
.aj-tip strong { color: var(--text); }

.aj-help a { text-decoration: underline; text-decoration-color: var(--g, #0a0a0a); text-underline-offset: 3px; }

.aj-team { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.aj-team li { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; }
.aj-team span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--g-soft, #f2f2f2); color: var(--g-dark, #2b2b2b); font-size: 14px; }
.aj-help { margin: 56px 0 20px; color: var(--muted); }

@media (max-width: 820px) {
  .aj-grid { grid-template-columns: 1fr; }
  .aj-card.wide { flex-direction: column; align-items: flex-start; gap: 18px; }
  .aj-card .btn { margin-left: 0; }
}

.aj-servers { font-size: 13px; color: var(--muted); }
.aj-servers strong { color: var(--text); font-weight: 650; }
.aj-servers[hidden], .aj-facts li[hidden] { display: none; }
