:root { --marine: #1f3864; --rose: #c03969; --encre: #14161a; --gris: #5a6170; --fond: #f4f6f9; --carte: #fff; --trait: #d6dbe3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.mast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); background: var(--carte); border-bottom: 3px solid var(--marine); }
.logo { width: 44px; height: 44px; }
.mast-t { font-weight: 700; color: var(--marine); }
.mast-s { color: var(--gris); font-size: 14px; }
main { max-width: 640px; margin: 0 auto; padding: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
h1 { font-size: 20px; color: var(--marine); margin: 18px 0 10px; }
.aide { color: var(--gris); font-size: 14px; }
.etiq { display: block; font-weight: 600; margin: 14px 0 6px; }
.oblig { color: var(--rose); }
input[type=text] { width: 100%; font-size: 17px; padding: 12px; border: 1px solid var(--trait); border-radius: 10px; background: #fff; }
.pad { background: #fff; border: 1px dashed var(--gris); border-radius: 10px; height: 170px; }
.pad canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.ligne-btn { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn { font-size: 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--marine); cursor: pointer; }
.btn-p { background: var(--marine); color: #fff; flex: 1; }
.btn-s { background: #fff; color: var(--marine); }
.note.rouge { background: #fdecef; color: #8a1538; padding: 10px 12px; border-radius: 10px; }
.carte { display: block; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.profil img { display: block; max-width: 100%; max-height: 64px; margin: 8px 0; }
.nom { font-weight: 700; font-size: 17px; color: var(--encre); }
.lien { text-decoration: none; color: inherit; border-left: 5px solid var(--marine); }
.lien:active { background: #eef2f8; }
[hidden] { display: none !important; }
