/* ============================================================
   Consigne Montréal — styles
   ============================================================ */
:root {
  --navy: #1b3a78;
  --navy-d: #10234a;
  --ink: #0f172a;
  --text: #1e293b;
  --sub: #5b6475;
  --bg: #ffffff;
  --alt: #f3f5f9;
  --line: #e2e6ee;
  --accent: #e8a33d;
  --accent-d: #c7852a;
  --red: #d52b1e;
  --green: #1f9d55;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 35, 74, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.noscroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 80px 0; }
.section.alt { background: var(--alt); }
.section.dark { background: var(--navy-d); color: #dbe4f5; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-lead { color: var(--sub); font-size: 1.1rem; max-width: 680px; margin-bottom: 36px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1a1205; box-shadow: 0 6px 16px rgba(232, 163, 61, .35); }
.btn-primary:hover { background: #f0b04f; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: rgba(27, 58, 120, .06); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-lg { padding: 17px 26px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); font-weight: 700; text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-d); font-weight: 800; font-size: 1.1rem; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--navy); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: #fff; font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 10px; cursor: pointer; color: var(--sub); }
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- Héros ---------- */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #2a4f9a 0%, var(--navy-d) 60%); color: #dbe4f5; padding: 64px 0 80px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.bag-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; color: #fff; font-size: 1.05rem; letter-spacing: .02em; }
.bag-line b { background: var(--accent); color: #1a1205; border-radius: 8px; padding: 2px 10px; letter-spacing: .12em; }
.footer-bag { margin: 0 0 8px; color: #dbe4f5; }
.footer-bag b { color: var(--accent); letter-spacing: .1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1); padding: 6px 14px 6px 6px; border-radius: 999px; }
.metro-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 900; font-size: .85rem; border: 3px solid var(--navy); flex: none; }
.metro-dot.big { width: 44px; height: 44px; font-size: 1.3rem; }
.countdown { display: flex; gap: 10px; margin-bottom: 14px; }
.countdown b {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem;
  animation: tick 3s infinite;
}
.countdown b:nth-child(2) { animation-delay: 1s; }
.countdown b:nth-child(3) { animation-delay: 2s; }
@keyframes tick { 0%, 30% { background: var(--accent); color: #1a1205; transform: scale(1.08); } 34%, 100% { background: rgba(255, 255, 255, .12); color: #fff; transform: none; } }
.lead { font-size: 1.2rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.hero-points li::before { content: "✓ "; color: var(--accent); }

.hero-visual { position: relative; }
.wall-svg { width: 100%; max-width: 440px; margin: 0 auto; display: block; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.wall-bag { animation: drop 1.4s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.badge-float {
  position: absolute; inset-inline-start: -6px; bottom: 30px; display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); font-weight: 700; max-width: 260px;
}
.badge-float strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }

/* ---------- Étapes 3, 2, 1 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.step { position: relative; background: var(--alt); border-radius: var(--radius); padding: 30px 26px 24px; }
.step-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--navy); color: #fff; font-size: 2rem; font-weight: 900; margin-bottom: 16px; }
.step.go .step-n { background: var(--accent); color: #1a1205; }
.step p { color: var(--sub); margin: 0; }

/* ---------- Le casier ---------- */
.fit { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.fit-visual { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fit-svg { width: 100%; height: auto; display: block; }
.fit-svg .shell { fill: #2f4163; }
.fit-svg .cavity { fill: #eef2f8; }
.fit-svg .door-line { stroke: var(--accent); stroke-width: 6; }
.fit-svg .dim { stroke: #94a3b8; stroke-width: 1.5; }
.fit-svg .dim-txt { font: 600 14px system-ui, sans-serif; fill: var(--sub); }
.fit-svg .fit-title { font: 700 15px system-ui, sans-serif; fill: var(--ink); }
.fit-svg .item { stroke: rgba(0, 0, 0, .18); stroke-width: 1.5; }
.fit-svg .load { animation: pop .45s ease-out; transform-origin: center bottom; }
@keyframes pop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.fit-caption { margin: 8px 0 0; color: var(--sub); font-weight: 600; text-align: center; }

.dim-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.dim { background: #fff; border-radius: 12px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.dim strong { display: block; font-size: 1.25rem; color: var(--navy); }
.dim span { font-size: .85rem; color: var(--sub); }
.checker { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.preset { border: 1px dashed #b6c0d4; background: var(--alt); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--text); }
.preset:hover { border-color: var(--navy); }
.chk-result { margin-top: 14px; border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.chk-result.ok { background: #e7f6ee; color: #0f5132; }
.chk-result.no { background: #fdecea; color: #7a1d14; }
.chk-result.warn { background: #fff6e0; color: #6b4a00; }
.chk-result .btn { justify-self: start; margin-top: 4px; }

.showcase { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; margin-top: 56px; }
.showcase-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { padding: 6px 0; padding-inline-start: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 900; }

/* ---------- Tarifs ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; background: #fff; }
.pcard.best { border: 2px solid var(--accent); box-shadow: var(--shadow); transform: translateY(-6px); }
.pcard .tag, .tag { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--accent); color: #1a1205; font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pcard-price { font-size: 2.8rem; font-weight: 900; color: var(--navy); margin: 6px 0 0; line-height: 1; }
.pcard-per { color: var(--sub); margin-bottom: 14px; }
.pcard-note { min-height: 2.6em; }

/* ---------- Réservation ---------- */
.booking { max-width: 640px; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.booking fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.booking legend { font-weight: 800; color: var(--ink); margin-bottom: 10px; font-size: 1.05rem; }
.dur-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dur input { position: absolute; opacity: 0; }
.dur span { display: grid; gap: 2px; text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 14px 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.dur span i { font-style: normal; color: var(--sub); font-weight: 700; }
.dur input:checked + span { border-color: var(--navy); background: #eef3fc; }
.dur input:focus-visible + span { outline: 3px solid var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; align-items: end; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 12px 12px; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.stepper { display: inline-flex; border: 1px solid #cfd6e3; border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; border: 0; background: var(--alt); font-size: 1.4rem; cursor: pointer; color: var(--navy); }
.stepper input { width: 64px; text-align: center; border: 0; font: inherit; font-size: 1.15rem; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--alt); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.sum-line { margin: 0 0 4px; font-weight: 600; }
.sum-line small { color: var(--sub); font-weight: 500; }
.sum-avail { margin: 0; font-size: .88rem; color: var(--green); font-weight: 700; }
.dot-green { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sum-total { margin: 0; text-align: end; white-space: nowrap; }
.sum-total strong { display: block; font-size: 1.8rem; color: var(--navy); }
.form-error { color: var(--red); font-weight: 600; }
.secure-note { text-align: center; color: var(--sub); font-size: .88rem; margin: 12px 0 0; }

/* ---------- Sécurité ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.feat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 24px; }
.feat-ic { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.feat p { margin: 0; color: #b9c6df; }

/* ---------- Accès ---------- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.access-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.access-list li { display: flex; align-items: center; gap: 12px; }
.access-list .ic { width: 26px; text-align: center; font-size: 1.2rem; }
.contact-rows { border: 1px solid var(--line); border-radius: 14px; }
.crow { display: grid; grid-template-columns: 100px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow-label { font-weight: 700; color: var(--sub); font-size: .9rem; }
.masked { color: #9aa3b5; letter-spacing: 1px; filter: blur(1.5px); }
.map { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-fog { position: absolute; inset: 0; backdrop-filter: blur(3px); }
.map-zone { position: absolute; top: 38%; left: 42%; width: 150px; height: 150px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(27, 58, 120, .16); border: 2px dashed rgba(27, 58, 120, .5); display: grid; place-items: center; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 16px rgba(27, 58, 120, .08); } }
.map-overlay { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.map-overlay p { margin: 0; font-weight: 600; font-size: .92rem; }

/* ---------- Pour qui / FAQ ---------- */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; }
.use { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.use > span { font-size: 2rem; }
.use p { color: var(--sub); margin: 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
details p { margin: 10px 0 0; color: var(--sub); }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #aeb8cc; padding: 44px 0 90px; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 4px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer .link-btn { color: #fff; }
.footer-legal { font-size: .82rem; margin-top: 26px; color: #7d889e; }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 36, .6); }
.modal-card { position: relative; background: #fff; border-radius: 22px; padding: 30px 28px; max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: pop .3s ease-out; }
.modal-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 38px; height: 38px; border: 0; background: var(--alt); border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-ic { font-size: 2.4rem; }
.modal-card h2 { font-size: 1.45rem; margin-top: 6px; }
.study-action { background: #eef3fc; color: var(--navy-d); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.study-nopay { font-size: .9rem; color: var(--sub); }
.follow { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.follow-title { font-weight: 800; margin: 0; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.consent input { margin-top: 4px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.privacy-note { margin: 0; font-size: .85rem; color: var(--sub); }
.footer a.link-btn { display: inline-flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .top-actions { margin-inline-start: auto; }
  .hero-in, .fit, .showcase, .access { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .features, .uses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .top-actions .btn { display: none; }
  .logo { font-size: 1rem; }
  .steps, .prices, .features, .uses { grid-template-columns: 1fr; }
  .pcard.best { transform: none; }
  .dim-cards { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .booking { padding: 20px; }
  .summary { flex-direction: column; align-items: stretch; }
  .sum-total { text-align: start; }
  .crow { grid-template-columns: 1fr auto; }
  .crow-label { grid-column: 1 / -1; }
  .map-overlay { flex-direction: column; align-items: stretch; text-align: center; }
  .badge-float { position: static; margin: 12px auto 0; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar > * { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: var(--alt); border-radius: 12px; padding: 7px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--navy); text-decoration: none; cursor: pointer; }
  .mobile-bar .primary { background: var(--accent); color: #1a1205; }
}
/* Écrans tactiles : zones à toucher d'au moins 40 px */
@media (pointer: coarse) {
  .langs button { min-height: 40px; padding: 6px 12px; }
  .preset, .chip { min-height: 40px; }
  .link-btn { min-height: 40px; padding: 8px 0; }
  .stepper button { min-height: 44px; }
}
@media (max-width: 980px) {
  .map { max-height: 420px; aspect-ratio: auto; height: 70vw; }
}
@media (max-width: 360px) {
  .booking { padding: 16px; }
  .dur span { padding: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
