/* MameCut — affichage dans l'application Android uniquement (html.mc-app). Le site web n'est pas concerné. */
html.mc-app{--mc-bar:72px}
html.mc-app body{padding-bottom:calc(var(--mc-bar) + env(safe-area-inset-bottom,0px))}
html.mc-app #account-bar{display:none!important}
html.mc-app .site-header{background:#fbf7f3;backdrop-filter:none;border-bottom:0}
html.mc-app .site-header .nav,html.mc-app .site-header .menu-toggle{display:none!important}
html.mc-app .site-header .brand small{display:none}
html.mc-app .site-header .lang-select{width:auto;min-height:44px;padding-block:0;font-weight:700}
html.mc-app .page-title{margin:4px 0 14px;padding:0;text-align:start}
html.mc-app .page-title h1{font-family:var(--disp,inherit);font-stretch:78%;font-weight:800;font-size:34px!important;line-height:1.04;margin:0}
html.mc-app .page-title p{display:none}
html.mc-app .toast{bottom:calc(var(--mc-bar) + 14px + env(safe-area-inset-bottom,0px))}
html.mc-app .mc-consent{bottom:calc(var(--mc-bar) + 12px + env(safe-area-inset-bottom,0px))}
html.mc-app #mc-offline{bottom:calc(var(--mc-bar) + 10px + env(safe-area-inset-bottom,0px))!important}

/* Barre du bas */
.mc-appbar{display:none}
html.mc-app .mc-appbar{position:fixed;inset:auto 0 0;z-index:8000;display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,1.22fr);box-sizing:content-box;height:var(--mc-bar);padding:0 0 env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #e9e0d9;font-family:system-ui,-apple-system,Roboto,"Noto Sans Arabic",sans-serif}
html.mc-app .mc-appbar a,html.mc-app .mc-appbar button{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:0 1px;text-align:center;font:500 11px/1.15 system-ui,-apple-system,Roboto,"Noto Sans Arabic",sans-serif;color:#6d605d;cursor:pointer;-webkit-tap-highlight-color:transparent}
html.mc-app .mc-appbar i{display:flex;align-items:center;justify-content:center;width:44px;height:28px;border-radius:14px}
html.mc-app .mc-appbar svg{width:22px;height:22px;display:block;max-width:none}
html.mc-app .mc-appbar [aria-current=page]{color:#b72c29;font-weight:700}
html.mc-app .mc-appbar [aria-current=page] i{background:#fdeceb}
html.mc-app .mc-appbar a:focus-visible,html.mc-app .mc-appbar button:focus-visible{outline:3px solid #e63c37;outline-offset:-3px}
@media print{.mc-appbar{display:none!important}html.mc-app body{padding-bottom:0}}

/* Écran d'ouverture : Simulateur 3D */
html.mc-app body.s3-page main{display:flex;flex-direction:column;min-height:calc(100dvh - var(--mc-bar) - 65px - env(safe-area-inset-bottom,0px))}
html.mc-app body.s3-page main>.wrap{flex:1;display:flex;flex-direction:column;padding-bottom:12px}
html.mc-app body.s3-page .page-title{margin:2px 0 4px}
html.mc-app body.s3-page .page-title h1{font:700 14px/1.4 inherit!important;font-family:inherit;font-size:14px!important;font-stretch:100%;color:#b72c29}
html.mc-app body.s3-page main h2{font-family:var(--disp,inherit);font-stretch:78%;font-weight:800;font-size:32px!important;line-height:1.04;margin:0 0 14px!important}
html.mc-app body.s3-page .s3-steps,html.mc-app body.s3-page main h2+.s3-floors~h2,html.mc-app body.s3-page .wrap>div[style*="height:56px"]{display:none}
html.mc-app .s3-floors{flex:1;display:flex;flex-direction:column;gap:10px;margin:0}
html.mc-app .s3-floor{flex:1 1 0;min-height:150px;border-width:1px;border-radius:16px}
html.mc-app .s3-floor:hover{transform:none;box-shadow:none}
html.mc-app .s3-floor .img{flex:1 1 0;min-height:80px;height:auto;background-position:center bottom}
html.mc-app .s3-floor .b{position:relative;flex:none;min-height:58px;box-sizing:border-box;justify-content:center;gap:0;padding:8px 58px 8px 14px}
html[dir=rtl].mc-app .s3-floor .b{padding:8px 14px 8px 58px}
html.mc-app .s3-floor b{font-size:17px;line-height:1.2}
html.mc-app .s3-floor .b>span{font-size:13px;line-height:1.3}
html.mc-app .s3-floor .b::after{content:"";position:absolute;inset-inline-end:12px;top:50%;width:36px;height:36px;margin-top:-18px;border-radius:50%;background:#e63c37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat}
html[dir=rtl].mc-app .s3-floor .b::after{transform:scaleX(-1)}

/* Boutons d'action collés au-dessus de la barre */
html.mc-app .mc-sticky{position:sticky;bottom:calc(var(--mc-bar) + env(safe-area-inset-bottom,0px));z-index:40;margin-inline:-16px;padding:10px 16px;background:#fbf7f3}

/* Mes projets */
html.mc-app #proj-new-row{order:9;margin:0}
html.mc-app #proj-new-row .btn{display:flex;justify-content:center;width:100%;min-height:52px;border-radius:14px}
html.mc-app .doc-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px;border-radius:16px}
html.mc-app .doc-row .doc-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
html.mc-app .doc-row .doc-actions>*{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 4px;text-align:center;line-height:1.15;white-space:normal;margin:0}
html.mc-app .doc-row [data-del]{border-color:#f3c4c2;color:#b72c29}
html.mc-app .projets-page main .wrap{display:flex;flex-direction:column;min-height:calc(100dvh - var(--mc-bar) - 65px - env(safe-area-inset-bottom,0px))}
html.mc-app .projets-page #list{flex:1}
html.mc-app .projets-page main .wrap>div[style*="height:56px"]{display:none}

/* Devis et factures */
html.mc-app .doc-bar{gap:8px;align-items:stretch}
html.mc-app #docs-open{flex:1 1 auto;min-height:56px;justify-content:flex-start;border-radius:14px;text-align:start}
html.mc-app #reset{min-height:56px;border-radius:14px}
html.mc-app .mc-step-info{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin-bottom:2px}
html.mc-app .mc-step-info span{color:#6d605d}
html.mc-app #stepper{display:block;margin:0 0 16px}
html.mc-app .mc-step-track{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
html.mc-app .mc-step-track button{all:unset;box-sizing:border-box;height:28px;display:flex;align-items:center;cursor:pointer}
html.mc-app .mc-step-track button::before{content:"";display:block;width:100%;height:6px;border-radius:3px;background:#e9e0d9}
html.mc-app .mc-step-track button.done::before,html.mc-app .mc-step-track button.active::before{background:#d9332e}
html.mc-app .devis-page .actions-row{position:sticky;bottom:calc(var(--mc-bar) + env(safe-area-inset-bottom,0px));z-index:40;flex-wrap:nowrap;margin:16px -16px 0;padding:10px 16px;background:#fbf7f3}
html.mc-app .devis-page .actions-row>span{flex:1}
html.mc-app .devis-page .actions-row .btn{min-height:52px;border-radius:14px}
html.mc-app .devis-page #next{width:100%;justify-content:center}
html.mc-app .devis-page .wrap>div[style*="height:56px"],html.mc-app .projets-page .wrap>div[style*="height:56px"],html.mc-app .profil-page .wrap>div[style*="height:56px"]{height:16px!important}

/* Mon profil */
html.mc-app .mc-lang-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html.mc-app .mc-lang-row button{min-height:44px;border:1px solid #e9e0d9;border-radius:12px;background:#fff;color:#241a19;font:500 14px system-ui,Roboto,"Noto Sans Arabic",sans-serif;cursor:pointer}
html.mc-app .mc-lang-row button[aria-pressed=true]{background:#241a19;color:#fff;border-color:#241a19;font-weight:700}
html.mc-app .mc-app-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 0;font-size:14px}
html.mc-app #p-logout{display:none}
html[dir=rtl].mc-app .mc-appbar #mc-appbar-out svg{transform:scaleX(-1)}
html.mc-app #reset{display:none}
html.mc-app .devis-page .type-choice{display:flex;flex-direction:column;gap:10px}
html.mc-app .devis-page .type-choice .choice{align-items:center;padding:16px 14px}
html.mc-app .projets-page #list{display:grid;align-content:start;gap:10px}
html.mc-app .projets-page #proj-new-row{margin:0 -16px}
html.mc-app .devis-page #prev[hidden]{display:none}
