/* Marignan Formulaire Greffe */
body.mmfg-body{margin:0;background:#F6F4F0;-webkit-text-size-adjust:100%}
.mmfg{--ink:#111;--muted:#5E584E;--line:#DDD6CA;--gold:#8A6D3B;--gold-bg:#EFE7D8;--gold-l:#C9A962;--bg:#F6F4F0;
  font-family:Manrope,system-ui,-apple-system,sans-serif;color:var(--ink);box-sizing:border-box;line-height:1.4}
.mmfg *,.mmfg *::before,.mmfg *::after{box-sizing:border-box}
.mmfg button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.mmfg a{color:var(--ink)}
#mmfg-app{background:var(--bg);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;max-width:520px;margin:0 auto}
@media (min-width:640px){body.mmfg-body{background:#ECE8E1}#mmfg-app{min-height:auto;margin:32px auto;border-radius:28px;box-shadow:0 20px 60px rgba(0,0,0,.08);overflow:hidden}}

.mmfg-head{padding:16px 20px 14px;display:flex;flex-direction:column;gap:14px}
.mmfg-bar{display:flex;align-items:center;gap:12px;min-height:44px}
.mmfg-back{width:44px;height:44px;border:0;border-radius:22px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 44px}
.mmfg-brand{flex:1;font-weight:800;font-size:15px;letter-spacing:-.2px}
.mmfg-badge{font-size:12px;font-weight:600;color:var(--gold);background:var(--gold-bg);padding:6px 10px;border-radius:999px;white-space:nowrap}
.mmfg-prog{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.mmfg-prog i{height:4px;border-radius:2px;background:#E2DDD3;transition:background .25s}
.mmfg-prog i.on{background:var(--ink)}

.mmfg-body-w{flex:1;padding:18px 20px 24px}
.mmfg-in{animation:mmfgIn .32s cubic-bezier(.2,.7,.2,1);display:flex;flex-direction:column;gap:14px}
@keyframes mmfgIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.mmfg-h1{margin:0;font-size:28px;font-weight:800;line-height:1.15;letter-spacing:-.7px}
.mmfg-h1.xl{font-size:30px;line-height:1.12;letter-spacing:-.8px}
.mmfg-p{margin:0;font-size:15px;color:var(--muted);line-height:1.5}
.mmfg-small{margin:0;font-size:12px;color:var(--muted);line-height:1.5}
.mmfg-center{text-align:center}

.mmfg-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}
.mmfg-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:28px;min-height:150px;padding:18px;border-radius:20px;text-align:left;cursor:pointer;background:#fff;border:2px solid var(--line);box-shadow:0 2px 6px rgba(0,0,0,.06)}
.mmfg-tile span{font-size:16px;font-weight:700}
.mmfg-tile.sel,.mmfg-opt.sel{border-color:var(--ink);box-shadow:0 0 0 4px rgba(17,17,17,.08)}
.mmfg-reass{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-top:6px}

.mmfg-field{display:flex;flex-direction:column;gap:8px}
.mmfg-field label{font-size:13px;font-weight:700;color:#3D3830}
.mmfg-field input{height:58px;border:1.5px solid #E5E0D7;border-radius:16px;padding:0 16px;font:inherit;font-size:17px;background:#fff;color:var(--ink);width:100%;-webkit-appearance:none;appearance:none}
.mmfg-field input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px rgba(17,17,17,.07)}
.mmfg-field input::placeholder{color:#A9A398}
.mmfg-field input.tel{font-size:20px;font-weight:600;letter-spacing:1px}
.mmfg-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mmfg-lock{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}
.mmfg-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

.mmfg-opt{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:66px;padding:16px 18px;border-radius:18px;font-size:17px;font-weight:700;text-align:left;cursor:pointer;background:#fff;border:2px solid var(--line);box-shadow:0 2px 6px rgba(0,0,0,.06);transition:box-shadow .15s,border-color .15s}
.mmfg-dot{flex:0 0 26px;width:26px;height:26px;border-radius:13px;border:2px solid #A9A296}
.mmfg-opt.sel .mmfg-dot{background:var(--ink);border:7px solid var(--ink);box-shadow:inset 0 0 0 3px #fff}

.mmfg-card{background:#fff;border-radius:18px;padding:4px 18px;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;flex-direction:column}
.mmfg-grille>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid #F1EDE6}
.mmfg-grille>div:last-child{border-bottom:0}
.mmfg-grille span{font-size:14px;color:#3D3830}
.mmfg-grille strong{font-size:16px;font-weight:800;white-space:nowrap}
.mmfg-cta{min-height:64px;border:0;border-radius:999px;background:var(--ink);color:#fff!important;font-size:17px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 22px;box-shadow:0 8px 20px rgba(17,17,17,.22);text-decoration:none;width:100%;text-align:center}
.mmfg-cta[disabled]{opacity:.6;cursor:wait}
.mmfg-sec{min-height:56px;border:1.5px solid #CFC8BB;border-radius:999px;background:#fff;color:#3D3830;font-size:15px;font-weight:700;cursor:pointer;width:100%;padding:0 18px}
.mmfg-link{background:none;border:0;color:var(--muted);font-size:14px;font-weight:600;text-decoration:underline;cursor:pointer;padding:10px}

.mmfg-days{display:flex;gap:8px;overflow-x:auto;margin:0 -20px;padding:2px 20px 6px;scrollbar-width:none}
.mmfg-days::-webkit-scrollbar{display:none}
.mmfg-day{flex:0 0 62px;height:82px;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;background:#fff;border:0;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.mmfg-day small{font-size:12px;font-weight:600;opacity:.7}
.mmfg-day b{font-size:20px;font-weight:800}
.mmfg-day em{font-size:11px;opacity:.7;font-style:normal}
.mmfg-day.sel,.mmfg-slot.sel{background:var(--ink);color:#fff}
.mmfg-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mmfg-slot{height:48px;border-radius:999px;font-size:15px;font-weight:600;cursor:pointer;background:#fff;border:0;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.mmfg-empty{background:#fff;border-radius:18px;padding:18px;font-size:15px;color:var(--muted)}

.mmfg-foot{position:sticky;bottom:0;padding:12px 20px calc(22px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 70%,rgba(246,244,240,0));display:flex;flex-direction:column;gap:8px}
.mmfg-foot .mmfg-cta{min-height:58px;font-size:16px;font-weight:700}
.mmfg-err{color:#A3261B;font-size:14px;font-weight:600}

/* Paiement */
.mmfg-pay{display:flex;flex-direction:column;gap:10px}
.mmfg-pay-i{background:#fff;border-radius:18px;padding:16px 18px;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:4px}
.mmfg-pay-i .t{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.mmfg-pay-i .t b{font-size:17px;font-weight:800}
.mmfg-pay-i .t span{font-size:12px;font-weight:700;color:var(--gold);background:var(--gold-bg);padding:4px 8px;border-radius:999px;white-space:nowrap}
.mmfg-pay-i .m{font-size:24px;font-weight:800;letter-spacing:-.5px}
.mmfg-pay-i .d{font-size:13px;color:var(--muted)}

/* Merci / fins */
.mmfg-merci{display:flex;flex-direction:column;gap:18px;padding:12px 0;max-width:520px;margin:0 auto}
.mmfg-check{width:68px;height:68px;border-radius:34px;background:var(--ink);display:flex;align-items:center;justify-content:center}
.mmfg-recap>div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #F1EDE6}
.mmfg-recap>div:last-child{border-bottom:0}
.mmfg-recap span{color:var(--muted)}
.mmfg-dark{background:var(--ink);color:#fff;border-radius:18px;padding:20px 18px;display:flex;flex-direction:column;gap:10px}
.mmfg-dark-t{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800}
.mmfg-dark-p{font-size:15px;line-height:1.5;color:#E9E5DD}
.mmfg-dark-p strong{color:#fff}
.mmfg-dark-s{font-size:13px;line-height:1.45;color:#B9B3A8}
.mmfg-steps>div{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid #F1EDE6;font-size:14px;line-height:1.5}
.mmfg-steps>div:last-child{border-bottom:0}
.mmfg-steps b{font-weight:800;color:var(--gold);min-width:16px}
.mmfg-note{background:var(--gold-bg);border-radius:14px;padding:14px 16px;font-size:14px;line-height:1.5}
.mmfg-call{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:60px;border:1.5px solid var(--ink);border-radius:999px;text-decoration:none;padding:8px 16px}
.mmfg-call span{font-size:12px;color:var(--muted)}
.mmfg-call strong{font-weight:800;font-size:17px}
.mmfg-spin{display:inline-block;width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:mmfgSpin .8s linear infinite}
@keyframes mmfgSpin{to{transform:rotate(360deg)}}

/* Protection contre les styles du thème (boutons, titres, polices) */
.mmfg,.mmfg *{font-family:Manrope,system-ui,-apple-system,sans-serif!important}
.mmfg h1,.mmfg .mmfg-h1{color:#111!important;text-transform:none!important;font-weight:800!important}
.mmfg button{text-transform:none!important;letter-spacing:normal}
.mmfg .mmfg-tile,.mmfg .mmfg-opt,.mmfg .mmfg-day,.mmfg .mmfg-slot,.mmfg .mmfg-back,.mmfg .mmfg-sec,
.mmfg .mmfg-tile:hover,.mmfg .mmfg-opt:hover,.mmfg .mmfg-day:hover,.mmfg .mmfg-slot:hover,.mmfg .mmfg-back:hover,.mmfg .mmfg-sec:hover,
.mmfg .mmfg-tile:focus,.mmfg .mmfg-opt:focus,.mmfg .mmfg-day:focus,.mmfg .mmfg-slot:focus,.mmfg .mmfg-sec:focus{background:#fff!important;color:#111!important}
.mmfg .mmfg-sec{color:#3D3830!important}
.mmfg .mmfg-day.sel,.mmfg .mmfg-slot.sel,.mmfg .mmfg-day.sel:hover,.mmfg .mmfg-slot.sel:hover,.mmfg .mmfg-day.sel:focus,.mmfg .mmfg-slot.sel:focus{background:#111!important;color:#fff!important}
.mmfg .mmfg-cta,.mmfg .mmfg-cta:hover,.mmfg .mmfg-cta:focus,.mmfg .mmfg-cta:visited{background:#111!important;color:#fff!important}
.mmfg .mmfg-tile span,.mmfg .mmfg-opt span{color:inherit!important}
.mmfg .mmfg-link{background:none!important}
.mmfg a.mmfg-call,.mmfg a.mmfg-call:hover{color:#111!important;background:transparent!important}
.mmfg .mmfg-dark,.mmfg .mmfg-dark *{color:#E9E5DD}
.mmfg .mmfg-dark strong,.mmfg .mmfg-dark-t{color:#fff!important}
.mmfg input{color:#111!important;background:#fff!important}

/* Question « Comment avez-vous connu la Maison Marignan ? » (page merci) */
.mmfg-connu{padding:18px;gap:10px}
.mmfg-connu-t{font-weight:800;font-size:16px;line-height:1.4}
.mmfg-connu-o{display:flex;flex-direction:column;gap:8px}
.mmfg-connu .mmfg-opt{min-height:48px;font-size:14px}
.mmfg-connu-d{display:flex;flex-direction:column;gap:8px}
.mmfg-connu-d[hidden]{display:none}
.mmfg-connu-d input{min-height:48px;border:1.5px solid #E2DDD3;border-radius:12px;padding:0 14px;font-size:15px}
.mmfg .mmfg-connu .mmfg-opt.sel,.mmfg .mmfg-connu .mmfg-opt.sel:hover,.mmfg .mmfg-connu .mmfg-opt.sel:focus{background:#fff!important;border-color:#111}

/* ---------- Parcours 1.1 ---------- */
.mmfg-zones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:4px}
.mmfg-zone{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px 14px;border-radius:18px;background:#fff;border:2px solid var(--line);box-shadow:0 2px 6px rgba(0,0,0,.06);cursor:pointer;text-align:center}
.mmfg-zone svg .z{fill:var(--gold-l);opacity:.85}
.mmfg-zone span{display:flex;flex-direction:column;gap:2px}
.mmfg-zone b{font-size:15px;font-weight:800}
.mmfg-zone em{font-style:normal;font-size:12px;color:var(--muted);line-height:1.35}
.mmfg-zone.sel{border-color:var(--ink);box-shadow:0 0 0 4px rgba(17,17,17,.08)}
.mmfg-trust{display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 1px 3px rgba(0,0,0,.05);margin-top:4px}
.mmfg-trust-l{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4;color:#3D3830}
.mmfg-trust-l svg{flex:0 0 18px;margin-top:1px}
.mmfg-trust-r{font-size:14px;color:#3D3830}.mmfg-trust-r .st{color:#C9A962;letter-spacing:1px}
.mmfg-switch{align-self:center;font-size:13px;padding:4px}
.mmfg-callink{display:block;text-align:center;font-size:14px;color:var(--muted)!important;text-decoration:none;padding:6px}
.mmfg-callink strong{color:var(--ink);white-space:nowrap}
.mmfg-picked{display:flex;align-items:center;gap:12px;background:var(--gold-bg);border-radius:16px;padding:12px 14px}
.mmfg-picked span{flex:1;display:flex;flex-direction:column}
.mmfg-picked small{font-size:12px;color:var(--gold);font-weight:700}
.mmfg-picked strong{font-size:15px;font-weight:800}
.mmfg-picked .mmfg-link{padding:6px;font-size:13px}
.mmfg .mmfg-zone,.mmfg .mmfg-zone:hover,.mmfg .mmfg-zone:focus{background:#fff!important;color:#111!important}
.mmfg .mmfg-picked .mmfg-link,.mmfg .mmfg-switch{background:none!important;color:var(--muted)!important}
@media (max-width:360px){.mmfg-zone em{display:none}}

/* Téléphone (sert à la confirmation par SMS) */
.mmfg-telbox{display:flex;flex-direction:column;gap:8px;background:#fff;border:2px solid var(--ink);border-radius:18px;padding:14px}
.mmfg-telbox input{border-color:#CFC8BB}
.mmfg-telhelp{font-size:13px;line-height:1.45;color:#3D3830}
.mmfg-telhelp .ok{color:#2E6B34}
.mmfg-telhelp .ko{color:#A3261B;font-weight:600}
