/* Douceurs & Maison — harmonisation premium 2026
   Présentation uniquement : aucune logique Firebase/SMS/simulateur modifiée. */
:root{
  --mr-navy:#062f62; --mr-navy-2:#0a4c93; --mr-blue:#0b5ca8;
  --mr-gold:#d7a43d; --mr-gold-dark:#ae7918; --mr-ink:#14243a;
  --mr-muted:#687589; --mr-bg:#f6f8fc; --mr-card:#ffffff; --mr-line:#e2e8f0;
  --mr-soft:#eef4fb; --mr-cream:#fff9ec; --mr-radius:20px;
  --mr-shadow:0 14px 38px rgba(22,45,79,.08);
}
html{scroll-behavior:smooth}
body{background:linear-gradient(180deg,#fbfcff 0,#f6f8fc 38%,#f9fafc 100%)!important;color:var(--mr-ink)!important}
body,button,input,select,textarea{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
h1,h2,h3{letter-spacing:-.025em}
a{transition:.2s ease}.wrap{width:min(1180px,calc(100% - 36px))!important;margin-inline:auto!important}
.btn{border-radius:12px!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(7,62,124,.12)}
.card,.box,.folder,.moment,.note{border-color:var(--mr-line)!important;box-shadow:var(--mr-shadow)!important}
input,select,textarea{border-color:#dbe3ed!important;box-shadow:0 1px 2px rgba(14,36,63,.03);outline:none}
input:focus,select:focus,textarea:focus{border-color:#7aa6d3!important;box-shadow:0 0 0 4px rgba(10,76,147,.09)!important}

/* ---------- Site public ---------- */
body.mr-public{background:linear-gradient(180deg,#fff 0,#f8fafc 52%,#f4f7fb 100%)!important}
body.mr-public nav{backdrop-filter:blur(16px);background:rgba(255,255,255,.94)!important;border-bottom:1px solid rgba(218,227,238,.9)!important;box-shadow:0 8px 30px rgba(21,47,82,.05)!important;position:sticky;top:0;z-index:50}
body.mr-public nav .wrap{min-height:78px;display:flex;align-items:center}
body.mr-public .logo img,body.mr-public nav img{filter:drop-shadow(0 4px 12px rgba(6,47,98,.08))}
body.mr-public .hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#f7faff 0,#fff 58%,#fff8ea 100%)!important;border-bottom:1px solid #e7edf5}
body.mr-public .hero:before{content:"";position:absolute;width:440px;height:440px;border-radius:50%;right:-180px;top:-210px;background:radial-gradient(circle,rgba(215,164,61,.20),rgba(215,164,61,0) 70%);pointer-events:none}
body.mr-public .hero h1{color:var(--mr-navy)!important;font-size:clamp(2.15rem,4vw,4.2rem)!important;line-height:1.02!important}
body.mr-public .hero .lead{font-size:clamp(1rem,1.5vw,1.18rem)!important;line-height:1.7!important;color:#52647a!important}
body.mr-public .eyebrow{color:var(--mr-gold-dark)!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase}
body.mr-public section{padding-top:72px!important;padding-bottom:72px!important}
body.mr-public .section-head,body.mr-public .sectionhead{margin-bottom:28px!important;align-items:end}
body.mr-public .section-head h2,body.mr-public .sectionhead h2{color:var(--mr-navy)!important;font-size:clamp(1.75rem,2.5vw,2.65rem)!important;margin:.25rem 0!important}
body.mr-public .grid{gap:20px!important}
body.mr-public .card,body.mr-public .box,body.mr-public .folder{background:rgba(255,255,255,.98)!important;border:1px solid var(--mr-line)!important;border-radius:20px!important;padding:24px!important}
body.mr-public .card:hover,body.mr-public .folder:hover{transform:translateY(-3px);box-shadow:0 20px 46px rgba(20,45,80,.11)!important}
body.mr-public .card h3,body.mr-public .folder h3{color:var(--mr-navy)!important}
body.mr-public .btn{padding:12px 18px!important;font-weight:800!important}
body.mr-public .btn.orange,body.mr-public .btn.primary{background:linear-gradient(135deg,var(--mr-gold),#e8b94f)!important;color:#16243a!important;border:0!important}
body.mr-public .btn.light,body.mr-public .btn:not(.orange):not(.primary){background:#fff!important;color:var(--mr-navy)!important;border:1px solid #cdd9e7!important}
body.mr-public footer{background:linear-gradient(135deg,#052b59,#073e7c)!important;color:#fff!important;border-top:0!important}
body.mr-public #octobreRose{border-radius:0!important;background:linear-gradient(135deg,#fff7fb,#fff)!important;border-top:1px solid #f3d5e1!important;border-bottom:1px solid #f3d5e1!important}
body.mr-public #octobreRose .wrap{background:#fff;border:1px solid #f2d3df;border-radius:24px;padding:20px!important;box-shadow:0 18px 42px rgba(169,25,84,.08)}
body.mr-public #octobreRose img{border-radius:16px!important}

/* ---------- Connexion ---------- */
body.mr-login{background:radial-gradient(circle at 15% 10%,rgba(215,164,61,.16),transparent 28%),linear-gradient(135deg,#f7faff,#fff 55%,#fffaf0)!important;min-height:100vh}
body.mr-login .shell{gap:24px!important;align-items:stretch!important}
body.mr-login .card{border-radius:24px!important;border:1px solid var(--mr-line)!important;padding:30px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 24px 60px rgba(18,45,82,.10)!important}
body.mr-login .brand img{width:90px!important;height:90px!important;object-fit:contain}
body.mr-login h1{color:var(--mr-navy)!important}

/* ---------- Admin / Gestionnaire ---------- */
body.mr-admin{background:#f5f7fb!important}
body.mr-admin header{background:#fff!important;color:var(--mr-ink)!important;border-bottom:1px solid var(--mr-line);box-shadow:0 5px 22px rgba(24,48,78,.05)!important;position:sticky;top:0;z-index:20}
body.mr-admin header .top{max-width:1500px!important;padding:13px 24px!important}
body.mr-admin header .brand img{width:64px!important;height:64px!important;border:1px solid #e5eaf0!important;box-shadow:none!important}
body.mr-admin header .brand h1{font-size:20px!important;color:var(--mr-navy)!important}
body.mr-admin header .brand p{color:var(--mr-muted)!important;opacity:1!important}
body.mr-admin header #adminEmail{color:#53657b!important;opacity:1!important}
body.mr-admin .btn.light{border:1px solid #cad7e6!important;background:#fff!important;color:var(--mr-navy)!important}
body.mr-admin .btn.gold{background:linear-gradient(135deg,var(--mr-gold),#e7b74c)!important;color:#182338!important}
body.mr-admin .shell{max-width:1500px!important;margin:0 auto!important;padding:24px!important;display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:24px!important;align-items:start}
body.mr-admin .nav{grid-column:1;grid-row:1;position:sticky!important;top:106px;display:flex!important;flex-direction:column!important;gap:6px!important;overflow:auto!important;max-height:calc(100vh - 128px);padding:16px!important;border-radius:22px!important;background:linear-gradient(180deg,#062f62,#073e7c)!important;box-shadow:0 18px 46px rgba(6,47,98,.20)!important}
body.mr-admin .tab{width:100%;text-align:left!important;justify-content:flex-start!important;border:0!important;background:transparent!important;color:#dce8f6!important;border-radius:12px!important;padding:11px 12px!important;font-weight:700!important}
body.mr-admin .tab:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
body.mr-admin .tab.active{background:linear-gradient(135deg,var(--mr-gold),#e8b94e)!important;color:#13223a!important;box-shadow:0 8px 20px rgba(0,0,0,.15)!important}
body.mr-admin .notification-badge{margin-left:auto!important}
body.mr-admin .section{grid-column:2;grid-row:1;min-width:0}
body.mr-admin .section.active{animation:mrFade .18s ease}
body.mr-admin .card{border-radius:18px!important;border:1px solid var(--mr-line)!important;padding:20px!important;box-shadow:0 10px 28px rgba(22,45,79,.055)!important}
body.mr-admin .grid4{gap:16px!important}
body.mr-admin .grid2{gap:18px!important}
body.mr-admin .metric{min-height:126px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#fff,#fbfcff)!important}
body.mr-admin .metric strong{font-size:31px!important;color:var(--mr-navy)!important}
body.mr-admin .toolbar{background:#fff;border:1px solid var(--mr-line);border-radius:16px;padding:14px!important;box-shadow:0 8px 22px rgba(22,45,79,.04)}
body.mr-admin .tablewrap{background:#fff;border-radius:16px!important}
body.mr-admin th{background:#f6f8fb!important;color:#4e6178!important}
body.mr-admin .notice{background:var(--mr-cream)!important;border-color:#efdcae!important;color:#6e5420!important}
body.mr-admin .chat-thread{background:#f7f9fc!important}
body.mr-admin .admin-doc-category{border-radius:16px!important;box-shadow:0 7px 18px rgba(22,45,79,.04)}
@keyframes mrFade{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:none}}

/* ---------- Client ---------- */
body.mr-client{background:#f5f7fb!important}
body.mr-client>.wrap{max-width:1500px!important;width:min(1500px,calc(100% - 32px))!important;padding:22px 0!important;display:grid!important;grid-template-columns:255px minmax(0,1fr)!important;gap:22px!important;align-items:start}
body.mr-client .client-sidebar{position:sticky;top:18px;min-height:calc(100vh - 36px);background:linear-gradient(180deg,#052d5c,#073e7c);color:#fff;border-radius:24px;padding:22px 16px;box-shadow:0 18px 48px rgba(6,47,98,.22)}
body.mr-client .client-sidebar .side-brand{display:flex;align-items:center;gap:12px;padding:4px 8px 20px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:16px}
body.mr-client .client-sidebar img{width:62px;height:62px;object-fit:contain;background:#fff;border-radius:15px;padding:5px}
body.mr-client .client-sidebar strong{font-size:16px}.client-sidebar small{color:#bcd0e7}
body.mr-client .client-sidebar a{display:flex;gap:10px;align-items:center;color:#e8f0f8;text-decoration:none;padding:11px 12px;border-radius:12px;font-weight:700;margin:4px 0}
body.mr-client .client-sidebar a:hover,body.mr-client .client-sidebar a.active{background:linear-gradient(135deg,var(--mr-gold),#e5b349);color:#16243a}
body.mr-client>.wrap>.card,body.mr-client>.wrap>#adminReviews,body.mr-client>.wrap>.small{grid-column:2}
body.mr-client>.wrap>.card{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
body.mr-client .topbar{background:#fff!important;border:1px solid var(--mr-line);border-radius:20px!important;padding:18px 20px!important;box-shadow:0 9px 28px rgba(22,45,79,.05)!important;margin-bottom:18px!important}
body.mr-client .topbar .brand img{width:70px!important;height:70px!important;background:#fff;border-radius:16px;padding:4px;border:1px solid #e5eaf0}
body.mr-client .topbar h1{color:var(--mr-navy)!important;font-size:24px!important}
body.mr-client .grid{gap:18px!important}
body.mr-client .grid>.card{border-radius:20px!important;padding:20px!important;background:#fff!important;box-shadow:0 10px 28px rgba(22,45,79,.055)!important}
body.mr-client .section-title{color:var(--mr-navy)!important}
body.mr-client .notice{background:#f8fbff!important;border:1px solid #dce8f4!important;color:#4d6279!important}
body.mr-client .btn.primary{background:linear-gradient(135deg,var(--mr-navy),var(--mr-navy-2))!important;color:#fff!important}
body.mr-client .btn.ghost{background:#fff!important;border:1px solid #d3deea!important;color:var(--mr-navy)!important}
body.mr-client .chat-thread{background:#f7f9fc!important}

/* ---------- Terrain ---------- */
body.mr-terrain{background:#f5f7fb!important}
body.mr-terrain header{background:#fff!important;color:var(--mr-ink)!important;border-bottom:1px solid var(--mr-line)!important;box-shadow:0 5px 22px rgba(24,48,78,.05)!important;position:sticky;top:0;z-index:20}
body.mr-terrain header .top{max-width:1450px!important;padding:12px 22px!important}
body.mr-terrain header .brand h1{color:var(--mr-navy)!important}
body.mr-terrain header .brand p{color:var(--mr-muted)!important;opacity:1!important}
body.mr-terrain .terrain-layout{max-width:1450px;margin:0 auto;padding:22px;display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}
body.mr-terrain .terrain-sidebar{position:sticky;top:102px;min-height:calc(100vh - 124px);background:linear-gradient(180deg,#052d5c,#073e7c);border-radius:22px;padding:18px 14px;box-shadow:0 18px 46px rgba(6,47,98,.20)}
body.mr-terrain .terrain-sidebar h3{color:#fff;margin:4px 10px 16px}.terrain-sidebar a{display:block;color:#e6eff8;text-decoration:none;padding:11px 12px;border-radius:12px;font-weight:700;margin:4px 0}.terrain-sidebar a:hover,.terrain-sidebar a.active{background:linear-gradient(135deg,var(--mr-gold),#e6b54b);color:#16243a}
body.mr-terrain main{max-width:none!important;margin:0!important;padding:0!important}
body.mr-terrain .hello,body.mr-terrain .quick-rdv,body.mr-terrain .share-card,body.mr-terrain .team-chat,body.mr-terrain .job{border-radius:20px!important;border:1px solid var(--mr-line)!important;box-shadow:0 10px 28px rgba(22,45,79,.055)!important;padding:20px!important}
body.mr-terrain .hello{background:linear-gradient(135deg,#fff,#f8fbff)!important}
body.mr-terrain .hello h2,body.mr-terrain h3{color:var(--mr-navy)!important}
body.mr-terrain .quick-rdv{border-top:0!important;border-left:5px solid var(--mr-gold)!important}
body.mr-terrain .btn.blue{background:linear-gradient(135deg,var(--mr-navy),var(--mr-navy-2))!important;color:#fff!important}
body.mr-terrain .btn.gold{background:linear-gradient(135deg,var(--mr-gold),#e7b84d)!important}
body.mr-terrain .chat-thread{background:#f7f9fc!important}

/* ---------- Responsive ---------- */
@media(max-width:980px){
 body.mr-admin .shell{grid-template-columns:1fr!important;padding:14px!important}
 body.mr-admin .nav{grid-column:1;grid-row:auto;position:static!important;flex-direction:row!important;max-height:none!important;padding:10px!important;border-radius:16px!important;overflow-x:auto!important}
 body.mr-admin .tab{width:auto;flex:0 0 auto}
 body.mr-admin .section{grid-column:1;grid-row:auto}
 body.mr-client>.wrap{grid-template-columns:1fr!important;width:min(100% - 22px,900px)!important}
 body.mr-client .client-sidebar{position:static;min-height:0;display:flex;gap:6px;overflow-x:auto;padding:12px;border-radius:16px}
 body.mr-client .client-sidebar .side-brand{display:none}
 body.mr-client .client-sidebar a{flex:0 0 auto;margin:0}
 body.mr-client>.wrap>.card,body.mr-client>.wrap>#adminReviews,body.mr-client>.wrap>.small{grid-column:1}
 body.mr-terrain .terrain-layout{grid-template-columns:1fr;padding:12px}
 body.mr-terrain .terrain-sidebar{position:static;min-height:0;display:flex;gap:6px;overflow:auto;padding:10px;border-radius:16px}
 body.mr-terrain .terrain-sidebar h3{display:none}.terrain-sidebar a{flex:0 0 auto}
}
@media(max-width:650px){
 body.mr-public section{padding-top:46px!important;padding-bottom:46px!important}
 body.mr-public .wrap{width:min(100% - 24px,1180px)!important}
 body.mr-admin .card,body.mr-client .grid>.card,body.mr-terrain .hello,body.mr-terrain .quick-rdv,body.mr-terrain .team-chat,body.mr-terrain .job{padding:16px!important;border-radius:16px!important}
 body.mr-admin header .top{padding:10px 12px!important}.mr-back{display:none!important}
}

/* ======================================================================
   SIGNATURE V5 — composition premium, campagnes compactes et thèmes
   ====================================================================== */
.mr-theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;
  padding:9px 13px;border:1px solid #dce3ea;border-radius:12px;background:#fff;
  color:#163553;font:750 13px/1 Inter,system-ui,sans-serif;cursor:pointer;
  box-shadow:0 5px 16px rgba(18,43,68,.05);white-space:nowrap
}
.mr-theme-toggle:hover{border-color:#c7a45f;transform:translateY(-1px)}

body.mr-public .hero{padding:54px 0 60px!important;background:linear-gradient(115deg,#fff 0,#fbfaf6 52%,#f3eee2 100%)!important}
body.mr-public .hero .wrap{min-height:570px!important;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr)!important;gap:64px!important}
body.mr-public .hero h1{font-size:clamp(3rem,5.7vw,5.55rem)!important;line-height:.94!important;letter-spacing:-.055em!important;margin:20px 0 24px!important}
body.mr-public .hero .lead{font-size:1.08rem!important;max-width:650px!important;margin:8px 0!important}
body.mr-public .hero-actions{margin-top:30px!important}
body.mr-public .hero-visual{padding:0!important;min-height:520px!important;background:#fff!important;border:8px solid #fff!important;position:relative!important;overflow:hidden!important;box-shadow:0 30px 75px rgba(19,43,66,.16)!important}
body.mr-public .hero-visual:before{display:none!important}
body.mr-public .hero-visual>img{width:100%;height:520px;object-fit:cover;display:block;border-radius:20px;filter:saturate(.82) contrast(.96) brightness(1.04)}
body.mr-public .hero-visual-caption{position:absolute;left:22px;right:22px;bottom:22px;padding:19px 20px;border:1px solid rgba(255,255,255,.52);border-radius:18px;background:rgba(255,255,255,.91);backdrop-filter:blur(15px);box-shadow:0 15px 38px rgba(8,34,58,.14);color:#17334d}
body.mr-public .hero-visual-caption span{display:block;color:#9b7227;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:850;margin-bottom:5px}
body.mr-public .hero-visual-caption strong{display:block!important;color:#0d3154!important;font-size:1.18rem!important;margin:0 0 4px!important}
body.mr-public .hero-visual-caption small{display:block;color:#657483;line-height:1.45}

body.mr-public #octobreRose.campaign-strip{padding:38px 0!important;background:#fff!important;border-top:1px solid #eee8eb!important;border-bottom:1px solid #eee8eb!important}
body.mr-public #octobreRose .campaign-strip-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:32px;align-items:center;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.mr-public #octobreRose .campaign-strip-grid>img{width:100%;height:230px;object-fit:cover;border-radius:20px!important;box-shadow:0 12px 30px rgba(143,54,86,.09)}
body.mr-public .campaign-strip-copy{padding:8px 4px}
body.mr-public .campaign-kicker{display:block;color:#a72e5e;font-size:.75rem;font-weight:850;text-transform:uppercase;letter-spacing:.13em;margin-bottom:7px}
body.mr-public .campaign-strip-copy h2{color:#4d2638!important;font-size:clamp(1.55rem,2.4vw,2.35rem)!important;margin:0 0 9px!important}
body.mr-public .campaign-strip-copy p{color:#6f5c65;line-height:1.65;margin:0 0 17px}
body.mr-public .campaign-button{background:#9f2f5b!important;color:#fff!important;border:0!important}

body.mr-public .services .card .icon{font-size:0!important;width:52px!important;height:52px!important;border-radius:15px!important;background:#f7f1e5!important;border:1px solid #eadfc9!important;display:grid!important;place-items:center!important}
body.mr-public .services .card .icon:after{content:"0" counter(mr-service);font-size:.73rem;color:#9a722b;font-weight:900;letter-spacing:.08em}
body.mr-public .services .grid{counter-reset:mr-service}
body.mr-public .services .card{counter-increment:mr-service}

body.mr-admin .nav-groups{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 12px;padding:0 2px 12px;border-bottom:1px solid rgba(255,255,255,.13)}
body.mr-admin .nav-group{min-height:40px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.05);color:#dfe9f2;font:750 11px/1.25 Inter,system-ui,sans-serif;padding:8px;cursor:pointer}
body.mr-admin .nav-group:hover{background:rgba(255,255,255,.1)}
body.mr-admin .nav-group.active{background:#d1ad69;color:#1f3243;border-color:#d1ad69}
body.mr-admin .tab.group-hidden{display:none!important}
body.mr-admin .section>h2:first-child{font-size:2rem!important;margin:0 0 22px!important}

html[data-mr-theme="dark"]{color-scheme:dark}
html[data-mr-theme="dark"] body.mr-admin,
html[data-mr-theme="dark"] body.mr-client,
html[data-mr-theme="dark"] body.mr-terrain,
html[data-mr-theme="dark"] body.mr-login{--mr-bg:#101820;--mr-card:#18232e;--mr-ink:#eef3f6;--mr-muted:#a9b6c1;--mr-line:#2c3b48;background:#101820!important;color:#eef3f6!important}
html[data-mr-theme="dark"] body.mr-admin header,
html[data-mr-theme="dark"] body.mr-terrain header,
html[data-mr-theme="dark"] body.mr-client .topbar,
html[data-mr-theme="dark"] body.mr-client .grid>.card,
html[data-mr-theme="dark"] body.mr-admin .card,
html[data-mr-theme="dark"] body.mr-terrain .hello,
html[data-mr-theme="dark"] body.mr-terrain .quick-rdv,
html[data-mr-theme="dark"] body.mr-terrain .share-card,
html[data-mr-theme="dark"] body.mr-terrain .team-chat,
html[data-mr-theme="dark"] body.mr-terrain .job,
html[data-mr-theme="dark"] body.mr-login .card{background:#18232e!important;border-color:#2c3b48!important;color:#eef3f6!important;box-shadow:0 14px 34px rgba(0,0,0,.18)!important}
html[data-mr-theme="dark"] body.mr-admin .toolbar,
html[data-mr-theme="dark"] body.mr-admin .tablewrap,
html[data-mr-theme="dark"] body.mr-admin .item,
html[data-mr-theme="dark"] body.mr-client .item,
html[data-mr-theme="dark"] body.mr-terrain .item,
html[data-mr-theme="dark"] body.mr-admin input,
html[data-mr-theme="dark"] body.mr-admin select,
html[data-mr-theme="dark"] body.mr-admin textarea,
html[data-mr-theme="dark"] body.mr-client input,
html[data-mr-theme="dark"] body.mr-client select,
html[data-mr-theme="dark"] body.mr-client textarea,
html[data-mr-theme="dark"] body.mr-terrain input,
html[data-mr-theme="dark"] body.mr-terrain select,
html[data-mr-theme="dark"] body.mr-terrain textarea{background:#121c25!important;border-color:#30404e!important;color:#eef3f6!important}
html[data-mr-theme="dark"] body.mr-admin h1,html[data-mr-theme="dark"] body.mr-admin h2,html[data-mr-theme="dark"] body.mr-admin h3,
html[data-mr-theme="dark"] body.mr-client h1,html[data-mr-theme="dark"] body.mr-client h2,html[data-mr-theme="dark"] body.mr-client h3,
html[data-mr-theme="dark"] body.mr-terrain h1,html[data-mr-theme="dark"] body.mr-terrain h2,html[data-mr-theme="dark"] body.mr-terrain h3{color:#f4f6f8!important}
html[data-mr-theme="dark"] .muted{color:#a9b6c1!important}
html[data-mr-theme="dark"] .mr-theme-toggle{background:#263542;border-color:#3a4b59;color:#f5f7f8}

@media(max-width:980px){
  body.mr-public .hero .wrap{min-height:0!important;grid-template-columns:1fr!important;gap:36px!important}
  body.mr-public .hero-visual{min-height:390px!important}
  body.mr-public .hero-visual>img{height:390px}
  body.mr-public #octobreRose .campaign-strip-grid{grid-template-columns:1fr!important}
  body.mr-public #octobreRose .campaign-strip-grid>img{height:auto;max-height:280px}
  body.mr-admin .nav-groups{display:flex;flex:0 0 auto;border:0;margin:0;padding:0}
  body.mr-admin .nav-group{flex:0 0 auto;padding:9px 12px}
}
@media(max-width:650px){
  .mr-theme-toggle span:last-child{display:none}
  body.mr-public .hero h1{font-size:clamp(2.65rem,13vw,4rem)!important}
  body.mr-public .hero-visual,body.mr-public .hero-visual>img{min-height:340px!important;height:340px!important}
  body.mr-public .hero-visual-caption{left:12px;right:12px;bottom:12px;padding:15px}
}

/* ======================================================================
   MULTISERV ROCHETTE — PREMIUM V2 (08/10/2026)
   Direction validée : claire, aérée, bleu nuit + doré.
   Couche VISUELLE uniquement : aucune logique Firebase / SMS / simulateur.
   ====================================================================== */
:root{
  --mr-navy:#073a78;
  --mr-navy-deep:#032b5b;
  --mr-navy-soft:#0d569e;
  --mr-gold:#e4ad38;
  --mr-gold-2:#f0c65f;
  --mr-gold-soft:#fff5dc;
  --mr-bg:#f4f7fb;
  --mr-surface:#ffffff;
  --mr-ink:#12233d;
  --mr-muted:#6f7f94;
  --mr-line:#e4eaf2;
  --mr-shadow:0 14px 40px rgba(9,48,94,.08);
  --mr-shadow-hover:0 22px 58px rgba(9,48,94,.13);
  --mr-radius:22px;
}

/* ---------- PUBLIC : signature commune ---------- */
body.mr-public{background:#f7f9fc!important;color:var(--mr-ink)!important}
body.mr-public nav{
  min-height:86px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 6px 28px rgba(6,47,98,.06)!important;
  border-bottom:1px solid #e8edf4!important;
}
body.mr-public nav .wrap{min-height:86px!important;gap:30px!important}
body.mr-public nav img{max-height:62px!important;width:auto!important;object-fit:contain!important}
body.mr-public nav .links,body.mr-public nav .navlinks{display:flex!important;align-items:center!important;gap:22px!important;margin-left:auto!important}
body.mr-public nav .links>a:not(.btn),body.mr-public nav .navlinks>a:not(.btn){
  color:#203754!important;text-decoration:none!important;font-weight:750!important;position:relative!important;padding:30px 0 27px!important
}
body.mr-public nav .links>a:not(.btn):after,body.mr-public nav .navlinks>a:not(.btn):after{
  content:"";position:absolute;left:0;bottom:18px;width:0;height:2px;border-radius:9px;background:var(--mr-gold);transition:.2s ease
}
body.mr-public nav .links>a:not(.btn):hover:after,body.mr-public nav .navlinks>a:not(.btn):hover:after{width:100%}
body.mr-public nav .btn.client{background:var(--mr-navy)!important;color:#fff!important;border:0!important;box-shadow:0 9px 20px rgba(7,58,120,.15)!important}

body.mr-public>header{
  position:relative!important;overflow:hidden!important;background:linear-gradient(135deg,#f9fbff 0%,#fff 64%,#fff8e9 100%)!important;
  border-bottom:1px solid #e7edf5!important;padding:76px 0 70px!important
}
body.mr-public>header:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-120px;top:-210px;background:radial-gradient(circle,rgba(228,173,56,.20),rgba(228,173,56,0) 68%)}
body.mr-public>header .wrap{position:relative;z-index:1}
body.mr-public>header .wrap>p:first-child{margin:0 0 10px!important;color:#a87917!important;text-transform:uppercase!important;letter-spacing:.12em!important;font-weight:850!important;font-size:.78rem!important}
body.mr-public>header h1{max-width:850px;color:var(--mr-navy-deep)!important;font-size:clamp(2.3rem,4.6vw,4.6rem)!important;line-height:1.02!important;margin:0 0 18px!important}
body.mr-public>header p:last-child{max-width:780px;color:#61738a!important;font-size:1.12rem!important;line-height:1.75!important}

body.mr-public main>section{padding:78px 0!important}
body.mr-public main>section:nth-child(even):not(#octobreRose):not(#offreRentree){background:#fff!important}
body.mr-public main .wrap>h2{font-size:clamp(1.8rem,2.8vw,2.65rem)!important;color:var(--mr-navy-deep)!important;margin:52px 0 22px!important}
body.mr-public main .wrap>h2:first-child{margin-top:0!important}
body.mr-public .grid{gap:22px!important}
body.mr-public .card,body.mr-public .box,body.mr-public .folder,body.mr-public .moment{
  border:1px solid var(--mr-line)!important;border-radius:22px!important;background:#fff!important;
  box-shadow:0 12px 34px rgba(7,48,96,.065)!important;transition:.22s ease!important
}
body.mr-public .card{padding:26px!important}
body.mr-public .card:hover,body.mr-public .folder:hover{transform:translateY(-4px)!important;box-shadow:var(--mr-shadow-hover)!important;border-color:#d6e0ec!important}
body.mr-public .card h2,body.mr-public .card h3{color:var(--mr-navy-deep)!important}
body.mr-public .card p,body.mr-public .box p{color:#617187!important;line-height:1.72!important}
body.mr-public .note,body.mr-public .included{
  border-radius:18px!important;background:linear-gradient(135deg,#fffaf0,#fff)!important;border:1px solid #ecd8a5!important;
  box-shadow:0 8px 24px rgba(85,62,12,.05)!important;padding:20px!important
}
body.mr-public .btn{min-height:46px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:11px 19px!important;border-radius:12px!important;font-weight:800!important;text-decoration:none!important}
body.mr-public .btn.orange,body.mr-public .btn.primary{background:linear-gradient(135deg,var(--mr-gold),var(--mr-gold-2))!important;color:#182944!important;border:0!important;box-shadow:0 9px 22px rgba(201,148,31,.20)!important}
body.mr-public .btn.light,body.mr-public .btn:not(.orange):not(.primary):not(.client){background:#fff!important;color:var(--mr-navy)!important;border:1px solid #cedae8!important}
body.mr-public footer{padding:34px 0!important;background:linear-gradient(135deg,var(--mr-navy-deep),#064586)!important;color:#eaf2fb!important;line-height:1.7!important}

/* Accueil public : plus proche du langage visuel des maquettes */
body.mr-public .hero{padding:86px 0!important;background:linear-gradient(135deg,#f6f9ff 0,#fff 58%,#fff7e7 100%)!important}
body.mr-public .hero .wrap{grid-template-columns:minmax(0,1.18fr) minmax(310px,.82fr)!important;gap:56px!important;align-items:center!important}
body.mr-public .hero h1{font-size:clamp(2.65rem,5vw,5rem)!important;max-width:780px!important;color:var(--mr-navy-deep)!important}
body.mr-public .hero .eyebrow{display:inline-flex!important;align-items:center!important;gap:8px!important;background:#fff7e2!important;border:1px solid #efdba5!important;padding:8px 12px!important;border-radius:999px!important;color:#956a13!important;font-size:.76rem!important}
body.mr-public .hero .lead{max-width:720px!important;color:#607189!important}
body.mr-public .hero-card{
  position:relative!important;background:linear-gradient(150deg,var(--mr-navy-deep),#08509b)!important;color:#fff!important;
  border:0!important;border-radius:28px!important;padding:34px!important;box-shadow:0 28px 70px rgba(4,43,91,.23)!important;overflow:hidden!important
}
body.mr-public .hero-card:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-85px;top:-95px;background:rgba(228,173,56,.20)}
body.mr-public .hero-card strong{font-size:1.3rem!important;position:relative;z-index:1;color:#fff!important}
body.mr-public .hero-card ul{position:relative;z-index:1;margin-top:18px!important}
body.mr-public .hero-card li{border-color:rgba(255,255,255,.15)!important;color:#e8f1fb!important;padding:13px 0!important}
body.mr-public #octobreRose{padding:22px 0!important;background:#fff!important;border-bottom:1px solid #edf0f5!important}
body.mr-public #octobreRose .wrap{padding:16px!important;background:linear-gradient(135deg,#fff,#fff8fb)!important;border:1px solid #f2d7e2!important;border-radius:24px!important;box-shadow:0 12px 34px rgba(169,25,84,.07)!important}
body.mr-public #octobreRose img{max-height:260px!important;object-fit:cover!important;object-position:center!important}
body.mr-public #offreRentree{background:transparent!important;padding:26px 0!important}
body.mr-public #offreRentree .included{border-left:5px solid var(--mr-gold)!important;background:#fff!important}
body.mr-public .section-head,body.mr-public .sectionhead{display:flex!important;justify-content:space-between!important;gap:30px!important;align-items:end!important;margin-bottom:30px!important}
body.mr-public .section-head>p,body.mr-public .sectionhead>p{max-width:560px!important;color:#718097!important;line-height:1.7!important}
body.mr-public .section-head h2,body.mr-public .sectionhead h2{font-size:clamp(2rem,3vw,3rem)!important;color:var(--mr-navy-deep)!important}

/* ---------- ADMIN / GESTIONNAIRE : maquette premium ---------- */
body.mr-admin{background:#f4f7fb!important}
body.mr-admin header{height:auto!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid #e5ebf2!important}
body.mr-admin header .top{max-width:1580px!important;padding:16px 28px!important}
body.mr-admin header .brand{gap:14px!important}
body.mr-admin header .brand img{width:72px!important;height:72px!important;border-radius:18px!important;padding:7px!important;background:#fff!important}
body.mr-admin header .brand h1{font-size:1.3rem!important;color:var(--mr-navy-deep)!important}
body.mr-admin .shell{max-width:1580px!important;grid-template-columns:294px minmax(0,1fr)!important;gap:26px!important;padding:26px!important}
body.mr-admin .nav{top:118px!important;padding:18px 14px!important;border-radius:26px!important;background:linear-gradient(180deg,#032d60 0%,#064887 100%)!important;box-shadow:0 22px 54px rgba(3,45,96,.23)!important}
body.mr-admin .nav:before{content:"Navigation";display:block;color:#8eb6df;font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;font-weight:850;padding:2px 12px 9px}
body.mr-admin .tab{padding:12px 13px!important;border-radius:13px!important;color:#e9f2fb!important;font-size:.91rem!important;line-height:1.25!important}
body.mr-admin .tab.active{background:linear-gradient(135deg,#e3aa34,#f0c45f)!important;color:#172842!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important}
body.mr-admin .section{padding:4px 0 36px!important}
body.mr-admin .section>h2:first-child,body.mr-admin .section>.card:first-child h2{color:var(--mr-navy-deep)!important}
body.mr-admin .grid4{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
body.mr-admin .metric{min-height:138px!important;border-radius:22px!important;padding:23px!important;position:relative!important;overflow:hidden!important}
body.mr-admin .metric:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-28px;top:-32px;background:rgba(228,173,56,.10)}
body.mr-admin .metric strong{font-size:2.2rem!important;color:var(--mr-navy-deep)!important;line-height:1!important}
body.mr-admin .metric span{margin-top:9px!important;color:#718096!important;font-weight:650!important}
body.mr-admin .card{border-radius:22px!important;background:#fff!important;padding:23px!important;box-shadow:0 12px 34px rgba(7,48,96,.06)!important}
body.mr-admin .card h2,body.mr-admin .card h3{color:var(--mr-navy-deep)!important}
body.mr-admin .toolbar{border-radius:18px!important;padding:16px!important}
body.mr-admin table{font-size:.93rem!important}
body.mr-admin th{padding:13px!important;background:#f7f9fc!important;color:#52657c!important}
body.mr-admin td{padding:13px!important}
body.mr-admin .field label{color:#425775!important;font-weight:750!important;margin-bottom:7px!important}
body.mr-admin input,body.mr-admin select,body.mr-admin textarea{border-radius:12px!important;min-height:44px!important;background:#fff!important}
body.mr-admin textarea{min-height:110px!important}

/* ---------- CLIENT : proche de la maquette validée ---------- */
body.mr-client{background:linear-gradient(135deg,#f5f8fc,#eef3f9)!important}
body.mr-client>.wrap{max-width:1580px!important;grid-template-columns:270px minmax(0,1fr)!important;gap:26px!important;padding:24px 0!important}
body.mr-client .client-sidebar{border-radius:28px!important;padding:22px 16px!important;background:linear-gradient(180deg,#032d60,#064887)!important;box-shadow:0 24px 60px rgba(3,45,96,.25)!important}
body.mr-client .client-sidebar .side-brand{padding:4px 8px 23px!important;margin-bottom:14px!important}
body.mr-client .client-sidebar img{width:74px!important;height:74px!important;border-radius:18px!important;padding:7px!important}
body.mr-client .client-sidebar strong{font-size:1.08rem!important;color:#fff!important}
body.mr-client .client-sidebar small{color:#bcd2e8!important}
body.mr-client .client-sidebar a{padding:13px 14px!important;border-radius:13px!important;font-size:.95rem!important}
body.mr-client .client-sidebar a.active{background:linear-gradient(135deg,#dca633,#efc45f)!important;box-shadow:0 9px 22px rgba(0,0,0,.15)!important}
body.mr-client .topbar{border-radius:24px!important;padding:24px!important;background:linear-gradient(135deg,#fff,#fbfdff)!important;box-shadow:0 12px 34px rgba(7,48,96,.06)!important}
body.mr-client .topbar h1{font-size:clamp(1.7rem,2.7vw,2.5rem)!important;color:var(--mr-navy-deep)!important;margin-bottom:4px!important}
body.mr-client .topbar .brand img{width:78px!important;height:78px!important}
body.mr-client .grid{gap:20px!important}
body.mr-client .grid>.card{border-radius:22px!important;padding:23px!important;box-shadow:0 12px 34px rgba(7,48,96,.06)!important;border:1px solid #e4eaf2!important}
body.mr-client .section-title{font-size:1.25rem!important;margin-bottom:14px!important;color:var(--mr-navy-deep)!important}
body.mr-client .field label{font-weight:750!important;color:#425775!important}
body.mr-client input,body.mr-client select,body.mr-client textarea{border-radius:12px!important;min-height:44px!important;background:#fff!important}
body.mr-client .notice{border-radius:14px!important;background:#f7faff!important;border-color:#dae6f3!important}

/* ---------- TERRAIN : opérationnel mais même langage visuel ---------- */
body.mr-terrain{background:#f4f7fb!important}
body.mr-terrain header .top{max-width:1540px!important;padding:15px 26px!important}
body.mr-terrain .terrain-layout{max-width:1540px!important;grid-template-columns:270px minmax(0,1fr)!important;gap:26px!important;padding:26px!important}
body.mr-terrain .terrain-sidebar{top:112px!important;border-radius:26px!important;padding:18px 14px!important;background:linear-gradient(180deg,#032d60,#064887)!important;box-shadow:0 22px 54px rgba(3,45,96,.23)!important}
body.mr-terrain .terrain-sidebar a{padding:13px 14px!important;border-radius:13px!important}
body.mr-terrain .terrain-sidebar a.active{background:linear-gradient(135deg,#dca633,#efc45f)!important}
body.mr-terrain .hello,body.mr-terrain .quick-rdv,body.mr-terrain .share-card,body.mr-terrain .team-chat,body.mr-terrain .job{border-radius:22px!important;padding:23px!important;box-shadow:0 12px 34px rgba(7,48,96,.06)!important;background:#fff!important}
body.mr-terrain .quick-rdv{border-left:6px solid var(--mr-gold)!important}

/* ---------- LOGIN ---------- */
body.mr-login{background:radial-gradient(circle at 88% 9%,rgba(228,173,56,.18),transparent 25%),linear-gradient(135deg,#eef4fb 0,#fff 52%,#fff7e7 100%)!important}
body.mr-login .shell{max-width:1120px!important;gap:30px!important}
body.mr-login .card{border-radius:28px!important;padding:36px!important;box-shadow:0 28px 72px rgba(5,48,97,.13)!important}
body.mr-login h1{font-size:2.05rem!important;color:var(--mr-navy-deep)!important}
body.mr-login input{min-height:48px!important;border-radius:12px!important}

/* ---------- MOBILE ---------- */
@media(max-width:1050px){
  body.mr-public nav .links,body.mr-public nav .navlinks{gap:12px!important;overflow-x:auto!important}
  body.mr-public .hero .wrap{grid-template-columns:1fr!important}
  body.mr-public .hero-card{max-width:none!important}
  body.mr-admin .grid4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body.mr-public nav .wrap{min-height:74px!important;align-items:center!important}
  body.mr-public nav img{max-height:52px!important}
  body.mr-public nav .links,body.mr-public nav .navlinks{display:none!important}
  body.mr-public>header{padding:52px 0!important}
  body.mr-public main>section{padding:52px 0!important}
  body.mr-public .section-head,body.mr-public .sectionhead{display:block!important}
  body.mr-public .hero{padding:56px 0!important}
  body.mr-public .hero-card{padding:25px!important;border-radius:22px!important}
  body.mr-admin .grid4{grid-template-columns:1fr!important}
  body.mr-client>.wrap{padding:12px 0!important}
}
body.mr-public .history-visual-placeholder{min-height:190px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#edf4fc,#fff7e8);color:var(--mr-navy);font-weight:850;letter-spacing:.03em;border-radius:18px}
body.mr-public .folder .history-visual-placeholder{height:170px;border-radius:16px 16px 0 0}
body.mr-public .moment .history-visual-placeholder{min-width:260px;min-height:220px}

/* ======================================================================
   MULTISERV ROCHETTE — PREMIUM V3 CLAIR
   Blanc/ivoire majoritaire. Bleu nuit et doré uniquement en accents.
   Couche visuelle : aucune logique métier ou Firebase n'est modifiée.
   ====================================================================== */
:root{
  --mr-navy:#123a5d;
  --mr-navy-deep:#0d2f4f;
  --mr-navy-soft:#eaf1f6;
  --mr-gold:#c9a35c;
  --mr-gold-2:#d8b978;
  --mr-gold-soft:#fbf6eb;
  --mr-bg:#fbfaf7;
  --mr-surface:#fff;
  --mr-ink:#243343;
  --mr-muted:#71808e;
  --mr-line:#e9e6df;
  --mr-shadow:0 12px 34px rgba(28,43,58,.045);
  --mr-shadow-hover:0 18px 42px rgba(28,43,58,.075);
}

body{background:var(--mr-bg)!important;color:var(--mr-ink)!important}
.card,.box,.folder,.moment,.note{box-shadow:var(--mr-shadow)!important}
.btn{border-radius:14px!important}
.btn:hover{box-shadow:0 8px 20px rgba(18,58,93,.09)!important}
input:focus,select:focus,textarea:focus{border-color:#9db2c3!important;box-shadow:0 0 0 4px rgba(18,58,93,.065)!important}

/* Site public : lumière et respiration */
body.mr-public{background:var(--mr-bg)!important}
body.mr-public nav{background:rgba(255,255,255,.985)!important;box-shadow:0 4px 22px rgba(28,43,58,.035)!important;border-color:var(--mr-line)!important}
body.mr-public nav .btn.client{background:var(--mr-navy)!important;color:#fff!important;box-shadow:none!important}
body.mr-public>header,body.mr-public .hero{background:linear-gradient(135deg,#fff 0%,#fbfaf7 64%,#faf6ed 100%)!important;border-color:var(--mr-line)!important}
body.mr-public>header:before,body.mr-public .hero:before{opacity:.42!important}
body.mr-public main>section{background:transparent!important}
body.mr-public main>section:nth-child(even):not(#octobreRose):not(#offreRentree){background:#fff!important}
body.mr-public .card,body.mr-public .box,body.mr-public .folder,body.mr-public .moment{
  background:#fff!important;border-color:var(--mr-line)!important;border-radius:24px!important;
  box-shadow:var(--mr-shadow)!important
}
body.mr-public .card:hover,body.mr-public .folder:hover{transform:translateY(-2px)!important;box-shadow:var(--mr-shadow-hover)!important;border-color:#ddd7cc!important}
body.mr-public .note,body.mr-public .included{background:#fff!important;border-color:#eadfca!important;box-shadow:0 8px 26px rgba(53,45,32,.035)!important}
body.mr-public .btn.orange,body.mr-public .btn.primary{background:var(--mr-gold)!important;color:#243343!important;box-shadow:none!important}
body.mr-public .btn.light,body.mr-public .btn:not(.orange):not(.primary):not(.client){background:#fff!important;color:var(--mr-navy)!important;border-color:#d9e0e5!important}
body.mr-public .hero-card{
  background:rgba(255,255,255,.94)!important;color:var(--mr-ink)!important;border:1px solid var(--mr-line)!important;
  border-left:4px solid var(--mr-gold)!important;border-radius:26px!important;padding:32px!important;
  box-shadow:0 18px 46px rgba(28,43,58,.065)!important;backdrop-filter:blur(10px)
}
body.mr-public .hero-card:before{background:rgba(201,163,92,.08)!important}
body.mr-public .hero-card strong{color:var(--mr-navy-deep)!important}
body.mr-public .hero-card li{color:#5f6f7e!important;border-color:#ebe7df!important}
body.mr-public footer{background:#fff!important;color:#607080!important;border-top:1px solid var(--mr-line)!important;box-shadow:0 -8px 30px rgba(28,43,58,.025)!important}
body.mr-public footer a{color:var(--mr-navy)!important}
body.mr-public #octobreRose .wrap{box-shadow:var(--mr-shadow)!important}
body.mr-public .history-visual-placeholder{background:linear-gradient(135deg,#f4f7f8,#fbf6eb)!important}

/* Admin / Gestionnaire : navigation bleu nuit, contenu très lumineux */
body.mr-admin{background:var(--mr-bg)!important}
body.mr-admin header{background:rgba(255,255,255,.985)!important;border-color:var(--mr-line)!important;box-shadow:0 4px 22px rgba(28,43,58,.035)!important}
body.mr-admin .shell{grid-template-columns:278px minmax(0,1fr)!important;gap:32px!important;padding:30px!important}
body.mr-admin .nav{
  background:linear-gradient(180deg,#0d3154 0%,#082744 100%)!important;
  border:1px solid rgba(255,255,255,.08)!important;border-radius:24px!important;
  padding:18px 12px!important;box-shadow:0 16px 38px rgba(13,47,79,.13)!important
}
body.mr-admin .nav:before{color:#d8c79f!important;padding:3px 14px 12px!important}
body.mr-admin .tab{color:#eef3f7!important;background:transparent!important;padding:12px 15px!important;border-radius:12px!important;font-weight:700!important}
body.mr-admin .tab:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
body.mr-admin .tab.active{
  background:linear-gradient(135deg,#c9a35c,#d8b978)!important;color:#243343!important;
  box-shadow:0 8px 18px rgba(0,0,0,.12)!important
}
body.mr-admin .section{padding:4px 0 46px!important}
body.mr-admin .grid4{gap:20px!important}
body.mr-admin .grid2{gap:22px!important}
body.mr-admin .card,body.mr-admin .metric{
  background:#fff!important;border:1px solid var(--mr-line)!important;border-radius:24px!important;
  padding:25px!important;box-shadow:var(--mr-shadow)!important
}
body.mr-admin .metric{min-height:132px!important}
body.mr-admin .metric:after{width:72px!important;height:72px!important;background:rgba(201,163,92,.075)!important}
body.mr-admin .toolbar{background:#fcfcfb!important;border-color:var(--mr-line)!important;box-shadow:none!important;padding:18px!important}
body.mr-admin th{background:#faf9f6!important;color:#5d6d7b!important}
body.mr-admin td{border-color:#efede8!important}
body.mr-admin .notice{background:#fbf7ee!important;border-color:#eadfc9!important;color:#675a43!important}
body.mr-admin .chat-thread{background:#fcfcfb!important;border-color:var(--mr-line)!important}
body.mr-admin .btn.gold{background:var(--mr-gold)!important;color:#263444!important;box-shadow:none!important}
body.mr-admin .btn.light{background:#fff!important;border-color:#d9e0e5!important;color:var(--mr-navy)!important}
body.mr-admin .admin-doc-category{background:#fff!important;border-color:var(--mr-line)!important;box-shadow:0 7px 20px rgba(28,43,58,.03)!important}

/* Client : fidèle à la maquette — colonne bleu nuit, contenu blanc/ivoire */
body.mr-client{background:var(--mr-bg)!important}
body.mr-client>.wrap{grid-template-columns:260px minmax(0,1fr)!important;gap:32px!important;padding:30px 0!important}
body.mr-client .client-sidebar{
  background:linear-gradient(180deg,#0d3154 0%,#082744 100%)!important;color:#fff!important;
  border:1px solid rgba(255,255,255,.08)!important;border-radius:24px!important;
  padding:20px 14px!important;box-shadow:0 16px 38px rgba(13,47,79,.13)!important
}
body.mr-client .client-sidebar .side-brand{border-color:rgba(255,255,255,.14)!important;padding:5px 9px 22px!important}
body.mr-client .client-sidebar img{width:68px!important;height:68px!important;border:1px solid rgba(255,255,255,.18)!important}
body.mr-client .client-sidebar strong{color:#fff!important}
body.mr-client .client-sidebar small{color:#c4d2de!important}
body.mr-client .client-sidebar a{color:#eef3f7!important;background:transparent!important;padding:12px 14px!important}
body.mr-client .client-sidebar a:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
body.mr-client .client-sidebar a.active{
  background:linear-gradient(135deg,#c9a35c,#d8b978)!important;color:#243343!important;
  box-shadow:0 8px 18px rgba(0,0,0,.12)!important
}
body.mr-client .topbar,body.mr-client .grid>.card{
  background:#fff!important;border:1px solid var(--mr-line)!important;border-radius:24px!important;
  padding:25px!important;box-shadow:var(--mr-shadow)!important
}
body.mr-client .grid{gap:22px!important}
body.mr-client .notice{background:#f8faf9!important;border-color:var(--mr-line)!important;color:#5c6b78!important}
body.mr-client .btn.primary{background:var(--mr-navy)!important;color:#fff!important;box-shadow:none!important}
body.mr-client .btn.ghost{background:#fff!important;border-color:#d9e0e5!important;color:var(--mr-navy)!important}
body.mr-client .chat-thread{background:#fcfcfb!important;border-color:var(--mr-line)!important}

/* Terrain : navigation bleu nuit contenue, cartes opérationnelles claires */
body.mr-terrain{background:var(--mr-bg)!important}
body.mr-terrain header{background:rgba(255,255,255,.985)!important;border-color:var(--mr-line)!important;box-shadow:0 4px 22px rgba(28,43,58,.035)!important}
body.mr-terrain .terrain-layout{grid-template-columns:260px minmax(0,1fr)!important;gap:32px!important;padding:30px!important}
body.mr-terrain .terrain-sidebar{
  background:linear-gradient(180deg,#0d3154 0%,#082744 100%)!important;
  border:1px solid rgba(255,255,255,.08)!important;border-radius:24px!important;
  padding:18px 13px!important;box-shadow:0 16px 38px rgba(13,47,79,.13)!important
}
body.mr-terrain .terrain-sidebar h3{color:#fff!important}
body.mr-terrain .terrain-sidebar a{color:#eef3f7!important;background:transparent!important;padding:12px 14px!important}
body.mr-terrain .terrain-sidebar a:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
body.mr-terrain .terrain-sidebar a.active{background:linear-gradient(135deg,#c9a35c,#d8b978)!important;color:#243343!important;box-shadow:0 8px 18px rgba(0,0,0,.12)!important}
body.mr-terrain .hello,body.mr-terrain .quick-rdv,body.mr-terrain .share-card,body.mr-terrain .team-chat,body.mr-terrain .job{
  background:#fff!important;border:1px solid var(--mr-line)!important;border-radius:24px!important;
  padding:25px!important;box-shadow:var(--mr-shadow)!important
}
body.mr-terrain .quick-rdv{border-left:4px solid var(--mr-gold)!important}
body.mr-terrain .btn.blue{background:var(--mr-navy)!important;color:#fff!important;box-shadow:none!important}
body.mr-terrain .btn.gold{background:var(--mr-gold)!important;color:#263444!important;box-shadow:none!important}
body.mr-terrain .chat-thread{background:#fcfcfb!important;border-color:var(--mr-line)!important}

/* Connexion */
body.mr-login{background:linear-gradient(135deg,#fbfaf7 0%,#fff 58%,#faf6ed 100%)!important}
body.mr-login .card{background:#fff!important;border:1px solid var(--mr-line)!important;border-radius:26px!important;box-shadow:0 20px 56px rgba(28,43,58,.07)!important}

@media(max-width:980px){
  body.mr-admin .shell,body.mr-terrain .terrain-layout{padding:16px!important;gap:16px!important}
  body.mr-admin .nav,body.mr-client .client-sidebar,body.mr-terrain .terrain-sidebar{
    background:linear-gradient(90deg,#0d3154,#082744)!important;
    border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 8px 24px rgba(13,47,79,.10)!important
  }
  body.mr-admin .tab,body.mr-client .client-sidebar a,body.mr-terrain .terrain-sidebar a{white-space:nowrap!important}
}

@media(max-width:650px){
  body.mr-public main>section{padding:48px 0!important}
  body.mr-public .hero{padding:50px 0!important}
  body.mr-public .hero-card,body.mr-admin .card,body.mr-client .topbar,body.mr-client .grid>.card,
  body.mr-terrain .hello,body.mr-terrain .quick-rdv,body.mr-terrain .share-card,body.mr-terrain .team-chat,body.mr-terrain .job{
    border-radius:19px!important;padding:19px!important
  }
}

/* SIGNATURE V5 — PRIORITÉ FINALE : doit rester la dernière couche du fichier. */
.mr-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 13px;border:1px solid #dce3ea;border-radius:12px;background:#fff;color:#163553;font:750 13px/1 Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 5px 16px rgba(18,43,68,.05);white-space:nowrap}
.mr-theme-toggle:hover{border-color:#c7a45f;transform:translateY(-1px)}
body.mr-public .hero{padding:54px 0 60px!important;background:linear-gradient(115deg,#fff 0,#fbfaf6 52%,#f3eee2 100%)!important}
body.mr-public .hero .wrap{min-height:570px!important;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr)!important;gap:64px!important}
body.mr-public .hero h1{font-size:clamp(3rem,5.7vw,5.55rem)!important;line-height:.94!important;letter-spacing:-.055em!important;margin:20px 0 24px!important}
body.mr-public .hero .lead{font-size:1.08rem!important;max-width:650px!important;margin:8px 0!important}
body.mr-public .hero-actions{margin-top:30px!important}
body.mr-public .hero-visual{padding:0!important;min-height:520px!important;background:#fff!important;border:8px solid #fff!important;position:relative!important;overflow:hidden!important;box-shadow:0 30px 75px rgba(19,43,66,.16)!important}
body.mr-public .hero-visual:before{display:none!important}
body.mr-public .hero-visual>img{width:100%;height:520px;object-fit:cover;display:block;border-radius:20px;filter:saturate(.82) contrast(.96) brightness(1.04)}
body.mr-public .hero-visual-caption{position:absolute;left:22px;right:22px;bottom:22px;padding:19px 20px;border:1px solid rgba(255,255,255,.52);border-radius:18px;background:rgba(255,255,255,.91);backdrop-filter:blur(15px);box-shadow:0 15px 38px rgba(8,34,58,.14);color:#17334d}
body.mr-public .hero-visual-caption span{display:block;color:#9b7227;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:850;margin-bottom:5px}
body.mr-public .hero-visual-caption strong{display:block!important;color:#0d3154!important;font-size:1.18rem!important;margin:0 0 4px!important}
body.mr-public .hero-visual-caption small{display:block;color:#657483;line-height:1.45}
body.mr-public #octobreRose.campaign-strip{padding:38px 0!important;background:#fff!important;border-top:1px solid #eee8eb!important;border-bottom:1px solid #eee8eb!important}
body.mr-public #octobreRose .campaign-strip-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:32px;align-items:center;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.mr-public #octobreRose .campaign-strip-grid>img{width:100%;height:230px;object-fit:cover;border-radius:20px!important;box-shadow:0 12px 30px rgba(143,54,86,.09)}
body.mr-public .campaign-kicker{display:block;color:#a72e5e;font-size:.75rem;font-weight:850;text-transform:uppercase;letter-spacing:.13em;margin-bottom:7px}
body.mr-public .campaign-strip-copy h2{color:#4d2638!important;font-size:clamp(1.55rem,2.4vw,2.35rem)!important;margin:0 0 9px!important}
body.mr-public .campaign-strip-copy p{color:#6f5c65;line-height:1.65;margin:0 0 17px}
body.mr-public .campaign-button{background:#9f2f5b!important;color:#fff!important;border:0!important}
body.mr-public .services .grid{counter-reset:mr-service}
body.mr-public .services .card{counter-increment:mr-service}
body.mr-public .services .card .icon{font-size:0!important;width:52px!important;height:52px!important;border-radius:15px!important;background:#f7f1e5!important;border:1px solid #eadfc9!important;display:grid!important;place-items:center!important}
body.mr-public .services .card .icon:after{content:"0" counter(mr-service);font-size:.73rem;color:#9a722b;font-weight:900;letter-spacing:.08em}
body.mr-admin .nav:before{display:none!important}
body.mr-admin .nav-groups{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 12px;padding:0 2px 12px;border-bottom:1px solid rgba(255,255,255,.13)}
body.mr-admin .nav-group{min-height:40px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.05);color:#dfe9f2;font:750 11px/1.25 Inter,system-ui,sans-serif;padding:8px;cursor:pointer}
body.mr-admin .nav-group:hover{background:rgba(255,255,255,.1)}
body.mr-admin .nav-group.active{background:#d1ad69;color:#1f3243;border-color:#d1ad69}
body.mr-admin .tab.group-hidden{display:none!important}
body.mr-admin .sms-campaign-layout{align-items:start}
body.mr-admin #smsCampaignContacts{max-height:430px;overflow:auto;padding-right:4px}
body.mr-admin .admin-welcome{min-height:176px!important;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px!important;background:linear-gradient(110deg,#fff 0,#fbfaf5 62%,#f2ead9 100%)!important;overflow:hidden;position:relative}
body.mr-admin .admin-welcome:after{content:"";position:absolute;width:240px;height:240px;border:54px solid rgba(202,169,106,.18);border-radius:50%;right:-110px;top:-115px}
body.mr-admin .admin-welcome h2{font-size:clamp(2rem,3vw,3rem)!important;color:#0d3154!important;margin:6px 0 8px!important;letter-spacing:-.045em}
body.mr-admin .admin-welcome .eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;color:#9a722b;font-weight:850}
body.mr-admin .admin-welcome p{font-size:1rem;margin:0!important}
body.mr-admin .admin-welcome img{width:220px;height:108px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 8px 18px rgba(11,49,84,.08))}
body.mr-client #client-home>.topbar{min-height:190px!important;padding:30px 34px!important;background:linear-gradient(110deg,#fff 0,#fbfaf5 64%,#f1eadc 100%)!important;position:relative;overflow:hidden}
body.mr-client #client-home>.topbar:after{content:"";position:absolute;width:260px;height:260px;border:55px solid rgba(202,169,106,.17);border-radius:50%;right:-110px;top:-135px;pointer-events:none}
body.mr-client #client-home>.topbar .brand{position:relative;z-index:1;align-items:center!important}
body.mr-client #client-home>.topbar .brand img{width:118px!important;height:118px!important;padding:10px!important;border-radius:22px!important}
body.mr-client #client-home>.topbar h1{font-size:clamp(2rem,3.2vw,3.2rem)!important;letter-spacing:-.045em!important;margin-bottom:8px!important}
body.mr-client #client-home>.topbar>.mr-theme-toggle{position:relative;z-index:2;align-self:flex-start}

html[data-mr-theme="dark"]{color-scheme:dark}
html[data-mr-theme="dark"] body.mr-admin,html[data-mr-theme="dark"] body.mr-client,html[data-mr-theme="dark"] body.mr-terrain,html[data-mr-theme="dark"] body.mr-login{--mr-bg:#101820;--mr-card:#18232e;--mr-ink:#eef3f6;--mr-muted:#a9b6c1;--mr-line:#2c3b48;background:#101820!important;color:#eef3f6!important}
html[data-mr-theme="dark"] body.mr-admin header,html[data-mr-theme="dark"] body.mr-terrain header,html[data-mr-theme="dark"] body.mr-client .topbar,html[data-mr-theme="dark"] body.mr-client .grid>.card,html[data-mr-theme="dark"] body.mr-admin .card,html[data-mr-theme="dark"] body.mr-terrain .hello,html[data-mr-theme="dark"] body.mr-terrain .quick-rdv,html[data-mr-theme="dark"] body.mr-terrain .share-card,html[data-mr-theme="dark"] body.mr-terrain .team-chat,html[data-mr-theme="dark"] body.mr-terrain .job,html[data-mr-theme="dark"] body.mr-login .card{background:#18232e!important;border-color:#2c3b48!important;color:#eef3f6!important;box-shadow:0 14px 34px rgba(0,0,0,.18)!important}
html[data-mr-theme="dark"] body.mr-admin .admin-welcome{background:linear-gradient(110deg,#18232e,#1c2934)!important}
html[data-mr-theme="dark"] body.mr-admin .admin-welcome h2{color:#f4f6f8!important}
html[data-mr-theme="dark"] body.mr-client #client-home>.topbar{background:linear-gradient(110deg,#18232e,#1c2934)!important}
html[data-mr-theme="dark"] body.mr-admin .toolbar,html[data-mr-theme="dark"] body.mr-admin .tablewrap,html[data-mr-theme="dark"] body.mr-admin .item,html[data-mr-theme="dark"] body.mr-client .item,html[data-mr-theme="dark"] body.mr-terrain .item,html[data-mr-theme="dark"] body.mr-admin input,html[data-mr-theme="dark"] body.mr-admin select,html[data-mr-theme="dark"] body.mr-admin textarea,html[data-mr-theme="dark"] body.mr-client input,html[data-mr-theme="dark"] body.mr-client select,html[data-mr-theme="dark"] body.mr-client textarea,html[data-mr-theme="dark"] body.mr-terrain input,html[data-mr-theme="dark"] body.mr-terrain select,html[data-mr-theme="dark"] body.mr-terrain textarea{background:#121c25!important;border-color:#30404e!important;color:#eef3f6!important}
html[data-mr-theme="dark"] body.mr-admin h1,html[data-mr-theme="dark"] body.mr-admin h2,html[data-mr-theme="dark"] body.mr-admin h3,html[data-mr-theme="dark"] body.mr-client h1,html[data-mr-theme="dark"] body.mr-client h2,html[data-mr-theme="dark"] body.mr-client h3,html[data-mr-theme="dark"] body.mr-terrain h1,html[data-mr-theme="dark"] body.mr-terrain h2,html[data-mr-theme="dark"] body.mr-terrain h3{color:#f4f6f8!important}
html[data-mr-theme="dark"] .muted{color:#a9b6c1!important}
html[data-mr-theme="dark"] .mr-theme-toggle{background:#263542!important;border-color:#3a4b59!important;color:#f5f7f8!important}

@media(max-width:980px){
  body.mr-public .hero .wrap{min-height:0!important;grid-template-columns:1fr!important;gap:36px!important}
  body.mr-public .hero-visual{min-height:390px!important}body.mr-public .hero-visual>img{height:390px}
  body.mr-public #octobreRose .campaign-strip-grid{grid-template-columns:1fr!important}
  body.mr-public #octobreRose .campaign-strip-grid>img{height:auto;max-height:280px}
  body.mr-admin .nav-groups{display:flex;flex:0 0 auto;border:0;margin:0;padding:0}
  body.mr-admin .nav-group{flex:0 0 auto;padding:9px 12px}
  body.mr-admin .admin-welcome img{width:160px}
}
@media(max-width:650px){
  .mr-theme-toggle span:last-child{display:none}
  body.mr-public .hero h1{font-size:clamp(2.65rem,13vw,4rem)!important}
  body.mr-public .hero-visual,body.mr-public .hero-visual>img{min-height:340px!important;height:340px!important}
  body.mr-public .hero-visual-caption{left:12px;right:12px;bottom:12px;padding:15px}
  body.mr-admin .admin-welcome{padding:22px!important;min-height:150px!important}body.mr-admin .admin-welcome img{display:none}
}

/* ======================================================================
   CORRECTIF VISUEL V6 — 12/10/2026
   Couche finale claire et lisible. Présentation uniquement.
   ====================================================================== */
:root{
  --mr-navy:#143652;
  --mr-navy-deep:#0b2a45;
  --mr-gold:#caa45f;
  --mr-gold-2:#dfc17f;
  --mr-bg:#faf9f6;
  --mr-surface:#fff;
  --mr-ink:#263746;
  --mr-muted:#687987;
  --mr-line:#e8e4dc;
  --mr-shadow:0 12px 34px rgba(24,42,58,.055);
}

body,button,input,select,textarea{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important}
body.mr-public h1,body.mr-public h2,body.mr-public h3,
body.mr-admin h1,body.mr-admin h2,body.mr-admin h3,
body.mr-client h1,body.mr-client h2,body.mr-client h3,
body.mr-terrain h1,body.mr-terrain h2,body.mr-terrain h3,
body.mr-login h1,body.mr-login h2{
  font-family:ui-serif,Georgia,Cambria,"Times New Roman",serif!important;
  letter-spacing:-.025em!important;
  font-weight:650!important;
}

/* Public : blanc et ivoire dominants, typographie et contact lisibles. */
body.mr-public{background:#faf9f6!important;color:var(--mr-ink)!important}
body.mr-public nav{background:rgba(255,255,255,.98)!important;border-color:var(--mr-line)!important}
body.mr-public nav img{width:auto!important;max-width:178px!important;max-height:58px!important;object-fit:contain!important}
body.mr-public>header,body.mr-public .hero{background:linear-gradient(118deg,#fff 0%,#fbfaf7 64%,#f4eee2 100%)!important;color:var(--mr-ink)!important}
body.mr-public>header h1,body.mr-public .hero h1{color:var(--mr-navy-deep)!important}
body.mr-public>header p,body.mr-public .hero p{color:#5f7080!important}
body.mr-public main>section{background:transparent!important}
body.mr-public main>section:nth-child(even):not(#octobreRose):not(#offreRentree){background:#fff!important}
body.mr-public .card,body.mr-public .box,body.mr-public .folder,body.mr-public .moment{
  background:#fff!important;border:1px solid var(--mr-line)!important;border-radius:24px!important;
  box-shadow:var(--mr-shadow)!important;padding:28px!important
}
body.mr-public .card:hover,body.mr-public .folder:hover{transform:translateY(-2px)!important;box-shadow:0 18px 42px rgba(24,42,58,.08)!important}
body.mr-public .card h2,body.mr-public .card h3,body.mr-public main .wrap>h2{color:var(--mr-navy-deep)!important}
body.mr-public .card p,body.mr-public .box p{color:#60717f!important}
body.mr-public .btn.orange,body.mr-public .btn.primary{background:linear-gradient(135deg,#caa45f,#dfc17f)!important;color:#253442!important;box-shadow:none!important}
body.mr-public .btn.light,body.mr-public .btn:not(.orange):not(.primary):not(.client){background:#fff!important;color:var(--mr-navy)!important;border:1px solid #d8dee2!important}

body.mr-public .contact{background:#f5f0e7!important;border-top:1px solid #e8dfcf!important;border-bottom:1px solid #e8dfcf!important}
body.mr-public .contact .wrap{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)!important;gap:38px!important;align-items:center!important}
body.mr-public .contact h2{color:var(--mr-navy-deep)!important;margin:0 0 14px!important}
body.mr-public .contact p{color:#556979!important;line-height:1.75!important;margin:0!important}
body.mr-public .contact .btn.orange{width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}

body.mr-public .universe-card{display:flex!important;flex-direction:column!important;align-items:flex-start!important;overflow:hidden!important}
body.mr-public .universe-card>img{width:100%!important;height:145px!important;object-fit:cover!important;object-position:center!important;border-radius:18px!important;border:1px solid #eee8dd!important;margin:0 0 22px!important;background:#fff!important}
body.mr-public .universe-card h3{font-size:1.55rem!important;margin:0 0 10px!important}
body.mr-public .universe-card p{flex:1!important}
body.mr-public .universe-card .hero-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important;margin-top:12px!important}
body.mr-public .universe-page-logo{display:block;width:min(370px,100%)!important;height:150px!important;object-fit:cover!important;object-position:center!important;border:1px solid #eee7da!important;border-radius:22px!important;box-shadow:0 12px 30px rgba(24,42,58,.06)!important;margin:0 0 28px!important;background:#fff!important}
body.mr-public .formula-explainer{max-width:900px!important;margin:0 auto 46px!important;padding:38px!important;text-align:left!important;border-left:4px solid var(--mr-gold)!important}
body.mr-public .formula-explainer h2{font-size:clamp(2rem,3.5vw,3.25rem)!important;margin:8px 0 14px!important}
body.mr-public .formula-explainer .eyebrow{display:block!important}

/* Simulateur : même signature sans modifier ses calculs. */
body:not([class]){background:#faf9f6!important;color:var(--mr-ink)!important}
body:not([class]) header{background:#fff!important;color:var(--mr-navy-deep)!important;border-bottom:1px solid var(--mr-line)!important;box-shadow:0 4px 22px rgba(24,42,58,.04)!important;padding:20px!important}
body:not([class]) header strong{font-family:ui-serif,Georgia,Cambria,"Times New Roman",serif!important;font-size:1.35rem!important}
body:not([class]) main.wrap{max-width:1020px!important;padding:36px 20px!important}
body:not([class]) .card{background:#fff!important;border:1px solid var(--mr-line)!important;border-radius:24px!important;padding:30px!important;box-shadow:var(--mr-shadow)!important;margin:0 0 24px!important}
body:not([class]) h1,body:not([class]) h2{font-family:ui-serif,Georgia,Cambria,"Times New Roman",serif!important;color:var(--mr-navy-deep)!important;letter-spacing:-.025em!important}
body:not([class]) h1{font-size:clamp(2.2rem,4vw,3.8rem)!important;margin-top:0!important}
body:not([class]) .btn{border-radius:13px!important;min-height:46px!important}
body:not([class]) .btn:not(.gold):not(.ghost){background:var(--mr-navy)!important;color:#fff!important}
body:not([class]) .btn.gold{background:linear-gradient(135deg,var(--mr-gold),var(--mr-gold-2))!important;color:#263746!important}
body:not([class]) .price{color:var(--mr-navy-deep)!important}

/* Logo officiel : format horizontal, jamais écrasé ni répété en grand. */
body.mr-admin header .brand img,body.mr-terrain header .brand img{
  width:152px!important;height:52px!important;max-width:36vw!important;object-fit:contain!important;
  border:0!important;border-radius:10px!important;padding:0!important;background:#fff!important
}
body.mr-admin .admin-welcome img{display:none!important}
body.mr-client .client-sidebar img{width:148px!important;height:50px!important;object-fit:contain!important;border-radius:10px!important;padding:0!important}
body.mr-client #client-home>.topbar .brand img{width:172px!important;height:58px!important;object-fit:contain!important;border:0!important;border-radius:10px!important;padding:0!important}

/* Admin, Gestionnaire, Client et Terrain : grands espaces clairs. */
body.mr-admin,body.mr-client,body.mr-terrain{background:#faf9f6!important}
body.mr-admin header,body.mr-terrain header{background:rgba(255,255,255,.985)!important;color:var(--mr-ink)!important;border-color:var(--mr-line)!important}
body.mr-admin .shell,body.mr-terrain .terrain-layout{gap:32px!important;padding:30px!important}
body.mr-admin .section{padding-bottom:54px!important}
body.mr-admin .card,body.mr-admin .metric,
body.mr-client .topbar,body.mr-client .grid>.card,
body.mr-terrain .hello,body.mr-terrain .quick-rdv,body.mr-terrain .share-card,body.mr-terrain .team-chat,body.mr-terrain .job{
  background:#fff!important;border:1px solid var(--mr-line)!important;border-radius:24px!important;
  box-shadow:var(--mr-shadow)!important;padding:26px!important
}
body.mr-admin .grid2,body.mr-client .grid{gap:24px!important}
body.mr-admin .grid4{gap:20px!important}
body.mr-admin .metric{min-height:142px!important}
body.mr-admin .metric strong{color:var(--mr-navy-deep)!important}
body.mr-admin .metric span{color:#657583!important}
body.mr-admin .admin-welcome{background:linear-gradient(112deg,#fff,#fbfaf6)!important;min-height:166px!important}
body.mr-admin .admin-welcome h2{color:var(--mr-navy-deep)!important}
body.mr-admin .toolbar,body.mr-admin .tablewrap{background:#fff!important;border-color:var(--mr-line)!important}
body.mr-admin .item strong,body.mr-client .item strong,body.mr-terrain .item strong{color:var(--mr-navy-deep)!important}

.terrain-direct-link{display:flex;align-items:center;justify-content:center;min-height:46px;margin:0 2px 12px;padding:11px 13px;border-radius:13px;background:#fff;color:#0d3154!important;text-decoration:none;font-weight:800;border:1px solid rgba(255,255,255,.35);box-shadow:0 8px 18px rgba(0,0,0,.10)}
.terrain-direct-link:hover{background:#f4e7c9!important}

body.mr-client .client-sidebar .side-brand{display:block!important}
body.mr-client .client-sidebar .side-brand>div{margin-top:12px!important}
body.mr-client #client-documents .line{margin:24px 0!important}
body.mr-client #invoiceList{margin-bottom:8px!important}
body.mr-client #client-invoices{scroll-margin-top:28px!important}
body.mr-client #client-quotes{scroll-margin-top:28px!important}

/* Mode sombre : contraste renforcé pour chiffres, libellés et documents. */
html[data-mr-theme="dark"] body.mr-admin .metric strong,
html[data-mr-theme="dark"] body.mr-admin #invoiceTotalCount,
html[data-mr-theme="dark"] body.mr-admin #invoiceBilledTotal,
html[data-mr-theme="dark"] body.mr-admin #invoicePaidTotal,
html[data-mr-theme="dark"] body.mr-admin #invoiceDueTotal{color:#f1cb7a!important;text-shadow:none!important}
html[data-mr-theme="dark"] body.mr-admin .metric span,
html[data-mr-theme="dark"] body.mr-admin .field label,
html[data-mr-theme="dark"] body.mr-client .field label,
html[data-mr-theme="dark"] body.mr-terrain .field label,
html[data-mr-theme="dark"] body.mr-admin .small,
html[data-mr-theme="dark"] body.mr-client .small,
html[data-mr-theme="dark"] body.mr-terrain .small{color:#c4ced6!important}
html[data-mr-theme="dark"] body.mr-admin .item strong,
html[data-mr-theme="dark"] body.mr-client .item strong,
html[data-mr-theme="dark"] body.mr-terrain .item strong{color:#f5f7f8!important}
html[data-mr-theme="dark"] body.mr-admin .muted,
html[data-mr-theme="dark"] body.mr-client .muted,
html[data-mr-theme="dark"] body.mr-terrain .muted{color:#b8c4cd!important}
html[data-mr-theme="dark"] body.mr-admin .card,
html[data-mr-theme="dark"] body.mr-client .grid>.card,
html[data-mr-theme="dark"] body.mr-terrain .job{border-color:#40505e!important}

@media(max-width:980px){
  body.mr-public .contact .wrap{grid-template-columns:1fr!important}
  body.mr-client .client-sidebar .side-brand{display:none!important}
  body.mr-admin .shell,body.mr-terrain .terrain-layout{padding:16px!important;gap:16px!important}
  .terrain-direct-link{flex:0 0 auto;margin:0!important;white-space:nowrap!important}
}
@media(max-width:650px){
  body.mr-public .card,body.mr-public .box,body.mr-public .folder,body.mr-public .moment{padding:21px!important;border-radius:19px!important}
  body.mr-public .formula-explainer{padding:25px!important}
  body.mr-public .universe-card>img{height:125px!important}
  body.mr-public .universe-page-logo{height:125px!important}
  body.mr-admin header .brand img,body.mr-terrain header .brand img{width:118px!important;height:42px!important}
  body.mr-client #client-home>.topbar .brand img{width:136px!important;height:48px!important}
}


/* MOBILE CLIENT ACCESS 2026-10-12 */
body.mr-public .mr-mobile-client-access{display:none!important}
@media(max-width:760px){
  body.mr-public nav .wrap{justify-content:space-between!important}
  body.mr-public .mr-mobile-client-access{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    min-height:44px!important;padding:10px 14px!important;margin-left:auto!important;
    border-radius:999px!important;background:var(--mr-navy,#082f55)!important;color:#fff!important;
    border:1px solid rgba(202,169,106,.6)!important;text-decoration:none!important;font-size:.82rem!important;
    font-weight:800!important;white-space:nowrap!important;box-shadow:0 8px 20px rgba(7,48,96,.12)!important;
  }
  body.mr-public .mr-mobile-client-access:focus-visible{outline:3px solid rgba(202,169,106,.38)!important;outline-offset:2px!important}
}
@media(max-width:390px){
  body.mr-public .mr-mobile-client-access{padding:9px 11px!important;font-size:.78rem!important}
  body.mr-public nav img{max-width:150px!important}
}

/* FINAL MOBILE CLIENT ACCESS FIX */
.mr-mobile-client-access{display:none!important}
@media(max-width:760px){body.mr-public .mr-mobile-client-access{display:inline-flex!important}}

/* DYNAMIC SITE PHOTOS */
.mr-dynamic-photos{padding:36px 0;background:#fff}.mr-dynamic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.mr-dynamic-grid figure{margin:0;background:#fff;border:1px solid #e8e1d4;border-radius:18px;overflow:hidden}.mr-dynamic-grid img{width:100%;height:240px;object-fit:cover;display:block}.mr-dynamic-grid figcaption{padding:11px 14px;color:#173a58;font-weight:700}@media(max-width:760px){.mr-dynamic-grid{grid-template-columns:1fr 1fr}.mr-dynamic-grid img{height:190px}}@media(max-width:480px){.mr-dynamic-grid{grid-template-columns:1fr}.mr-dynamic-grid img{height:250px}}
