/* ==========================================================
   MDS Parc — Application mobile (/app) et page d'installation (/installer)
   Palette reprise du logo : bleu panneau P, jaune, asphalte.
   ========================================================== */

@font-face { font-family: 'Overpass'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/overpass-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Overpass'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/overpass-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Overpass'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/overpass-latin-800-normal.woff2') format('woff2'); }

:root {
    --signal: #00538D;
    --signal-deep: #003D69;
    --jaune: #FFCC00;
    --asphalte: #1A171C;
    --bitume: #F1F2F3;
    --gris: #5C6066;
    --trait: #DADCDE;
    --blanc: #FFFFFF;
    --radius-sign: 14px;
    --radius-btn: 10px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--asphalte);
    background: var(--bitume);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--signal); }

:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 34rem; margin: 0 auto; padding: 0 1.25rem 2.5rem; }

/* ---------- En-tête ---------- */
.topbar {
    background: var(--blanc);
    border-bottom: 1px solid var(--trait);
}
.topbar__inner {
    max-width: 34rem; margin: 0 auto; padding: .75rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar__logo { display: block; height: 44px; width: auto; }

/* ---------- Bandeau d'installation (visible hors application) ---------- */
.install-strip {
    display: none;
    background: var(--asphalte); color: var(--blanc);
    text-decoration: none; font-size: .9375rem;
}
.install-strip.is-visible { display: block; }
.install-strip__inner {
    max-width: 34rem; margin: 0 auto; padding: .7rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.install-strip strong { color: var(--jaune); font-weight: 700; white-space: nowrap; }

/* ---------- Titres ---------- */
.intro { padding: 1.75rem 0 1.25rem; }
.intro h1 {
    margin: 0 0 .5rem;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.01em;
}
.intro p { margin: 0; color: var(--gris); }

h2 {
    font-size: 1.25rem; font-weight: 800; line-height: 1.2;
    margin: 2.25rem 0 .75rem;
}

/* ---------- Le panneau "P" : action principale ---------- */
.sign {
    display: flex; align-items: center; gap: 1rem;
    background: var(--signal);
    color: var(--blanc);
    text-decoration: none;
    border-radius: var(--radius-sign);
    padding: 1rem 1.25rem 1rem 1rem;
    border: 3px solid var(--blanc);
    box-shadow: 0 0 0 2px var(--signal);
    transition: background-color .15s ease;
}
.sign:active { background: var(--signal-deep); }
.sign__p {
    flex: none;
    display: grid; place-items: center;
    width: 3.5rem; height: 3.5rem;
    background: var(--blanc); color: var(--signal);
    border-radius: 8px;
    font-size: 2.5rem; font-weight: 800; line-height: 1;
    padding-top: .3rem;
}
.sign__text { display: flex; flex-direction: column; }
.sign__title { font-size: 1.375rem; font-weight: 800; line-height: 1.15; }
.sign__sub { font-size: .9375rem; opacity: .85; }

/* ---------- Boutons ---------- */
.btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.25rem; padding: .75rem 1.25rem;
    border-radius: var(--radius-btn);
    font: inherit; font-weight: 700; font-size: 1.0625rem;
    text-decoration: none; text-align: center;
    border: 0; cursor: pointer; width: 100%;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--call { background: var(--jaune); color: var(--asphalte); margin-top: .75rem; }
.btn--call:active { background: #E6B800; }
.btn--account {
    background: var(--blanc); color: var(--signal);
    border: 2px solid var(--signal); margin-top: .75rem;
}
.btn--account:active { background: #E6EEF4; }
.account-hint { margin: .5rem 0 0; font-size: .875rem; color: var(--gris); text-align: center; }
.btn--primary { background: var(--signal); color: var(--blanc); }
.btn--primary:active { background: var(--signal-deep); }
.btn--ghost {
    background: var(--blanc); color: var(--asphalte);
    border: 1.5px solid var(--asphalte);
    min-height: 2.75rem; width: auto; padding: .5rem 1rem; font-size: .9375rem;
}

/* ---------- Parkings ---------- */
.places { background: var(--blanc); border-radius: var(--radius-btn); border: 1px solid var(--trait); }
.place { padding: 1.1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; }
.place + .place { border-top: 1px solid var(--trait); }
.place__name { font-weight: 800; font-size: 1.125rem; margin: 0; }
.place__addr { margin: 0; color: var(--gris); font-size: .9375rem; font-style: normal; grid-column: 1; }
.place .btn--ghost { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Infos pratiques ---------- */
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: .6rem 0; border-bottom: 1px solid var(--trait); }
.facts li:last-child { border-bottom: 0; }
.facts b { display: block; font-weight: 700; }
.facts span { color: var(--gris); }

/* ---------- Liens ---------- */
.links { margin: 0; padding: 0; list-style: none; background: var(--blanc); border-radius: var(--radius-btn); border: 1px solid var(--trait); }
.links li + li { border-top: 1px solid var(--trait); }
.links a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .95rem 1.25rem; color: var(--asphalte); text-decoration: none; font-weight: 700;
}
.links a svg { width: 1rem; height: 1rem; color: var(--gris); }

.foot { margin-top: 2rem; font-size: .8125rem; color: var(--gris); text-align: center; }

/* ==========================================================
   Page d'installation
   ========================================================== */
.hero-install { text-align: center; padding: 2rem 0 1.5rem; }
.hero-install__icon {
    width: 112px; height: 112px; border-radius: 26px;
    background: var(--blanc); border: 1px solid var(--trait);
    box-shadow: 0 6px 18px rgba(0, 83, 141, .18);
}
.hero-install h1 { font-size: clamp(1.625rem, 6.5vw, 2rem); font-weight: 800; line-height: 1.15; margin: 1.25rem 0 .5rem; }
.hero-install p { margin: 0 auto; color: var(--gris); max-width: 26rem; }

.panel { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--radius-sign); padding: 1.25rem; margin-top: 1rem; }
.panel[hidden] { display: none; }
.panel h2 { margin-top: 0; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; padding: .85rem 0; }
.steps li + li { border-top: 1px solid var(--trait); }
.steps li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 2.25rem; height: 2.25rem;
    background: var(--signal); color: var(--blanc);
    border-radius: 7px; font-weight: 800; padding-top: .15rem;
}
.steps li > div { min-width: 0; }
.steps p { margin: .35rem 0 0; }
.steps .hint { font-size: .875rem; color: var(--gris); margin-top: .35rem; }
.ico-inline { display: inline-block; vertical-align: -.2em; width: 1.2em; height: 1.2em; color: var(--signal); }

.copy-row { display: flex; gap: .5rem; margin-top: .6rem; }
.copy-row .btn { flex: none; }
.copy-row input {
    flex: 1; min-width: 0; font: inherit; font-size: .875rem;
    padding: .5rem .7rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--bitume); color: var(--asphalte);
}

.benefits { list-style: none; padding: 0; margin: 0; }
.benefits li { display: flex; gap: .75rem; padding: .5rem 0; }
.benefits svg { width: 1.35rem; height: 1.35rem; flex: none; color: var(--signal); margin-top: .1rem; }

.qr { display: block; width: 200px; height: 200px; margin: .5rem auto 0; image-rendering: pixelated; }
.center { text-align: center; }
.note { font-size: .875rem; color: var(--gris); margin-top: .75rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
