/* Pages publiques d'accès (connexion de secours, inscription, mot de passe oublié, invitation, activation) :
   même DA que le CRM (src/pp/pp.css) : typo Apple, fond #f5f5f7, carte blanche arrondie, boutons secondaires blancs bordés, UN bouton primaire bleu. */
:root{--ink:#1d1d1f;--ink2:#3a3a3f;--muted:#6e6e73;--line:#e6e6ea;--field:#d9d9de;--bg:#f5f5f7;--accent:#0071e3;--accent-ink:#0060c7;--accent-soft:#eef5ff;--ok:#1d7532;--ok-soft:#e5f5e9;--warn:#a14a05;--warn-soft:#fff1e0;--danger:#b42318;--danger-soft:#fdecec;--shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04)}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font:14px/1.4 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Helvetica,sans-serif}
a{color:#0066cc;text-decoration:none}a:hover{color:#004f9e;text-decoration:underline}
:focus-visible{outline:3px solid rgba(0,113,227,.35);outline-offset:1px}
.ap-wrap{max-width:420px;margin:0 auto;padding:max(24px,8vh) 16px 24px}
.ap-wrap.wide{max-width:560px}
.ap-card{display:flex;flex-direction:column;gap:16px;background:#fff;border-radius:22px;padding:32px;box-shadow:var(--shadow)}
.ap-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.ap-brand:hover{text-decoration:none;color:var(--ink)}
.ap-brand img{width:44px;height:44px;border-radius:12px;flex:none}
.ap-brand strong{display:block;font-size:16px;letter-spacing:-.02em;line-height:1.2}
.ap-brand small{display:block;color:var(--muted);font-size:12px}
.ap-card main{display:flex;flex-direction:column;gap:16px}
.ap-card section{display:flex;flex-direction:column;gap:16px}
.ap-card section[hidden]{display:none}
.ap-card h1{margin:0;font-size:24px;line-height:1.2;font-weight:700;letter-spacing:-.025em}
.ap-card p{margin:0}
.ap-muted{color:var(--muted);font-size:14.5px;line-height:1.5}
.ap-ico{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:none}
.ap-ico::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.ap-ico[data-i=check]{background:var(--ok-soft);color:var(--ok)}
.ap-ico[data-i=warn]{background:var(--warn-soft);color:var(--warn)}
form{display:flex;flex-direction:column;gap:14px;margin:0}
label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}
input[type=text],input[type=email],input[type=password],input:not([type]){width:100%;height:44px;font:inherit;font-size:15px;font-weight:400;padding:0 12px;border:1px solid var(--field);border-radius:10px;background:#fff;color:var(--ink)}
input:focus{outline:3px solid rgba(0,113,227,.25);border-color:var(--accent)}
.ap-pw{position:relative;display:block}.ap-pw input{padding-right:88px}
.ap-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:32px;border:1px solid var(--field);background:#fff;color:var(--ink2);font-family:inherit;font-size:12.5px;font-weight:500;padding:0 10px;border-radius:8px;cursor:pointer}
.ap-eye:hover{background:#f5f5f7}
.ap-hint{font-weight:400;color:var(--muted);font-size:12.5px}
.ap-plans{border:0;margin:2px 0 0;padding:0;display:grid;gap:8px;min-width:0}
.ap-plans legend{font-weight:600;font-size:13px;margin:0 0 8px;padding:0}.ap-plans legend small{font-weight:400;color:var(--muted)}
.ap-plan{display:flex;flex-direction:row;gap:12px;align-items:flex-start;border:1px solid var(--field);border-radius:12px;padding:12px 14px;cursor:pointer;font-weight:400;font-size:14px;background:#fff}
.ap-plan:hover{background:#fafafc}
.ap-plan:has(input:checked){border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent) inset}
.ap-plan input{margin-top:3px;accent-color:var(--accent);width:auto;height:auto}
.ap-plan span{display:grid;grid-template-columns:1fr auto;gap:2px 10px;width:100%}
.ap-plan strong{font-size:15px;font-weight:600}.ap-plan em{font-style:normal;font-weight:600;color:var(--accent-ink);font-size:13.5px;text-align:right;white-space:nowrap}
.ap-plan small{grid-column:1/-1;color:var(--muted);font-size:12.5px}
.ap-check{flex-direction:row;gap:10px;align-items:flex-start;font-weight:400;font-size:13px;line-height:1.45;color:var(--ink2)}
.ap-check input{margin-top:2px;width:17px;height:17px;flex:none;accent-color:var(--accent)}
.ap-trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.ap-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;width:100%;height:48px;padding:0 22px;border:1px solid var(--accent);border-radius:13px;background:var(--accent);color:#fff;font-family:inherit;font-size:15.5px;font-weight:600;line-height:1;cursor:pointer;text-decoration:none}
.ap-btn:hover{background:#0068d1;color:#fff;text-decoration:none}.ap-btn:disabled{opacity:.55;cursor:wait}
.ap-btn.ghost{background:#fff;border-color:var(--field);color:var(--ink);font-weight:500}.ap-btn.ghost:hover{background:#f5f5f7;color:var(--ink)}
.ap-err{margin:0;padding:10px 12px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:13.5px;line-height:1.4}
.ap-note{margin:0;padding:10px 12px;border-radius:10px;background:var(--accent-soft);color:var(--ink2);font-size:13.5px;line-height:1.45}
.ap-alt{text-align:center;margin:0;color:var(--muted);font-size:13.5px}
.ap-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin:18px 0 0;font-size:12.5px}
.ap-foot a{color:var(--muted);text-decoration:none}.ap-foot a:hover{color:#0066cc;text-decoration:underline}
[hidden]{display:none!important}
@media (max-width:480px){.ap-wrap{padding:20px 12px}.ap-card{padding:24px 20px;border-radius:20px}.ap-card h1{font-size:22px}input[type=text],input[type=email],input[type=password],input:not([type]){font-size:16px}}
#message:empty{display:none}
/* Icônes de section : masque SVG au trait (jamais d'emoji). */
.ap-ico[data-i=key]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='m10.7 12.3 9.8-9.8M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='m10.7 12.3 9.8-9.8M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E")}
.ap-ico[data-i=mail]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E")}
.ap-ico[data-i=lock]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
.ap-ico[data-i=clock]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.ap-ico[data-i=check]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 3 3 5-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 3 3 5-6'/%3E%3C/svg%3E")}
.ap-ico[data-i=warn]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3z'/%3E%3Cpath d='M12 10v4M12 17.5v.01'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3z'/%3E%3Cpath d='M12 10v4M12 17.5v.01'/%3E%3C/svg%3E")}
.ap-ico[data-i=calendar]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M3 9h18M8 2v4M16 2v4'/%3E%3C/svg%3E")}
.ap-ico[data-i=pen]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E")}
.ap-ico[data-i=bell]::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E")}

