@import url("../typography-tokens.css?v=type2");
@font-face{font-family:Orbitron;src:url('../../assets/fonts/orbitron.ttf') format('truetype');font-weight:400 900;font-display:swap}
.matheo-signature{--signature-color:#087f91;display:flex;flex-direction:column;align-items:center;gap:12px;width:fit-content;max-width:100%;padding:16px 20px;border-radius:20px;background:linear-gradient(145deg,#e8f4fa,#d4e7f0);color:#102b46;box-sizing:border-box}
.matheo-signature-ring{position:relative;display:grid;place-items:center;width:84px;height:84px;flex:none;border:3px solid var(--signature-color);border-radius:50%;background:#081a31;box-shadow:0 0 0 5px #ffffff80,0 0 15px color-mix(in srgb,var(--signature-color) 28%,transparent)}
.matheo-signature-ring:after{content:'✦';position:absolute;right:-7px;top:0;font-size:22px;color:var(--signature-color);text-shadow:0 0 3px white}
.matheo-signature-portrait{position:relative;display:block;width:84px;height:84px;overflow:hidden;border-radius:50%}
.matheo-signature-ring .matheo-signature-portrait img{position:absolute;left:50%;top:var(--portrait-top,-8px);width:var(--portrait-width,126px)!important;height:var(--portrait-height,158px)!important;max-width:none!important;object-fit:contain;object-position:top center;border-radius:0;transform:translateX(-50%)}
.matheo-signature-name{font-family:Orbitron,sans-serif!important;font-size:clamp(15px,2vw,20px)!important;font-weight:600!important;letter-spacing:.08em;line-height:1.5;text-align:center;color:var(--signature-color)!important;overflow-wrap:anywhere;max-width:100%}
.matheo-signature-colors{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.matheo-signature-colors button{display:block!important;position:relative;min-width:32px!important;width:32px!important;min-height:32px!important;height:32px!important;padding:5px!important;margin:0!important;border:2px solid transparent!important;border-radius:50%!important;background:var(--swatch)!important;background-clip:content-box!important;box-shadow:none!important;cursor:pointer}
.matheo-signature-colors button[aria-pressed=true]{border-color:#17354b!important}
.matheo-signature-colors button[aria-pressed=true]:after{content:'✓';position:absolute;inset:3px;color:white;font:700 var(--matheo-type-action)/22px sans-serif}
.matheo-signature-colors button:focus-visible{outline:3px solid #17354b;outline-offset:2px}
.family-signature-host>.family-picker-avatar,.family-signature-host>.family-single-name,.family-signature-host>strong{display:none!important}
.journal-profile-card[data-signature-profile]>.journal-avatar-shell,.journal-profile-card[data-signature-profile]>div:not(.matheo-signature){display:none!important}

/* Preserve the existing blue identity banners; no separate pale card in the app. */
.matheo-signature-dark{background:transparent;padding:0;flex-direction:row;gap:20px;box-shadow:none}
.matheo-signature-dark .matheo-signature-name{color:color-mix(in srgb,var(--signature-color) 45%,white)!important;text-align:left}
.matheo-signature-dark .matheo-signature-ring{border-color:color-mix(in srgb,var(--signature-color) 45%,white)}
.learner-identity[data-signature-profile]>.learner-avatar,.learner-identity[data-signature-profile]>div:not(.matheo-signature){display:none!important}
[data-signature-editor] .matheo-signature{flex-direction:column;margin:18px auto}
.journal-profile-card>.matheo-signature{margin-right:auto}
@media(max-width:480px){.matheo-signature-dark{gap:12px}.matheo-signature-dark .matheo-signature-name{font-size:15px!important}}


/* Preserve the information of each existing identity banner. */
.matheo-signature-copy{min-width:0}.matheo-signature-caption{display:block;color:#79dcff;font:900 .7rem/1.4 Nunito,sans-serif;letter-spacing:.1em;text-transform:uppercase}.matheo-signature-specialty{display:block;color:#cce5f6;font:400 .85rem/1.4 Nunito,sans-serif;margin-top:3px}
.learner-header .matheo-signature{gap:12px}.learner-header .matheo-signature-ring{width:var(--matheo-path-avatar-size,68px);height:var(--matheo-path-avatar-size,68px);box-sizing:border-box;overflow:visible;box-shadow:0 0 0 3px #ffffff80,0 0 11px color-mix(in srgb,var(--signature-color) 28%,transparent)}.learner-header .matheo-signature-portrait{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--matheo-portrait-reference-scale,.738095))}.learner-header .matheo-signature-name{font-size:18px!important;letter-spacing:.04em}.learner-header .matheo-signature-ring:after{display:block;right:-5px;font-size:16px}
@media(max-width:590px){.learner-header .matheo-signature-name{font-size:15px!important}}

.journal-profile-card{--matheo-path-avatar-size:68px}.journal-profile-card .matheo-signature-ring{width:var(--matheo-path-avatar-size);height:var(--matheo-path-avatar-size);box-sizing:border-box;overflow:visible;box-shadow:0 0 0 3px #ffffff80,0 0 11px color-mix(in srgb,var(--signature-color) 28%,transparent)}.journal-profile-card .matheo-signature-portrait{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--matheo-portrait-reference-scale,.738095))}.journal-profile-card .matheo-signature-ring:after{display:block;right:-5px;font-size:16px}@media(max-width:590px){.journal-profile-card{--matheo-path-avatar-size:60px}}

@media(max-width:590px){.learner-header,.journal-profile-card{--matheo-portrait-reference-scale:.642857}}

/* Avatar du parcours et du carnet : dimensions des commandes O77 (68/60). */
.learner-header,.journal-profile-card{--matheo-path-avatar-size:68px;--matheo-portrait-reference-scale:.738095}
@media(max-width:590px){.learner-header,.journal-profile-card{--matheo-path-avatar-size:60px;--matheo-portrait-reference-scale:.642857}}
.learner-header .matheo-signature-ring:after,.journal-profile-card .matheo-signature-ring:after{right:-5px;top:0;color:var(--signature-color)}

.learner-identity[data-signature-profile] .matheo-signature-ring{display:grid}
.learner-identity[data-signature-profile] .matheo-signature-specialty{display:block}

/* Repère bleu positionné sur le contour, comme sur la référence SAM DÉMO. */
:is(.learner-header,.journal-profile-card,[data-signature-editor]) .matheo-signature-ring:after{left:calc(85.355% + 5px);top:calc(14.645% - 5px);right:auto;bottom:auto;transform:translate(-50%,-50%);width:1em;height:1em;line-height:1;display:grid;place-items:center;color:var(--signature-color)}



