/*
 * Appli Le Murigny : charte du site (ardoise #151d20, bronze #a66f3e, crème #f5efe5).
 * Pensée pour des personnes peu à l'aise : texte d'au moins 19 px, boutons d'au moins 60 px, fort contraste.
 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ma-body { margin: 0; background: #151d20; color: #151d20; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 19px; line-height: 1.45; }
.ma-root { max-width: 560px; min-height: 100vh; margin: 0 auto; background: #f5efe5; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.ma-loading { padding: 40px 24px; text-align: center; color: #3a444a; }
.ma-root a { color: #7a4a20; }

.ma-header { background: #151d20; color: #fff; text-align: center; padding: calc(18px + env(safe-area-inset-top)) 20px 14px; }
.ma-logo { max-height: 72px; width: auto; max-width: 70%; }
.ma-logo-text { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; }
.ma-kicker { margin: 6px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #e0bd8e; }

.ma-section { padding: 22px 20px 6px; }
.ma-center { text-align: center; }
.ma-title { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.2; }
.ma-title.ma-xl { font-size: 32px; margin-bottom: 18px; }
.ma-subtitle { margin: 0 0 12px; font-size: 22px; }
.ma-lead { font-size: 22px; margin: 0 0 14px; }
.ma-hint { font-size: 20px; color: #3a444a; margin: 8px 0 14px; }
.ma-option { font-size: 19px; color: #3a444a; margin: 22px 0 4px; }
.ma-count { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a4a20; }
.ma-ask { margin: 26px 0 8px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 2px solid #a66f3e; font-size: 20px; font-weight: 700; text-align: center; }
.ma-empty { background: #fff; border-radius: 12px; padding: 18px; color: #3a444a; }

.ma-plat { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 14px; border: 1px solid #e6dccb; }
.ma-plat-photo { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.ma-plat-text { padding: 16px 18px 18px; }
.ma-plat-text h2 { margin: 6px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.2; }
.ma-plat-text p { margin: 4px 0 0; color: #3a444a; }
.ma-tag { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a4a20; }
.ma-plat-text .ma-price { font-size: 24px; font-weight: 800; color: #7a4a20; }
.ma-plat-text .ma-price small { font-size: 17px; font-weight: 400; color: #3a444a; }
.ma-plat-text .ma-formules-title { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a4a20; }
.ma-formules { list-style: none; margin: 4px 0 0; padding: 0; }
.ma-formules li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid #eee4d3; }
.ma-formules li span { color: #151d20; }
.ma-formules li b { color: #7a4a20; white-space: nowrap; }

.ma-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 12px 18px; border-radius: 14px; border: 2px solid #151d20; background: #fff; color: #151d20; font: inherit; font-size: 20px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.ma-root a.ma-button { color: #151d20; }
/* Le « bouton orange » des fiches papier. */
.ma-button.ma-primary, .ma-root a.ma-button.ma-primary { background: #c9681a; border-color: #c9681a; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.ma-button.ma-big { min-height: 76px; font-size: 23px; margin: 12px 0; }
.ma-button:disabled { opacity: .6; }
.ma-link { background: none; border: 0; min-height: 56px; padding: 14px; font: inherit; color: #3a444a; text-decoration: underline; cursor: pointer; }
.ma-error { margin: 12px 0 0; padding: 14px; border-radius: 12px; background: #fbe5e5; color: #8a1f1f; font-weight: 700; }
.ma-error[hidden] { display: none; }

.ma-notif { margin: 8px 0 4px; }
.ma-notif-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #dff2e6; color: #14613d; font-weight: 700; border-radius: 12px; padding: 4px 6px 4px 16px; }

.ma-news { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e6dccb; border-radius: 12px; padding: 10px; margin-bottom: 10px; text-decoration: none; }
.ma-news img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.ma-news strong { display: block; color: #151d20; line-height: 1.25; }
.ma-news span { display: block; margin-top: 4px; font-size: 16px; color: #3a444a; }

.ma-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 20px 0; }
.ma-actions .ma-button { padding: 10px 4px; font-size: 18px; }
.ma-footer { padding: 22px 20px 0; text-align: center; font-size: 16px; color: #3a444a; }

.ma-done { width: 96px; margin: 8px auto 8px; color: #14613d; }
.ma-done svg { display: block; width: 100%; height: 100%; }
.ma-app-icon { width: 104px; height: 104px; border-radius: 24px; margin: 6px auto 12px; display: block; border: 1px solid #d9ccb5; }

/* Page d'installation iPhone : une consigne par écran, rien de fixe ni de flottant. */
.ma-choice { display: flex; align-items: center; gap: 16px; background: #fff; border: 2px solid #151d20; border-radius: 16px; padding: 16px; margin: 14px 0 8px; }
.ma-choice strong { display: block; font-size: 22px; line-height: 1.2; }
.ma-choice div span { display: block; margin-top: 4px; font-size: 20px; color: #3a444a; }
.ma-pict { flex: 0 0 auto; width: 84px; height: 84px; padding: 12px; border-radius: 18px; background: #eef4fb; }
.ma-pict.ma-ios { color: #0a66d8; }
.ma-pict svg, .ma-pict-s svg { display: block; width: 100%; height: 100%; }
.ma-pict-s { width: 34px; height: 34px; color: #151d20; flex: 0 0 auto; }
.ma-capture { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #d9ccb5; margin: 6px 0 10px; }
.ma-video { display: block; width: 100%; max-height: 62vh; border-radius: 14px; background: #000; margin: 0 0 16px; }
.ma-nav { display: flex; gap: 10px; margin: 20px 0 0; }
.ma-nav .ma-button { min-height: 68px; }
.ma-nav .ma-button:not(.ma-primary) { flex: 0 0 34%; }

.ma-mock { background: #fff; border-radius: 16px; border: 1px solid #d9ccb5; overflow: hidden; margin: 8px 0 4px; }
.ma-mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; font-size: 20px; color: #6b747a; border-top: 1px solid #eee4d3; }
.ma-mock-row:first-child { border-top: 0; }
.ma-mock-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 14px; font-size: 18px; color: #6b747a; background: #f4f1ea; }
.ma-mock-bar b { color: #151d20; font-size: 17px; }
.ma-mock-target { color: #151d20; font-weight: 700; outline: 4px solid #c8401e; outline-offset: -4px; border-radius: 12px; background: #fff7f3; }
.ma-mock-add { padding: 8px 12px; outline-offset: 0; color: #0a66d8; }

.ma-address { font-size: 22px; font-weight: 800; word-break: break-all; background: #fff; border-radius: 12px; padding: 16px; }
.ma-link-field { width: 100%; margin-top: 10px; padding: 14px; font: inherit; border: 2px solid #151d20; border-radius: 12px; }
.ma-link-field[hidden] { display: none; }

.ma-ask span { display: block; margin-top: 4px; font-size: 18px; font-weight: 400; }
.ma-inline { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.ma-inline svg { display: block; width: 100%; height: 100%; }
.ma-inline.ma-ios { color: #0a66d8; }
.ma-choice + .ma-button { margin-bottom: 6px; }
