:root {
  --ink: #17172c;
  --ink-soft: #555568;
  --paper: #f7f6f1;
  --white: #ffffff;
  --primary: #5146d9;
  --primary-dark: #3930ac;
  --primary-soft: #e9e7ff;
  --coral: #ff7657;
  --coral-soft: #ffe6df;
  --mint: #dff6e5;
  --green: #196b3b;
  --green-bg: #e1f7e8;
  --orange: #925000;
  --orange-bg: #fff0cf;
  --red: #b42318;
  --red-bg: #ffebe8;
  --border: #dcdbe2;
  --shadow: 0 18px 50px rgba(23, 23, 44, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: #c9c5ff; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.page-shell { min-height: calc(100vh - 260px); padding-top: 64px; padding-bottom: 80px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 16px; border-radius: 0 0 10px 10px; color: var(--white); background: var(--ink); }
.skip-link:focus { top: 0; }

/* Header */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(23, 23, 44, .11); background: rgba(247, 246, 241, .9); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 44px; }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav > a:not(.btn), .link-button { position: relative; border: 0; padding: 6px 0; color: var(--ink); background: none; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; }
.site-header nav > a:not(.btn)::after, .link-button::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 2px; content: ""; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .18s ease; }
.site-header nav > a:hover::after, .link-button:hover::after { transform: scaleX(1); transform-origin: left; }
.inline-form { display: inline; }

/* Typography */
h1, h2, h3 { color: var(--ink); letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 900px; margin: 0 0 16px; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .98; font-weight: 850; }
h2 { margin: 48px 0 16px; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.08; font-weight: 820; }
h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.25; font-weight: 760; }
p { margin-top: 0; }
.lead { max-width: 760px; color: var(--ink-soft); font-size: clamp(1.06rem, 2vw, 1.25rem); line-height: 1.55; }
.muted { color: var(--ink-soft); font-size: 14px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--primary-dark); font-size: 12px; font-weight: 800; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #38a968; box-shadow: 0 0 0 4px rgba(56, 169, 104, .14); }
.page-shell:not(.landing-shell) > h1,
.page-intro h1,
.dashboard-head h1,
.status-card h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.page-intro { max-width: 820px; margin-bottom: 42px; }
.page-intro-centered { margin-inline: auto; text-align: center; }
.page-intro-centered .eyebrow { justify-content: center; }
.page-intro-centered .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 19px; color: var(--white); background: var(--primary); box-shadow: 3px 3px 0 var(--ink); font-size: 15px; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { color: var(--white); background: var(--primary-dark); box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.btn-lg { min-height: 54px; padding: 14px 23px; border-radius: 14px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 7px 13px; border-radius: 9px; box-shadow: 2px 2px 0 var(--ink); font-size: 13px; }
.btn-secondary { color: var(--ink); background: var(--white); }
.btn-secondary:hover { color: var(--ink); background: var(--primary-soft); }
.btn-light { color: var(--ink); background: var(--white); }
.btn-light:hover { color: var(--ink); background: var(--coral-soft); }
.btn-danger { color: var(--red); background: var(--white); border-color: var(--red); box-shadow: 2px 2px 0 var(--red); }
.btn-danger:hover { color: var(--red); background: var(--red-bg); box-shadow: none; }
.btn-block { width: 100%; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.text-link:hover { color: var(--primary); }

/* Landing */
.landing-shell { padding-top: 0; padding-bottom: 0; }
.hero { display: grid; min-height: 680px; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); align-items: center; gap: clamp(42px, 7vw, 100px); padding: 72px 0 84px; }
.hero-copy h1 { max-width: 720px; font-size: clamp(3.2rem, 6vw, 5.65rem); }
.hero-copy h1 em { position: relative; color: var(--primary); font-style: normal; }
.hero-copy h1 em::after { position: absolute; right: 2px; bottom: -6px; left: 2px; height: 8px; border-radius: 99px; content: ""; background: var(--coral); transform: rotate(-1deg); }
.hero-lead { max-width: 650px; margin: 28px 0 30px; }
.hero-lead strong { color: var(--ink); }
.hero-actions { gap: 24px; }
.hero-reassurance { margin: 20px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.hero-visual { position: relative; min-height: 490px; border: 2px solid var(--ink); border-radius: 36% 64% 55% 45% / 42% 38% 62% 58%; background: var(--primary-soft); isolation: isolate; }
.hero-visual::before { position: absolute; z-index: -2; inset: 16px -14px -14px 14px; border: 2px solid var(--ink); border-radius: inherit; content: ""; background: var(--coral); }
.hero-visual::after { position: absolute; z-index: -1; inset: 0; border-radius: inherit; content: ""; background-image: radial-gradient(rgba(81, 70, 217, .22) 1px, transparent 1px); background-size: 18px 18px; }
.notification-card { position: absolute; z-index: 2; top: 105px; right: 35px; left: 35px; overflow: hidden; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); box-shadow: 8px 8px 0 var(--ink); transform: rotate(-2deg); animation: card-float 5s ease-in-out infinite; }
.notification-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.notification-top > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; line-height: 1.3; }
.notification-top strong { font-size: 14px; }
.notification-top span { color: var(--ink-soft); font-size: 12px; }
.mail-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--white); background: var(--primary); }
.mail-icon svg { width: 23px; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral) !important; }
.notification-body { padding: 22px 22px 24px; }
.mini-label { color: var(--primary-dark); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.notification-title { margin: 9px 0 5px; color: var(--ink); font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 820; line-height: 1.08; letter-spacing: -.035em; }
.offer-meta { display: flex; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.fake-link { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; border-radius: 10px; padding: 11px 14px; color: var(--white); background: var(--ink); font-size: 13px; font-weight: 750; }
.availability-pill { position: absolute; z-index: 3; top: 54px; left: -28px; display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); font-size: 12px; font-weight: 800; transform: rotate(3deg); }
.criteria-card { position: absolute; z-index: 3; right: -23px; bottom: 43px; display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 14px; padding: 12px 15px; background: var(--mint); box-shadow: 4px 4px 0 var(--ink); transform: rotate(2deg); }
.criteria-card > div { display: flex; flex-direction: column; line-height: 1.35; }
.criteria-card strong { font-size: 13px; }
.criteria-card span { color: var(--ink-soft); font-size: 11px; }
.criteria-check { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--white) !important; background: var(--green); font-weight: 800; }
.orbit { position: absolute; z-index: 1; border: 2px solid var(--ink); border-radius: 50%; background: var(--coral); }
.orbit-one { top: 38px; right: 48px; width: 18px; height: 18px; }
.orbit-two { bottom: 60px; left: 32px; width: 28px; height: 28px; background: var(--primary); }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr) minmax(190px, .9fr); overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.live-stats .stat { min-height: 112px; border: 0; border-right: 1px solid var(--border); border-radius: 0; padding: 22px 24px; background: transparent; }
.live-stats .value { font-size: 2.05rem; line-height: 1; }
.live-stats .label { margin-top: 9px; }
.live-stats .stat-highlight { background: var(--primary-soft); }
.stats-caption { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 20px; color: var(--ink-soft); font-size: 12px; font-weight: 650; text-align: center; }
.landing-section { padding: 130px 0 30px; }
.section-heading { max-width: 720px; margin-bottom: 45px; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.section-heading-row { display: grid; max-width: none; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 70px; }
.section-heading-row > p { margin: 0 0 5px; color: var(--ink-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; min-height: 315px; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.step-card:nth-child(2) { background: var(--primary-soft); transform: translateY(20px); }
.step-card:nth-child(3) { background: var(--coral-soft); }
.step-number { position: absolute; top: 18px; right: 22px; color: rgba(23, 23, 44, .28); font-size: 13px; font-weight: 850; letter-spacing: .08em; }
.step-icon { display: grid; width: 52px; height: 52px; margin-bottom: 70px; place-items: center; border: 2px solid var(--ink); border-radius: 14px; color: var(--white); background: var(--ink); font-size: 25px; font-weight: 700; }
.step-card h3 { font-size: 1.3rem; }
.step-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.plans-section { padding-bottom: 110px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan-card { position: relative; border: 2px solid var(--ink); border-radius: var(--radius); padding: 32px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.plan-card-featured { background: var(--ink); color: var(--white); box-shadow: 6px 6px 0 var(--coral); }
.plan-card-featured .plan-name, .plan-card-featured .price-inline, .plan-card-featured strong { color: var(--white); }
.plan-card-featured p, .plan-card-featured .plan-note { color: #c8c8d2; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.plan-name { font-size: 1.25rem; font-weight: 800; }
.price-inline { color: var(--primary); font-size: 2rem; font-weight: 850; letter-spacing: -.05em; }
.plan-card > p { color: var(--ink-soft); }
.plan-card ul { margin: 26px 0; }
.plan-card .plan-note { margin: 0; border-top: 1px solid rgba(127, 127, 145, .4); padding-top: 18px; color: var(--ink-soft); font-size: 13px; }
.popular-tag { position: absolute; top: -14px; right: 25px; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; color: var(--ink); background: var(--coral); font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.centered-action { margin: 32px 0 0; text-align: center; }
.trust-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-bottom: 110px; border-radius: 24px; padding: clamp(30px, 5vw, 52px); color: var(--white); background: var(--primary); box-shadow: 8px 8px 0 var(--ink); }
.trust-panel h2 { margin: 0 0 10px; color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.trust-panel p:last-child { max-width: 710px; margin: 0; color: #e4e2ff; }
.trust-panel .eyebrow { color: #d9d6ff; }
.trust-panel strong { color: var(--white); }
.trust-icon { display: grid; width: 70px; height: 70px; place-items: center; border: 2px solid var(--white); border-radius: 50%; }
.trust-icon svg { width: 38px; }

/* Cards and layouts */
.card { margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--white); box-shadow: 0 7px 24px rgba(23, 23, 44, .045); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.card-head h1 { margin-bottom: 20px; }
.card-head > h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--white); }
.stat .value { display: block; color: var(--ink); font-size: 1.75rem; font-weight: 850; letter-spacing: -.04em; }
.stat .label { display: block; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }

/* Pricing */
.pricing-page { max-width: 1040px; }
.pricing-grid { align-items: stretch; margin-top: 55px; }
.price-card { display: flex; min-height: 570px; flex-direction: column; border: 2px solid var(--ink); padding: clamp(26px, 4vw, 40px); box-shadow: 5px 5px 0 var(--ink); }
.price-card-featured { background: var(--ink); box-shadow: 7px 7px 0 var(--coral); }
.price-card h2 { margin: 0; font-size: 1.65rem; }
.price-card-featured h2, .price-card-featured .price { color: var(--white); }
.price-card-featured .price-detail, .price-card-featured > .muted { color: #c7c7d2; }
.price-card-featured ul { color: var(--white); }
.price-card-featured ul.check li::before { color: var(--ink); background: var(--coral); }
.price-card-featured .btn { color: var(--ink); background: var(--white); border-color: var(--white); box-shadow: 3px 3px 0 var(--coral); }
.price-card-featured .btn:hover { background: var(--coral-soft); }
.price-card ul { flex: 1; margin: 28px 0; }
.price-card form { margin-top: auto; }
.price-detail { margin: -4px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.faq-section { margin-top: 96px; }
.faq-section > h2 { margin: 0 0 32px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-card { margin: 0; box-shadow: none; }
.faq-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Authentication and status pages */
.auth-page { display: grid; place-items: center; }
.auth-layout { display: grid; width: min(100%, 960px); grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 2px solid var(--ink); border-radius: 24px; background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.auth-card { padding: clamp(30px, 6vw, 64px); }
.auth-card h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.auth-card .lead { margin-bottom: 32px; font-size: 1rem; }
.auth-card form { max-width: 430px; }
.auth-privacy { max-width: 430px; margin: 25px 0 0; color: var(--ink-soft); font-size: 12px; }
.auth-aside { position: relative; display: flex; justify-content: center; flex-direction: column; padding: clamp(32px, 5vw, 55px); color: var(--white); background: var(--primary); }
.auth-aside::after { position: absolute; right: -35px; bottom: -40px; width: 180px; height: 180px; border: 2px solid rgba(255,255,255,.45); border-radius: 50%; content: ""; }
.auth-aside h2 { margin: 0 0 18px; color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.auth-aside p { color: #dfddff; }
.auth-aside .eyebrow { color: #d2cfff; }
.auth-aside .check { position: relative; z-index: 1; font-size: 14px; }
.auth-aside .check li::before { color: var(--ink); background: var(--coral); }
.auth-aside-icon { display: grid; width: 64px; height: 64px; margin-bottom: 55px; place-items: center; border: 2px solid var(--white); border-radius: 17px; background: var(--coral); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); font-size: 30px; font-weight: 800; transform: rotate(-5deg); }
.status-page { display: grid; place-items: center; }
.status-card { width: min(100%, 790px); border: 2px solid var(--ink); border-radius: 24px; padding: clamp(30px, 7vw, 70px); background: var(--white); box-shadow: 7px 7px 0 var(--ink); text-align: center; }
.status-card .lead { margin-inline: auto; }
.status-card .actions { justify-content: center; }
.status-card .notice { margin-top: 28px; text-align: left; }
.status-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 24px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--white); background: var(--green); box-shadow: 3px 3px 0 var(--ink); font-size: 27px; font-weight: 850; }
.status-icon-warn { color: var(--ink); background: var(--orange-bg); }
.status-back { margin: 26px 0 0; font-size: 13px; font-weight: 700; }
.error-code { margin: 0; color: var(--coral); font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; letter-spacing: -.1em; line-height: .8; }

/* Dashboard and long forms */
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.dashboard-head h1 { margin-bottom: 0; }
.account-plan { max-width: 390px; border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; background: var(--white); }
.alert-card { border-left: 5px solid #b7b5bf; }
.alert-card-active { border-left-color: #47a66a; }
.alert-details { flex: 1 1 480px; }
.alert-details h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 1.3rem; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; margin-top: 65px; }
.section-title-row h2 { margin: 0 0 18px; }
.form-page { max-width: 920px; }
.form-panel { border: 2px solid var(--ink); border-radius: 20px; padding: clamp(22px, 5vw, 44px); background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.checkout-card { max-width: 460px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.prose-page { max-width: 860px; }
.prose-page > h2 { margin-top: 48px; font-size: 1.55rem; }
.prose-page > p, .prose-page > ul { color: var(--ink-soft); }
.prose-page > ul { border-left: 3px solid var(--primary-soft); padding-left: 20px; }

/* Pages ville (/logement-crous) */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; color: var(--ink-soft); font-size: 13px; }
.breadcrumb a { color: var(--ink-soft); }
.city-page .page-intro { margin-bottom: 30px; }
.city-stats { margin-bottom: 10px; }
.city-section { margin-top: 56px; }
.city-section > h2 { margin: 0 0 18px; font-size: clamp(1.45rem, 3vw, 2rem); }
.residence-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.city-map { margin-bottom: 18px; }
.residence-card { margin: 0; scroll-margin-top: 90px; transition: box-shadow .2s ease, border-color .2s ease; }
.residence-card-focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.residence-card h3 { margin-bottom: 4px; }
.residence-card > p { margin: 0 0 10px; }
.service-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.official-info { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 14px; }
.official-info summary { color: var(--primary-dark); font-weight: 750; cursor: pointer; }
.official-info p { margin: 8px 0 0; color: var(--ink-soft); }
.source-note { margin-top: 16px; }
.city-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.city-links li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.city-links a { font-weight: 750; }
.city-links .muted { display: block; white-space: nowrap; }
.trust-panel.city-cta { grid-template-columns: 1fr auto; margin-top: 64px; }
@media (max-width: 900px) {
  .trust-panel.city-cta { grid-template-columns: 1fr; }
  .trust-panel.city-cta .btn { grid-column: 1; justify-self: start; }
}

/* Forms */
label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 720; }
input[type=text], input[type=email], input[type=number], select { width: 100%; min-height: 48px; border: 1.5px solid #a9a8b3; border-radius: 11px; padding: 10px 13px; color: var(--ink); background: var(--white); font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease; }
input:hover, select:hover { border-color: var(--ink); }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(81, 70, 217, .12); }
.field { margin-bottom: 25px; }
.hint { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--white); font-weight: 500; cursor: pointer; }
.checkbox-row:hover { border-color: var(--primary); background: #faf9ff; }
.checkbox-row input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--primary); }
.scroll-box { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: #eeece5; }

/* Recherche de ville (combobox) */
.combo-shell { position: relative; }
.combo-input { padding-right: 42px; }
.combo-clear { position: absolute; top: 50%; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 8px; color: var(--ink-soft); background: none; font-size: 20px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.combo-clear:hover { color: var(--ink); background: var(--primary-soft); }
.combo-list { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; left: 0; max-height: 280px; margin: 6px 0 0; overflow-y: auto; border: 2px solid var(--ink); border-radius: 13px; padding: 6px; list-style: none; background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.combo-option { border-radius: 9px; padding: 9px 12px; font-size: 15px; font-weight: 550; cursor: pointer; }
.combo-option.is-active { color: var(--primary-dark); background: var(--primary-soft); }
.combo-empty { padding: 9px 12px; color: var(--ink-soft); font-size: 13px; }

/* Liste des résidences + carte */
.residence-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.residence-picker .scroll-box { max-height: 380px; margin: 0; }
.residence-map { position: relative; min-height: 380px; border: 1px solid var(--border); border-radius: 14px; background: #eeece5; }
.residence-map-note { position: absolute; z-index: 500; right: 10px; bottom: 10px; left: 10px; margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; color: var(--ink); background: rgba(255, 255, 255, .94); font-size: 12px; line-height: 1.4; }
.residence-map[hidden] { display: none; }
.leaflet-container { border-radius: 13px; font: inherit; }
.leaflet-container a { color: var(--primary-dark); }

/* Badges and notices */
.badge { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; line-height: 1.4; letter-spacing: .02em; }
.badge-premium { color: var(--primary-dark); background: var(--primary-soft); }
.badge-free, .badge-off { color: var(--ink-soft); background: #e9e8e3; }
.badge-on { color: var(--green); background: var(--green-bg); }
.badge-warn { color: var(--orange); background: var(--orange-bg); }
.badge-error { color: var(--red); background: var(--red-bg); }
.notice { margin-bottom: 22px; border: 1px solid transparent; border-left-width: 5px; border-radius: 12px; padding: 16px 18px; overflow-wrap: anywhere; }
.notice-info { border-color: #bbb6ff; background: var(--primary-soft); }
.notice-warn { border-color: #efbc57; background: var(--orange-bg); }
.notice-error { border-color: #ef8b82; color: var(--red); background: var(--red-bg); }
.notice-success { border-color: #78c891; color: var(--green); background: var(--green-bg); }

/* Lists, tables and utility */
ul.clean { padding: 0; list-style: none; }
ul.clean li { padding: 5px 0; }
ul.check li { position: relative; padding-left: 27px; }
ul.check li::before { position: absolute; top: 5px; left: 0; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; content: "✓"; color: var(--green); background: var(--green-bg); font-size: 11px; font-weight: 900; }
.plan-card-featured ul.check li::before { color: var(--ink); background: var(--coral); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--border); padding: 11px 13px; text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf9ff; }
th { color: var(--ink-soft); background: #eeece5; font-size: 11px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
code { border-radius: 5px; padding: 2px 6px; background: #e9e8e3; font-size: 12px; overflow-wrap: anywhere; }
.price { margin: 12px 0; color: var(--primary); font-size: 3rem; font-weight: 850; letter-spacing: -.06em; line-height: 1; }

/* Footer */
.site-footer { border-top: 1px solid rgba(23, 23, 44, .14); padding: 45px 0; background: #efede6; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: center; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { display: block; flex-shrink: 0; width: 38px; height: 38px; }
.footer-brand p { margin: 0; line-height: 1.35; }
.footer-brand span { color: var(--ink-soft); font-size: 12px; }
.footer-disclaimer { max-width: 530px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.footer-links a { color: var(--ink); font-size: 12px; font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

@keyframes card-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) {
  .residence-picker { grid-template-columns: minmax(0, 1fr); }
  .residence-map { min-height: 300px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 62px; }
  .hero-copy { max-width: 730px; }
  .hero-visual { width: min(570px, 92%); min-height: 450px; margin: 10px auto 0; }
  .live-stats { grid-template-columns: repeat(3, 1fr); }
  .stats-caption { grid-column: 1 / -1; min-height: 56px; border-top: 1px solid var(--border); }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 235px; }
  .step-card:nth-child(2) { transform: none; }
  .step-icon { margin-bottom: 36px; }
  .section-heading-row { grid-template-columns: 1fr; gap: 22px; }
  .trust-panel { grid-template-columns: auto 1fr; }
  .trust-panel .btn { grid-column: 2; justify-self: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-disclaimer { grid-column: 1 / -1; grid-row: 2; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { min-height: 390px; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1180px); }
  .page-shell { padding-top: 42px; padding-bottom: 60px; }
  .header-inner { min-height: 66px; }
  .brand-logo { height: 38px; }
  .site-header nav { gap: 13px; }
  .site-header nav > a:not(.btn), .link-button { font-size: 12px; }
  .site-header .btn-sm { min-height: 34px; padding: 7px 10px; }
  .hero { gap: 60px; padding: 48px 0 68px; }
  .hero-copy h1 { font-size: clamp(2.85rem, 14vw, 4rem); }
  .hero-copy h1 br:nth-child(2) { display: none; }
  .hero-copy h1 em::after { height: 5px; }
  .hero-lead { margin-top: 23px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-reassurance { line-height: 1.5; }
  .hero-visual { width: calc(100% - 12px); min-height: 380px; border-radius: 28% 72% 60% 40% / 40% 35% 65% 60%; }
  .notification-card { top: 93px; right: 16px; left: 16px; }
  .notification-body { padding: 18px; }
  .availability-pill { top: 43px; left: -10px; }
  .criteria-card { right: -8px; bottom: 29px; }
  .orbit-two { display: none; }
  .live-stats { grid-template-columns: 1fr; }
  .live-stats .stat { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 17px 20px; }
  .live-stats .value { display: inline-block; min-width: 66px; font-size: 1.65rem; }
  .live-stats .label { display: inline; margin: 0; }
  .landing-section { padding-top: 90px; }
  .section-heading { margin-bottom: 32px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 25px; }
  .trust-panel { grid-template-columns: 1fr; gap: 20px; margin-bottom: 80px; }
  .trust-icon { width: 58px; height: 58px; }
  .trust-panel .btn { grid-column: 1; }
  .card { padding: 19px; }
  .grid-2 { grid-template-columns: 1fr; }
  .actions { align-items: stretch; }
  .actions .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-disclaimer { grid-column: 1; grid-row: auto; }
  .footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
  .faq-grid { grid-template-columns: 1fr; }
  .price-card { min-height: auto; }
  .auth-layout { border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); }
  .auth-aside { min-height: 360px; }
  .auth-aside-icon { margin-bottom: 35px; }
  .dashboard-head { align-items: stretch; flex-direction: column; }
  .account-plan { max-width: none; }
  .form-panel { border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
}
@media (max-width: 420px) {
  .brand-logo { height: 32px; }
  .header-inner { gap: 12px; }
  .site-header nav { gap: 12px; }
  .hero-visual { min-height: 365px; }
  .availability-pill { font-size: 10px; }
  .criteria-card span { display: none; }
}
