/* Styles propres à la page /asterix — n'affecte aucune autre page (tout est préfixé .ax-) */

.ax-layout { max-width: 720px; margin: 0 auto; }
.ax-card { padding: 36px; }

.ax-fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.ax-legend { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; padding: 0; }

/* Choix "Oui / Peut-être / Non" sous forme de pastilles */
.ax-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ax-choice { position: relative; }
.ax-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.ax-choice span {
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 52px; padding: 10px 12px;
    background: var(--white); border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--text);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ax-choice:hover span { border-color: var(--text); }
.ax-choice input:checked + span { background: var(--accent); border-color: var(--text); box-shadow: 0 0 0 3px rgba(255,237,0,.35); }
.ax-choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

/* Bloc "quand" : masqué si la réponse est "Non" (progressive enhancement, visible sans JS) */
.ax-when[hidden] { display: none; }
.ax-when { border-top: 1px solid var(--border-light); padding-top: 24px; margin-top: 4px; }

.ax-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.ax-required { color: #B91C1C; }

.ax-success { text-align: center; padding: 12px 0 4px; }
.ax-success h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.ax-success p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

/* ----- Page /asterix/review ----- */
.ax-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ax-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-filters a {
    padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border);
    background: var(--white); font-size: 13px; font-weight: 600;
}
.ax-filters a.active { background: var(--accent); border-color: var(--text); }
.ax-toolbar-actions { display: flex; gap: 8px; align-items: center; }
.ax-toolbar-actions form { display: inline; }

.ax-stats { grid-template-columns: repeat(5, 1fr); }
.ax-dates { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.ax-date-chip { padding: 12px 16px; border-radius: 12px; background: var(--surface); font-size: 13px; }
.ax-date-chip strong { display: block; font-size: 14px; }
.ax-comment { max-width: 280px; white-space: pre-wrap; word-break: break-word; color: var(--text-muted); }

.status-pill.ax-yes { background: #DCFCE7; color: #166534; }
.status-pill.ax-maybe { background: #FEF3C7; color: #92400E; }
.status-pill.ax-no { background: #FEE2E2; color: #991B1B; }

:root[data-theme="dark"] .ax-choice span,
:root[data-theme="dark"] .ax-filters a { background: #131C2E; color: var(--text); }
:root[data-theme="dark"] .ax-choice input:checked + span,
:root[data-theme="dark"] .ax-filters a.active { background: var(--accent); color: #001434; }
:root[data-theme="dark"] table.data-table tr:hover td { background: #131C2E; }

@media (max-width: 720px) {
    .ax-card { padding: 24px; }
    .ax-choices { grid-template-columns: 1fr; }
    .ax-form-grid-3 { grid-template-columns: 1fr; }
    .ax-stats { grid-template-columns: repeat(2, 1fr); }
}
