/* Composants et palette partagés de l’application Pink Rockets. */
:root {
  --rose: #d93f85; --rose-action: #be2e70; --rose-pale: #fcedf4;
  --marine: #16243e; --marine-clair: #24365c; --marine-doux: #65718a;
  --trait: #e5e7ef; --vert: #08734f; --ambre: #976018;
  --fond: #f5f6fa; --blanc: #fff; --rayon: 18px; --largeur: 1080px;
}
* { box-sizing: border-box; }
body.pinks { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--marine); background: var(--fond); line-height: 1.55; font-size: 15px; }
body.pinks :is(button,input,select,textarea) { font: inherit; }
body.pinks a { color: inherit; }
body.pinks img { max-width: 100%; height: auto; }
body.pinks :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
body.pinks :is(button,a,input,summary) { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.app-shell { max-width: var(--largeur); padding: 0 28px; margin: auto; min-height: calc(100vh - 94px); display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 28px 0 52px; min-width: 0; }
.main-content:focus { outline: 0; }
.page-heading { margin-bottom: 28px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; color: var(--rose-action); margin: 0 0 8px; }
.pinks h1 { margin: 0 0 8px; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; letter-spacing: -.045em; font-weight: 800; }
.pinks h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 12px; }
.pinks h3 { font-size: 16px; line-height: 1.4; margin: 0 0 6px; }
.pinks p { margin-top: 0; }
.pinks .lead { font-size: 15px; color: var(--marine-doux); max-width: 620px; margin: 0; }
.muted, .hint { color: var(--marine-doux); }
.hint { font-size: 12px; margin: 10px 0 0; }
.card { padding: 24px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--blanc); }
.card + .card { margin-top: 16px; }
.card p:last-child { margin-bottom: 0; }
.card-accent { border-top: 3px solid var(--rose); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-title h2 { margin: 0; }
.stack { display: grid; gap: 16px; }
.stack > .card { margin-top: 0; }
.columns { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr); gap: 24px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 11px; border: 1px solid transparent; background: var(--rose-action); color: white !important; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; min-height: 44px; line-height: 1.35; }
.button:hover { background: #a1265e; }
.button.secondary { background: white; border-color: var(--trait); color: var(--marine) !important; }
.button.secondary:hover { border-color: var(--rose); }
.button.full { width: 100%; }
.button.small { padding: 9px 12px; font-size: 12px; }
.button:disabled { background: #e4e6ee; color: #757d91 !important; cursor: not-allowed; }
.text-link { font-weight: 700; text-decoration-color: #dcb1c5; text-underline-offset: 4px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--marine-doux) !important; text-decoration: none; font-size: 13px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 30px; background: var(--rose-pale); color: var(--rose-action); font-size: 11px; font-weight: 750; white-space: nowrap; }
.chip.green { background: #e6f4ee; color: var(--vert); }
.chip.amber { background: #fff3dc; color: var(--ambre); }
.chip.neutral { background: #edf0f6; color: var(--marine-doux); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; flex: 0 0 auto; background: var(--rose-pale); color: var(--rose-action); font-weight: 800; border-radius: 13px; font-size: 13px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person > div { min-width: 0; }
.person small { display: block; color: var(--marine-doux); font-size: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.row:last-child { border-bottom: 0; }
.field { margin-bottom: 18px; }
.field label, .field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field :is(input,select,textarea) { width: 100%; padding: 12px; border: 1px solid #d5d9e4; border-radius: 10px; color: var(--marine); background: white; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; }
.check input { accent-color: var(--rose-action); width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; }
.subnav, .tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 24px; padding: 5px; background: #eaeef5; border-radius: 12px; }
.subnav a, .tabs button { background: transparent; color: var(--marine-doux); border: 0; text-decoration: none; padding: 10px 14px; border-radius: 9px; white-space: nowrap; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 40px; }
.subnav a[aria-current], .tabs button[aria-selected="true"] { background: white; color: var(--marine); box-shadow: 0 2px 6px #16243e08; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.stat { background: white; border: 1px solid var(--trait); border-radius: 14px; padding: 17px; }
.stat b { display: block; font-size: 30px; line-height: 1.15; letter-spacing: -.03em; }
.stat span { display: block; color: var(--marine-doux); margin-top: 5px; font-size: 12px; }
.recap { margin: 0; }
.recap > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--trait); }
.recap > div:last-child { border-bottom: 0; }
.recap dt { color: var(--marine-doux); font-size: 13px; }
.recap dd { text-align: right; margin: 0; font-size: 14px; font-weight: 700; }
.empty { text-align: center; padding: 32px 20px; border: 1px dashed #cbd0de; border-radius: var(--rayon); color: var(--marine-doux); }
.pinks details.reveal { border-bottom: 1px solid var(--trait); padding: 14px 0; }
.reveal > summary { font-weight: 700; cursor: pointer; }
.reveal > p { margin-top: 13px; color: var(--marine-doux); }
.editor-content { margin-top: 28px; padding: 24px; background: white; border: 1px solid var(--trait); border-radius: var(--rayon); overflow-wrap: anywhere; }
.editor-content > :last-child { margin-bottom: 0; }
.skip-link { position: absolute; left: 12px; top: -100px; background: white; color: var(--marine); padding: 12px; z-index: 200; }
.skip-link:focus { top: 10px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .app-shell { padding: 0 18px; }
  .main-content { padding: 23px 0 32px; }
  .columns, .grid-3 { grid-template-columns: 1fr; }
  .columns { gap: 18px; }
  .card { padding: 20px; }
  .page-heading { margin-bottom: 22px; }
  .stats { gap: 8px; }
  .stat { padding: 13px 10px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 11px; }
  .row { gap: 9px; }
}
@media (max-width: 380px) { .grid-2 { grid-template-columns: 1fr; } .app-shell { padding-inline: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Application réelle : messages, formulaires et états de données. */
.app-notice { margin: 0 0 22px; padding: 13px 15px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; }
.app-notice.success { border-color: #b9dfd1; background: #eef9f5; color: var(--vert); }
.app-notice.error { border-color: #efc2d5; background: #fff2f7; color: #8f2255; }
.inline-form { display: inline-flex; margin: 0; }
.button.danger { background: #fff; border-color: #e8b9ca; color: #9f2459 !important; }
.button.danger:hover { background: #fff0f5; }
.data-list { display: grid; gap: 12px; }
.data-card { border: 1px solid var(--trait); border-radius: 14px; padding: 17px; background: #fff; }
.data-card h3 { margin-bottom: 3px; }
.data-card .meta { color: var(--marine-doux); font-size: 12px; }
.form-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--trait); }
.field-help { color: var(--marine-doux); font-size: 12px; }
.check-grid { display: grid; gap: 9px; margin-bottom: 18px; }
.check-grid .check { margin: 0; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.empty-state { padding: 34px 24px; border: 1px dashed #cbd0de; border-radius: var(--rayon); text-align: center; color: var(--marine-doux); background: #fff; }
.medical-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.compact-form .field { margin-bottom: 12px; }
.compact-form textarea { min-height: 82px; }
@media (max-width: 720px) { .app-notice { margin-bottom: 18px; } }
