/* Douceurs & Maison — administration et activation, version claire du 16/10/2026. */
:root{--dm-rose:#ad7189;--dm-rose-dark:#85536c;--dm-cream:#fffaf7;--dm-ivory:#fffefa;--dm-ink:#493d43;--dm-line:#eedee1;}
body.mr-admin{background:linear-gradient(140deg,#fffaf8,#f8efed 70%,#fffaf6)!important;color:var(--dm-ink)!important}
body.mr-admin header{background:rgba(255,253,251,.97)!important;border-color:#f0e1e1!important;box-shadow:0 4px 24px #b88a9412!important}
body.mr-admin header .brand{gap:16px!important;align-items:center!important}
body.mr-admin .dm-header-logo-link{display:inline-flex;align-items:center;flex-shrink:0;text-decoration:none}
body.mr-admin header .brand .dm-header-logo{display:block;width:clamp(180px,18vw,250px)!important;height:auto!important;max-height:84px!important;object-fit:contain!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
body.mr-admin header .brand h1{font:600 clamp(16px,1.6vw,21px)/1.2 Georgia,serif!important;color:#79516a!important}
body.mr-admin header .brand p{color:#8c7c83!important}
body.mr-admin .btn.light{border:1px solid #ead7dc!important;color:#85536c!important;background:#fffaf8!important}
body.mr-admin .btn.gold{background:linear-gradient(130deg,#a96f86,#c58ca2)!important;border-color:#a96f86!important;color:#fff!important}
body.mr-admin .shell{max-width:1580px!important;gap:22px!important}
body.mr-admin .nav{background:linear-gradient(165deg,#fff7f5,#f7e9e8)!important;border:1px solid #f0dcdf!important;box-shadow:0 16px 40px #9f78851b!important}
body.mr-admin .nav:before{color:#b28192!important}
body.mr-admin .nav-groups{border-bottom-color:#e8d2d7!important}
body.mr-admin .nav-group{color:#805c6a!important;border-color:#ead8dd!important;background:#fff9f9!important}
body.mr-admin .nav-group.active{color:#fff!important;background:#a96f86!important;border-color:#a96f86!important}
body.mr-admin .tab{color:#715564!important}
body.mr-admin .tab:hover{background:#f1dfe3!important;color:#6c3d56!important}
body.mr-admin .tab.active{background:linear-gradient(135deg,#ad7189,#c995a6)!important;color:#fff!important;box-shadow:0 8px 20px #ad71892b!important}
body.mr-admin .terrain-direct-link{background:#fffaf9!important;color:#85536c!important;border:1px solid #e7ced5!important}
body.mr-admin .card{background:#fffefd!important;border-color:#f0e4e5!important;box-shadow:0 10px 30px #8c65760d!important}
body.mr-admin .metric{background:linear-gradient(145deg,#fffefd,#fff9f7)!important}
body.mr-admin .metric:after{background:#eecfd955!important}
body.mr-admin .metric strong{color:#85536c!important}
body.mr-admin .metric span{color:#85717a!important}
body.mr-admin .card h2,body.mr-admin .card h3,body.mr-admin .section>h2:first-child{color:#79516a!important}
body.mr-admin th{background:#fff8f7!important;color:#805e6c!important}
body.mr-admin .admin-welcome{min-height:205px!important;display:flex!important;align-items:center!important;position:relative!important;overflow:hidden!important;background:linear-gradient(90deg,#fffaf8 0%,#fffaf8 38%,#fffaf8c7 64%,#fffaf800 100%),url('img/entretien-domicile.webp') right center/auto 100% no-repeat,#fffaf8!important;border-radius:24px!important;padding:30px!important}
body.mr-admin .admin-welcome>div{position:relative;z-index:1;max-width:70%}
body.mr-admin .admin-welcome h2{font:600 clamp(30px,3.3vw,50px)/1.1 Georgia,serif!important;color:#6e4258!important;margin:10px 0!important}
body.mr-admin .admin-welcome .eyebrow{color:#a86f84!important;text-transform:uppercase!important;letter-spacing:.16em!important;font-weight:800!important;font-size:11px!important}
body.mr-admin .admin-welcome .muted{font-size:14px!important;color:#685760!important}
body.mr-admin .dm-welcome-decoration{display:none}
body.mr-admin .notice{background:#fff6f1!important;border-color:#efded4!important;color:#735b55!important}
body.mr-admin .toolbar{background:#fffdfb!important;border-color:#f0e4e5!important}
body.mr-admin .field label{color:#765e69!important}
body.mr-admin .pill{background:#f8e9ee!important;color:#88566e!important}
/* Invitation: visually consistent with the public site, no change to Firebase logic. */
body.mr-public:has(.dm-activation-card){background:linear-gradient(100deg,#fffaf7d9,#fff7f2da),url('img/accompagnement-seniors.webp') center center/cover fixed!important;color:#57454d!important;min-height:100vh}
body.mr-public .wrap:has(.dm-activation-card){max-width:620px!important;margin:clamp(30px,7vh,90px) auto!important;padding:16px!important}
body.mr-public .dm-activation-card{border:1px solid #f0dfe2!important;border-radius:26px!important;padding:clamp(24px,4vw,42px)!important;background:#fffdfbed!important;box-shadow:0 24px 65px #7e5d6c25!important;backdrop-filter:blur(9px)}
body.mr-public .dm-activation-logo-link{display:flex;justify-content:center;margin:0 auto 20px;text-decoration:none}
body.mr-public .dm-activation-logo{display:block;width:min(350px,95%);height:auto;object-fit:contain}
body.mr-public .dm-activation-card h1{font:600 clamp(29px,4vw,40px)/1.15 Georgia,serif!important;color:#85536c!important;margin:12px 0!important}
body.mr-public .dm-activation-card .muted{font-size:15px!important;line-height:1.6!important;color:#78656e!important}
body.mr-public .dm-activation-card .msg{background:#fff4f1!important;border:1px solid #edd9da!important;color:#785364!important;padding:15px!important;line-height:1.55!important;border-radius:14px!important;text-align:center}
body.mr-public .dm-activation-card .field label{color:#765765!important}
body.mr-public .dm-activation-card .field input{border:1px solid #e9d5dc!important;background:#fff!important;border-radius:13px!important;padding:14px!important}
body.mr-public .dm-activation-card .btn{background:linear-gradient(120deg,#a66c84,#c58ca2)!important;color:#fff!important;border-radius:999px!important;padding:15px!important;font-size:15px!important}
body.mr-public .dm-activation-help{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 6px;font-size:13px}
body.mr-public .dm-activation-link{color:#85536c!important;text-underline-offset:3px}
@media(max-width:1050px){body.mr-admin .admin-welcome{background:linear-gradient(90deg,#fffaf8e8,#fffaf8b5),url('img/entretien-domicile.webp') right center/cover no-repeat!important}}
@media(max-width:900px){body.mr-admin .shell{grid-template-columns:1fr!important}body.mr-admin .nav{position:static!important;flex-direction:row!important;max-height:none!important;overflow-x:auto!important}body.mr-admin .tab{flex:0 0 auto!important;width:auto!important}body.mr-admin .section{grid-column:1!important;grid-row:auto!important}}
@media(max-width:680px){body.mr-admin header .brand .dm-header-logo{width:170px!important}body.mr-admin header .brand h1{font-size:15px!important}body.mr-admin .admin-welcome{min-height:180px!important;padding:23px!important}body.mr-admin .admin-welcome>div{max-width:100%}body.mr-public .dm-activation-card{padding:22px!important}}
/* Dark mode remains readable if the user chooses it. */
html[data-mr-theme="dark"] body.mr-admin .nav{background:#392d39!important;border-color:#674f60!important}
html[data-mr-theme="dark"] body.mr-admin .nav .tab{color:#f2e4e9!important}
html[data-mr-theme="dark"] body.mr-admin .admin-welcome{background:linear-gradient(90deg,#342b33ef,#342b3399),url('img/entretien-domicile.webp') right center/cover no-repeat!important}
html[data-mr-theme="dark"] body.mr-admin .admin-welcome h2,html[data-mr-theme="dark"] body.mr-admin .admin-welcome .muted{color:#fff5f5!important}
