/* Le profil se lit d'abord ; les commandes s'ouvrent au moment d'éditer. */
.shell--settings{grid-template-columns:190px minmax(0,1fr)}
.shell--settings>.rightbar{display:none}
.profile-page,.settings-page{min-width:0}
.profile-tabs{display:flex;gap:5px;overflow-x:auto;max-width:100%;border-bottom:1px solid #e8ddd4;margin:0 0 27px;padding:0 3px;scrollbar-width:thin}
.profile-tabs [role=tab]{flex-shrink:0;padding:16px 21px;font:inherit;font-size:13px;font-weight:500;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#8b776a;cursor:pointer;white-space:nowrap}
.profile-tabs [aria-selected=true]{color:#b95632;border-bottom-color:#e8774f;background:linear-gradient(0deg,#fff0e6,transparent);font-weight:600}
.profile-tabs [role=tab]:hover{color:#aa5031;background:#fcf5ee}
.profile-tab-content{min-width:0;min-height:220px}
.profile-activity-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin:4px 0 25px}
.profile-activity-heading h2{font-size:30px;margin:0 0 9px}
.profile-activity-heading .profile-note{margin:0;max-width:65ch}
.profile-activity-heading>.secondary{flex-shrink:0;font-size:12px;padding:12px 18px;background:#fff;border:1px solid #e6d9cb}
.profile-activity-list{max-width:760px;margin:0 auto}
.profile-activity-post{overflow:hidden;margin-bottom:22px}
.profile-activity-post>header>div{flex:1;min-width:0}.profile-activity-post>header small{margin-top:5px;display:block}
.profile-activity-post .post-body{white-space:pre-wrap;overflow-wrap:anywhere}
.profile-own-comment{margin:0 20px 20px;padding:18px 21px;border-left:3px solid #e7a380;background:#fff7ef;border-radius:0 14px 14px 0}
.profile-own-comment>strong{font-size:12px;color:#ae6e4e}.profile-own-comment>p{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}
.profile-own-comment>button{font-size:11px;padding:0;color:#9a7864}
.profile-open-post{padding:14px 22px;font-size:12px}
.profile-load-more{display:block;margin:24px auto;font-size:13px}.profile-load-more[hidden]{display:none}
.profile-activity-empty{grid-column:1/-1;border:1px dashed #e5d6c7;border-radius:22px;padding:45px 26px;text-align:center;background:#fffdfa}
.profile-activity-empty>span{font-size:30px;color:#c37d54}.profile-activity-empty h3{font-size:24px;margin:17px 0 10px}.profile-activity-empty p{font-size:13px;line-height:1.7;color:#948273;max-width:40ch;margin:0 auto 22px}.profile-activity-empty button{font-size:12px}
.profile-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.profile-photo-tile{position:relative;display:block;aspect-ratio:1;border:0;border-radius:18px;padding:0;overflow:hidden;background:#f0e7df;cursor:pointer;text-align:left}
.profile-photo-tile>img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.profile-photo-tile:hover>img{transform:scale(1.03)}
.profile-photo-tile>span{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#241812b0);color:white;padding:30px 16px 16px;font:inherit;font-size:12px;line-height:1.5;overflow:hidden;max-height:95px;box-sizing:border-box}
@media(max-width:800px){.profile-tabs{gap:0;margin-bottom:24px}.profile-tabs [role=tab]{font-size:12px;padding:14px 16px}.profile-activity-heading{flex-wrap:wrap;gap:14px}.profile-activity-heading h2{font-size:27px}.profile-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-photo-tile{border-radius:13px}.profile-own-comment{margin:0 14px 16px;padding:15px}.profile-activity-empty{padding:34px 22px}}
@media(prefers-reduced-motion:reduce){.profile-photo-tile>img{transition:none}}
.profile-page .profile-hero{border-radius:24px;margin:0 0 22px;box-shadow:0 5px 24px #39251b03}
.profile-page .profile-cover{position:relative;display:flex;width:100%;height:205px;min-height:0;padding:20px 38px;border:0;border-radius:0;background:radial-gradient(ellipse at 8% 8%,#efb58970,transparent 55%),radial-gradient(ellipse at 95% 100%,#eac6d880,transparent 65%),#f8eee5;overflow:hidden}
.profile-page .profile-cover:not(.has-cover)>img{position:absolute;width:180px;height:180px;right:9%;top:12px;opacity:.11;transform:rotate(-13deg)}
.profile-page .profile-cover.has-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:1;transform:none}
.profile-cover-edit{position:absolute;bottom:18px;right:22px;display:block;background:#fffef8ed;border:1px solid #ffffffa0;border-radius:24px;padding:9px 15px;font-size:12px;color:#675149;box-shadow:0 3px 12px #55302408}
.profile-page .profile-identity{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:27px 32px 30px}
.profile-page .editable-avatar{position:relative;grid-column:1/-1;margin-top:-78px;width:105px;height:105px;padding:0;border:0;background:none;border-radius:50%;z-index:1}
.profile-page .editable-avatar>.avatar{width:105px;height:105px;border:5px solid white;box-shadow:0 3px 15px #3823190c;font-size:35px;background:#f4e6da;color:#965236}
.profile-avatar-edit{position:absolute;right:2px;bottom:2px;width:28px;height:28px;display:grid;place-items:center;border:3px solid white;border-radius:50%;background:#4b3730;color:white;font-size:17px;line-height:1}
.profile-identity-copy{min-width:0}
.profile-page .profile-identity .eyebrow{font-size:10px;letter-spacing:1.7px;color:#a47663;margin:0 0 8px}
.profile-page .profile-identity h1{font-family:Figtree,sans-serif;font-size:32px;line-height:1.2;margin:0 0 6px;letter-spacing:-.7px}
.profile-handle{margin:0;font-size:14px;color:#956c58;overflow-wrap:anywhere}
.profile-city{font-size:13px;color:#7e7168;margin:12px 0 0}
.profile-page .profile-bio{font-size:15px;line-height:1.7;max-width:60ch;margin:16px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;align-self:start;margin-top:6px}
.profile-hero-actions .secondary{font-size:13px;min-height:43px;padding:11px 22px;background:#fffbf7;border:1px solid #e4d5c8;border-radius:24px}
.profile-hero-actions .text-button{font-size:12px;padding:6px 0;color:#856758}
.profile-chat-invite{display:flex;align-items:center;gap:18px;padding:23px 26px;border:1px solid #eddcd1;border-radius:20px;background:linear-gradient(115deg,#fff9f2,#fffafa);margin-bottom:35px}
.profile-chat-invite>img{width:38px;height:42px;flex-shrink:0}
.profile-chat-invite>div{flex:1;min-width:0}
.profile-chat-invite h2{font-family:Figtree,sans-serif;font-size:18px;margin:0 0 7px;letter-spacing:-.25px}
.profile-chat-invite p{font-size:13px;line-height:1.6;color:#8a7567;margin:0;max-width:45ch}
.profile-chat-invite button{font-size:12px;padding:13px 20px;white-space:normal;max-width:205px;flex-shrink:0}
.profile-section-heading{margin:0 0 19px}
.profile-section-heading h2{font-size:28px;letter-spacing:-.4px;margin:0 0 8px}
.profile-section-heading p{font-size:13px;color:#8a7c72;margin:0}
.profile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.profile-detail-card{min-width:0;background:#fff;border:1px solid #eae2da;border-radius:20px;padding:23px 24px 18px;box-shadow:0 4px 16px #38201402}
.profile-detail-card>header{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.profile-detail-card h2{font-family:Figtree,sans-serif;font-size:16px;letter-spacing:-.2px;line-height:1.5;margin:0;flex:1}
.profile-section-mark{color:#bb7052;width:29px;height:29px;border-radius:9px;background:#fff5ee;display:grid;place-items:center;font-size:19px;flex-shrink:0}
.profile-detail-card>header button{font-size:12px;color:#927463;padding:5px}
.profile-detail-list{padding:0;list-style:none;margin:0}
.profile-detail-card .profile-fact{display:block;border-bottom:1px solid #f1ece7;padding:13px 0;margin:0}
.profile-detail-card .profile-fact[hidden]{display:none}
.profile-detail-card .profile-fact p{font-size:14px;line-height:1.65;color:#443a34;margin:0}
.profile-audience{display:inline-block;font-size:10px;letter-spacing:.15px;color:#96867b;margin-top:6px}
.profile-audience:before{content:'·';padding-right:5px;color:#bf9d89}
.profile-empty-copy{font-size:14px;line-height:1.75;color:#95877b;max-width:32ch;padding:8px 0 20px;margin:0}
.profile-add-button{border:0;background:transparent;color:#a36543;padding:16px 0 2px;font:inherit;font-size:12px;cursor:pointer;display:block;text-align:left}
.profile-show-more{font-size:12px;margin:10px 0 0;padding:0;color:#8c6b56}
.profile-footnote{font-size:12px;color:#a18d7c;margin:24px 0 20px;line-height:1.8}
.profile-footnote button{font-size:12px;padding:0;color:#8b604d}
.profile-note{font-size:13px;line-height:1.7;color:#887b71;margin:0 0 22px}
.form-feedback{font-size:13px;line-height:1.6;color:#915336;margin:0;overflow-wrap:anywhere}
.form-feedback:empty{display:none}
.profile-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;border:1px solid #e9d9cb;border-radius:24px;padding:28px;background:#fffdfb;color:var(--ink);box-shadow:0 24px 100px #38211525;overflow:auto}
.profile-dialog::backdrop{background:#2d211d66;backdrop-filter:blur(5px)}
.profile-dialog>header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}
.profile-dialog h2{font-size:29px;margin:0;line-height:1.25}
.dialog-close{font-size:24px;line-height:1;padding:4px;width:34px;height:34px;border:0;border-radius:50%;background:#f6f0ea;color:#806a5a;cursor:pointer;flex-shrink:0}
.profile-form{display:flex;flex-direction:column;gap:20px;margin:0;padding:0}
.profile-form label{display:grid;gap:9px;font-size:13px;color:#66564b;margin:0}
.profile-form input:not([type=checkbox]),.profile-form textarea{width:100%;border:1px solid #e5dcd3;border-radius:12px;font:inherit;font-size:14px;padding:12px 14px;background:#fff;color:var(--ink);box-sizing:border-box;margin:0}
.profile-form textarea{min-height:100px;resize:vertical;line-height:1.7}
.profile-form .profile-note{margin:0;font-size:12px}
.profile-form>button{align-self:flex-start;font-size:13px}
.profile-form footer,.profile-dialog>footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:9px}
.profile-form footer button,.profile-dialog>footer button{font-size:13px;padding:12px 22px}
.profile-photo-actions{display:flex;gap:9px;flex-wrap:wrap;padding-bottom:19px;border-bottom:1px solid #eee5dc}
.profile-photo-actions button{font-size:12px;padding:10px 14px}
.profile-edit-item{padding:16px 0;border-top:1px solid #ede4db}
.profile-edit-item>p{font-size:14px;line-height:1.6;margin:0 0 12px;overflow-wrap:anywhere}
.profile-edit-actions{display:flex;gap:15px;align-items:center;justify-content:space-between}
.profile-edit-actions .setting-switch{border:0;padding:0;flex:1;flex-direction:row-reverse;justify-content:flex-end;gap:10px}
.profile-edit-actions .setting-switch strong{font-size:11px;font-weight:400}
.profile-edit-actions .setting-switch small:empty{display:none}
.profile-edit-actions .text-button{font-size:11px;color:#957664}
.profile-add-form{padding-top:20px;border-top:1px solid #e9ddd2;margin-top:12px}
.profile-reuse{margin-top:20px}.profile-reuse summary{font-size:12px;cursor:pointer;color:#886953}
.settings-heading{margin:4px 0 28px}.settings-heading .eyebrow{font-size:10px;margin-bottom:9px;color:#a57c64}
.settings-heading h1{font-size:38px;margin:0 0 9px;letter-spacing:-.7px}.settings-heading>p:last-child{font-size:14px;color:#8f7e70;margin:0}
.settings-workspace{display:grid;grid-template-columns:177px minmax(0,1fr);gap:25px;align-items:start}
.settings-nav{display:grid;gap:6px;position:sticky;top:108px}
.settings-nav-item{display:flex;align-items:center;gap:12px;text-align:left;min-height:48px;border:1px solid transparent;background:transparent;border-radius:13px;font:inherit;font-size:13px;color:#87715f;padding:12px 15px;cursor:pointer}
.settings-nav-item>span{font-size:19px;width:23px;text-align:center}
.settings-nav-item[aria-current=page]{background:#fff3e9;border-color:#f0dccb;color:#b05228;font-weight:600}
.settings-content{background:#fff;border:1px solid #e9e0d6;padding:31px;border-radius:22px;min-width:0;min-height:390px}
.settings-content>h2{font-size:28px;margin:0 0 11px}.settings-content h3{font-family:Figtree,sans-serif;font-size:15px;margin:0 0 9px}
.settings-identity{display:flex;align-items:center;gap:16px;padding:15px 0 22px}.settings-identity>.avatar{width:56px;height:56px;font-size:22px}
.settings-identity>div{display:grid;gap:6px}.settings-identity strong{font-size:16px}.settings-identity span:not(.avatar){font-size:13px;color:#967961}
.settings-details{display:grid;grid-template-columns:105px minmax(0,1fr);gap:17px;margin:0 0 28px;font-size:13px;line-height:1.5}.settings-details dt{color:#968573}.settings-details dd{margin:0;overflow-wrap:anywhere}
.settings-content>.secondary{font-size:12px;margin-bottom:17px;padding:12px 17px}.settings-signout{border-top:1px solid #eee6df;padding-top:20px;margin-top:28px}.settings-signout button{font-size:13px;color:#967258;padding:0}
.setting-switch{display:flex!important;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid #eee5dc;cursor:pointer}
.setting-switch>span{display:grid;gap:7px;flex:1;min-width:0}.setting-switch strong{font-size:14px;color:#4c4037;line-height:1.5}.setting-switch small{font-size:12px;line-height:1.6;color:#99836f}
.setting-switch input[type=checkbox]{appearance:none;position:relative;flex-shrink:0;width:38px;height:23px;border-radius:20px;border:1px solid #dccfc3;background:#e8dfd6;margin:0;cursor:pointer;transition:background .15s}
.setting-switch input[type=checkbox]:before{content:'';position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #55341e17;transition:transform .15s}
.setting-switch input:checked{background:#cf6236;border-color:#cf6236}.setting-switch input:checked:before{transform:translateX(15px)}
.setting-switch input:focus-visible{outline:2px solid #984424;outline-offset:3px}
.settings-info{padding:24px 0;border-top:1px solid #eee5dc;margin-top:24px}.settings-info .profile-note{margin-bottom:12px}.settings-info button{font-size:12px;padding:0;color:#9a6647}.settings-info .secondary{padding:11px 16px}
.settings-danger{margin-top:14px;padding-top:27px;border-top:1px solid #f0dfd4}.settings-danger .text-button{color:#ac493f;font-size:12px;padding:0}.settings-danger .profile-note{margin-bottom:15px}
.delete-confirm{display:flex!important;align-items:flex-start;gap:10px!important;line-height:1.7}.delete-confirm input{width:17px;height:17px;margin:3px 0 0;accent-color:#ba5035}
.account-menu{width:300px;max-width:calc(100vw - 32px);padding:10px;border-radius:20px;box-sizing:border-box}
.account-identity{display:flex;align-items:center;gap:13px;border:0;border-bottom:1px solid #eee4da;width:100%;padding:15px 12px 20px;background:none;text-align:left;color:inherit;cursor:pointer;font:inherit;border-radius:10px 10px 0 0}
.account-identity>.avatar{height:46px;width:46px;font-size:19px;flex-shrink:0}.account-identity>span:not(.avatar){display:grid;gap:5px;min-width:0}.account-identity strong{font-size:14px;overflow-wrap:anywhere}.account-identity small{font-size:12px;color:#9b7c67}.account-identity span>span{font-size:11px;color:#b16743}
.account-menu-link{display:flex;align-items:center;gap:12px;width:100%;padding:15px 12px;border:0;border-radius:10px;font:inherit;font-size:13px;color:#695244;background:transparent;cursor:pointer;text-align:left;margin-top:6px}.account-menu-link>span:nth-child(2){flex:1}.account-menu-link svg{width:19px;height:19px}.account-menu-link:hover,.account-signout:hover{background:#fcf4ec}
.account-signout{display:block;width:100%;text-align:left;border:0;border-radius:10px;background:none;font:inherit;font-size:12px;padding:14px;color:#947965;cursor:pointer}
.profile-page button:focus-visible,.settings-page button:focus-visible,.profile-dialog button:focus-visible,.account-menu button:focus-visible{outline:2px solid #b46b3e;outline-offset:3px}
@media(max-width:1050px){.profile-detail-grid{grid-template-columns:1fr}.profile-chat-invite{flex-wrap:wrap}.profile-chat-invite button{margin-left:56px}.settings-workspace{grid-template-columns:150px minmax(0,1fr);gap:15px}.settings-content{padding:24px}}
@media(max-width:800px){.shell--settings{display:block;padding:22px 14px 110px}.shell--settings>.sidebar{display:none}.profile-page .profile-cover{height:155px;padding:16px}.profile-cover-edit{right:14px;bottom:14px;padding:8px 12px;font-size:11px}.profile-page .profile-identity{padding:22px;gap:15px;grid-template-columns:1fr}.profile-page .editable-avatar{width:88px;height:88px;margin-top:-66px}.profile-page .editable-avatar>.avatar{width:88px;height:88px;font-size:29px}.profile-page .profile-identity h1{font-size:27px}.profile-hero-actions{flex-direction:row;align-items:center;justify-content:space-between;margin:4px 0 0;gap:16px}.profile-hero-actions .secondary{padding:10px 19px}.profile-chat-invite{padding:21px;gap:14px;margin-bottom:29px}.profile-chat-invite p{font-size:12px}.profile-chat-invite button{margin-left:0;width:100%;max-width:none}.profile-chat-invite>div{flex-basis:calc(100% - 60px)}.profile-section-heading h2{font-size:26px}.profile-section-heading p{font-size:12px;line-height:1.6}.profile-detail-grid{gap:15px}.profile-detail-card{padding:21px}.profile-dialog{padding:23px;max-height:calc(100dvh - 24px);border-radius:21px}.profile-dialog h2{font-size:26px}.settings-heading h1{font-size:32px}.settings-workspace{display:block}.settings-nav{position:static;display:flex;gap:5px;overflow-x:auto;margin:0 0 19px;padding-bottom:4px}.settings-nav-item{padding:11px 13px;white-space:nowrap;font-size:12px;gap:6px;min-height:43px}.settings-nav-item>span{display:none}.settings-content{padding:24px 21px;min-height:0}.settings-content>h2{font-size:26px}.account-menu{right:16px;top:78px}.profile-photo-actions button{flex:1}.profile-form footer button{padding:12px 16px}}
@media(prefers-reduced-motion:reduce){.setting-switch input,.setting-switch input:before{transition:none}}
@media(max-width:800px){.shell--profile,.shell--settings{padding-bottom:170px}}
/* Messages reste accessible dans la navigation, sans fenêtre devant le profil. */
@media(max-width:800px){body:has(.profile-page)>.message-launcher,body:has(.settings-page)>.message-launcher,body:has(.profile-page)>.chat-dock,body:has(.settings-page)>.chat-dock{display:none}}
