/* locbail.eu — feuille de style principale (application) */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --ink: #101825;
  --ink-soft: #525c6a;
  --ink-mute: #8a919e;
  --ivory: #f9f6f0;
  --ivory-deep: #efe7d9;
  --paper: #ffffff;
  --line: #e4dac7;
  --line-soft: #f1eade;
  --navy: #08203a;
  --navy-soft: #123a5e;
  --navy-deep: #051628;
  --blue: #1668b3;
  --blue-soft: #e7f1fb;
  --green: #157a4c;
  --green-soft: #e2f4ea;
  --orange: #b96a12;
  --orange-soft: #fdefdb;
  --red: #a8332a;
  --red-soft: #fbe9e7;
  --gold: #b98a3e;
  --gold-deep: #8b6220;
  --gold-bright: #e6c584;
  --gold-soft: #f9f0dd;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(10, 31, 53, .04);
  --shadow-lg: 0 18px 48px rgba(10, 31, 53, .12);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--navy);
}

h1 { font-size: 38px; font-weight: 400; letter-spacing: -.015em; }
h2 { font-size: 27px; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.rule {
  width: 46px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 18px 0;
}
.rule-center { margin-left: auto; margin-right: auto; }
.lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
}

.ico { flex: 0 0 auto; display: block; }

/* ---------- Structure ---------- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.page-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  min-height: 8px;
}

.menu-btn {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 14px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease;
}
.menu-btn:active { transform: scale(.94); }

.layout-app .page { padding-top: 64px; }

/* ---------- Tiroir de navigation ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 34, .42);
  z-index: 80;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: var(--paper);
  z-index: 90;
  border-radius: 0 24px 24px 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility .28s;
  box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top, 0px);
}
.drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.drawer-head span { display: block; font-size: 11.5px; color: var(--ink-mute); line-height: 1.4; max-width: 170px; }
.brand-mark { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 2px; }
.drawer-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--ink-mute);
  padding: 4px;
  cursor: pointer;
}

.drawer-nav { overflow-y: auto; padding: 10px 8px; flex: 1; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14.5px;
}
.drawer-nav a .ico { color: var(--ink-mute); }
.drawer-nav a.active { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.drawer-nav a.active .ico { color: var(--navy); }
.drawer-nav a:hover { text-decoration: none; background: #f6f3ed; }

.drawer-foot { border-top: 1px solid var(--line); padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
.drawer-logout { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 14px; }

/* ---------- Barre inférieure ---------- */

.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 5px;
  box-shadow: 0 6px 22px rgba(10, 31, 53, .1);
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  border-radius: var(--radius-sm);
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: .04em;
  transition: transform .12s ease;
}
.tabbar .tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar .tab.active { color: var(--navy); font-weight: 600; background: var(--gold-soft); }
.tabbar .tab:active { transform: scale(.95); }
.tabbar .tab:hover { text-decoration: none; }

/* ---------- Pied de page ---------- */

.site-footer {
  margin-top: 54px;
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
  padding: 34px 20px 26px;
  color: var(--ink);
}
.f-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.f-brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}
.f-tag { font-size: 13px; color: var(--ink-soft); max-width: 420px; font-weight: 300; line-height: 1.65; }
.f-info { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 9px; }
.f-info li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-soft); }
.f-info .ico { color: var(--gold-deep); }
.f-info a { color: var(--ink-soft); }
.f-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 18px 0; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.f-links a { color: var(--ink-mute); }
.f-links a:hover { color: var(--navy); text-decoration: none; }
.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 300px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  margin: 6px 0 16px;
  transition: background .18s ease, color .18s ease;
}
.btn-install:hover { background: var(--navy); color: #fff; }
.f-copy { font-size: 11px; color: var(--ink-mute); margin: 0; line-height: 1.6; letter-spacing: .02em; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  text-align: center;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { text-decoration: none; background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; height: 38px; font-weight: 500; letter-spacing: .02em; text-transform: none; font-size: 13px; }
.btn-danger { background: transparent; color: var(--red); border-color: #e6cfcd; }
.btn-sm { height: 34px; padding: 0 15px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.btn-link:hover { text-decoration: none; color: var(--gold-deep); border-color: var(--gold-deep); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Formulaires ---------- */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  min-height: 46px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 92, 158, .12);
}
.field .hint { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 5px; }
.field-pass { position: relative; }
.field-pass .pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--ink-mute);
  padding: 6px;
  cursor: pointer;
}
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin: 4px 0 16px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); }
.form-error {
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin: 4px 0 14px;
}
.form-ok {
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin: 4px 0 14px;
}
.notice { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; }
.notice-ok { background: var(--green-soft); color: var(--green); }
.notice-alert { background: var(--red-soft); color: var(--red); }
.notice-info { background: var(--blue-soft); color: var(--navy); }

/* ---------- Cartes ---------- */

.card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 18px; }
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; font-family: var(--sans); color: var(--ink); letter-spacing: -.01em; }
.card-sub { font-size: 13px; color: var(--ink-soft); margin: 0; }
.card-flat { box-shadow: none; background: transparent; border: 0; padding: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; color: var(--ink-mute); letter-spacing: .01em; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 40px 0 16px;
}
.section-title h2 { margin: 0; font-size: 27px; }
.section-title .link-more { font-size: 13px; color: var(--ink-mute); }

.hero-block { padding: 14px 0 6px; }
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-brand strong { font-family: var(--serif); font-size: 40px; line-height: 1.05; letter-spacing: -.02em; color: var(--navy); }
.hero-sub { color: var(--ink-soft); font-size: 15px; max-width: 520px; }

/* ---- Façade éditoriale ---- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0 11px;
  border-bottom: 1px solid rgba(185, 138, 62, .28);
}
.masthead-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.masthead-brand svg { width: 28px; height: 28px; flex: 0 0 auto; }
.masthead-brand strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.masthead-links { display: none; align-items: center; gap: 26px; }
.masthead-links a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.masthead-links a:hover { color: var(--navy); text-decoration: none; }
.masthead-cta { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; }
.masthead-cta .btn-sm { height: 32px; padding: 0 12px; font-size: 10px; letter-spacing: .05em; white-space: nowrap; }
.masthead-cta .btn-ghost { height: 32px; padding: 0 8px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
@media (max-width: 767px) {
  .masthead-cta .btn-ghost { display: none; }
  .masthead-cta .btn-sm { height: 30px; padding: 0 10px; font-size: 9.5px; }
  .masthead-brand strong { font-size: 15px; letter-spacing: .1em; }
  .masthead-brand svg { width: 25px; height: 25px; }
}

.hero {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 30px 0 34px;
}
.hero-copy h1 {
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-caption::before { content: ""; width: 26px; height: 1px; background: var(--gold); flex: 0 0 auto; }

.marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.marquee span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.marquee .ico { color: var(--gold); }

.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.pillar .pillar-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 10px;
}
.pillar h3 { font-size: 21px; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--ink-soft); margin: 0; font-weight: 300; line-height: 1.65; }

.feature-grid { display: grid; gap: 14px; }
.feature {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.feature .ico { color: var(--gold-deep); margin-bottom: 10px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--ink-soft); margin: 0; font-weight: 300; line-height: 1.6; }

.band {
  background: var(--navy);
  color: #f4f1ea;
  border-radius: var(--radius);
  padding: 32px 22px;
  margin: 34px 0;
}
.band h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.band p { color: rgba(255, 255, 255, .74); font-size: 14.5px; font-weight: 300; line-height: 1.7; margin-bottom: 18px; }
.band .eyebrow { color: var(--gold); }
.band .rule { background: var(--gold); }
.band .btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.band .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.band .btn-gold { background: var(--gold); border-color: var(--gold); color: #14212f; }
.band .btn-gold:hover { background: #fff; border-color: #fff; color: var(--navy); }
.band .trust-list { margin-bottom: 22px; }
.band .trust-list li { color: rgba(255, 255, 255, .8); }
.band .trust-list .ico { color: var(--gold); }

.steps { display: grid; gap: 0; }
.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-deep);
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 13.5px; color: var(--ink-soft); margin: 0; font-weight: 300; }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust-list li { display: flex; gap: 11px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.trust-list .ico { color: var(--green); flex: 0 0 auto; margin-top: 2px; }

.closing {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin: 34px 0;
}
.closing h2 { font-size: 28px; margin-bottom: 10px; }
.closing p { color: var(--ink-soft); font-size: 14.5px; max-width: 440px; margin: 0 auto 20px; font-weight: 300; }
.closing .hero-actions { justify-content: center; }

/* ---------- Tuiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.tile {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.tile .tile-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.tile .tile-value { font-family: var(--serif); font-size: 24px; color: var(--navy); line-height: 1.1; }
.tile .tile-foot { font-size: 11.5px; color: var(--ink-mute); margin-top: 4px; }

/* ---------- Listes et badges ---------- */

.list { display: grid; gap: 10px; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  box-shadow: var(--shadow);
}
.list-row .row-main { flex: 1; min-width: 0; }
.list-row .row-title { font-size: 14.5px; font-weight: 600; margin: 0 0 2px; color: var(--ink); }
.list-row .row-sub { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.row-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--ivory-deep);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--navy); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
}
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Logements ---------- */

.property-card { overflow: hidden; padding: 0; }
.property-photo { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--ivory-deep); }
.property-body { padding: 15px 16px 17px; }
.property-name { font-size: 17px; font-weight: 700; margin: 0 0 3px; }
.property-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.property-figures { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-soft); }
.property-figures strong { color: var(--ink); font-size: 15px; }

/* ---------- Tableaux ---------- */

.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Progression ---------- */

.progress { height: 8px; border-radius: 999px; background: var(--ivory-deep); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.progress.blue > span { background: var(--blue); }

/* ---------- Authentification ---------- */

.auth-wrap { padding: 24px 0 10px; }
.auth-hero { text-align: center; margin-bottom: 20px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.auth-hero h1 { font-size: 34px; margin-bottom: 6px; }
.auth-tag { font-size: 14px; color: var(--ink-soft); max-width: 340px; margin: 0 auto; }
.auth-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin: 0 auto;
}
.auth-card h2 { font-size: 22px; }
.auth-card form { margin-top: 6px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13.5px; }

.layout-guest .page { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }

/* ---------- Modale et notifications ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 22, 34, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-card h2 { font-size: 20px; }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.badge-svg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 88vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Écran d'ouverture ---------- */

#app-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0e2a47;
  color: #fff;
}
#app-splash p { font-family: var(--serif); font-size: 22px; letter-spacing: .02em; margin: 0; }
#app-splash img { border-radius: 20px; }
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Utilitaires ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-14 { margin-top: 14px; }
.empty-state {
  text-align: center;
  padding: 34px 18px;
  background: var(--paper);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 14px;
  box-shadow: var(--shadow);
}
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.detail-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span:first-child { color: var(--ink-soft); }
.detail-row span:last-child { font-weight: 600; text-align: right; }
.callout {
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.callout-alert { border-left-color: var(--red); background: var(--red-soft); color: var(--red); }
.callout-warn { border-left-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.callout-ok { border-left-color: var(--green); background: var(--green-soft); color: var(--green); }
.file-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  background: var(--paper);
  cursor: pointer;
}
.file-drop strong { display: block; color: var(--navy); font-size: 14.5px; margin-bottom: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  flex: 1 1 160px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 10px 13px;
  font-size: 14px;
  font-family: var(--sans);
}
.letter-body { white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: var(--ink); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--ivory);
}

/* ---------- Écrans intermédiaires ---------- */

@media (min-width: 768px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page { padding: 0 32px; }
  h1 { font-size: 46px; }

  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 44px; padding: 52px 0 56px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-figure img { height: 460px; }
  .lede { font-size: 17px; }

  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .pillar { padding: 26px 26px 26px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .pillar:last-child { border-right: 0; padding-right: 0; }
  .pillar + .pillar { padding-left: 26px; }

  .band { padding: 46px 44px; }
  .band h2 { font-size: 32px; }
  .closing { padding: 56px 40px; }
  .closing h2 { font-size: 34px; }
  .masthead-links { display: flex; }
  .section-title { margin: 54px 0 20px; }
  .section-title h2 { font-size: 31px; }
}

@media (min-width: 1024px) {
  .page { max-width: 1180px; }
  .hero-copy h1 { font-size: 60px; }
  .feature-grid { gap: 18px; }
}

/* ---------- Vue ordinateur ---------- */

.rail { display: none; }

.rail-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.rail-brand .brand-mark { width: 38px; height: 38px; }
.rail-brand strong { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.rail-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 14px;
  color: var(--ink-soft);
}
.rail-nav a .ico { color: var(--ink-mute); }
.rail-nav a:hover { background: #f6f3ed; text-decoration: none; color: var(--ink); }
.rail-nav a.active { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.rail-nav a.active .ico { color: var(--navy); }
.rail-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.rail-foot a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--red); }

@media (min-width: 900px) {
  body { padding-bottom: 40px; }

  .rail {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--paper);
    flex-direction: column;
    padding: 26px 18px;
    border-right: 1px solid var(--line);
    z-index: 50;
  }
  .layout-app .page { margin: 0 0 0 300px; padding: 30px 40px 0 0; max-width: 1100px; }
  .layout-app .site-footer { margin-left: 300px; margin-right: 40px; border-radius: 24px 24px 0 0; }
  .menu-btn { display: none; }
  .tabbar { display: none; }
  .layout-guest .page { max-width: 1100px; padding-top: 30px; }
  .drawer, .drawer-scrim { display: none; }
}

/* ============================================================
   Façade — traitement couleur et matière (override)
   ============================================================ */

.lbl-short { display: none; }
@media (max-width: 767px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}

/* --- Hero : panneau profond, or et lumière --- */
.hero {
  position: relative;
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(185, 138, 62, .30) 0%, rgba(185, 138, 62, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(22, 104, 179, .38) 0%, rgba(22, 104, 179, 0) 60%),
    linear-gradient(155deg, #0b2b49 0%, #08203a 46%, #051628 100%);
  padding: 28px 20px 30px;
  margin: 16px 0 6px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 100% 34px;
  opacity: .5;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-bright); letter-spacing: .22em; }
.hero-copy h1 { color: #ffffff; text-shadow: 0 2px 20px rgba(0,0,0,.22); }
.hero-copy h1 em { color: var(--gold-bright); font-style: italic; }
.hero .lede { color: rgba(255, 255, 255, .80); font-weight: 300; }
.hero-caption { color: rgba(255, 255, 255, .62); }
.hero-caption::before { background: var(--gold-bright); }
.hero .btn-primary { background: var(--gold); border-color: var(--gold); color: #17120a; font-weight: 700; }
.hero .btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.hero .btn-outline { border-color: rgba(255,255,255,.42); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-figure img {
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  border: 1px solid rgba(230, 197, 132, .35);
}
@media (min-width: 768px) {
  .hero { padding: 56px 52px 60px; margin: 22px 0 10px; }
}

/* --- Bandeau de repères --- */
.marquee {
  background: linear-gradient(90deg, #0a2b47 0%, #123a5e 52%, #0a2b47 100%);
  border: 0;
  border-radius: 3px;
  padding: 15px 18px;
  gap: 10px 26px;
  margin: 0 0 10px;
  justify-content: center;
}
.marquee span { color: rgba(255, 255, 255, .84); letter-spacing: .14em; }
.marquee .ico { color: var(--gold-bright); }

/* --- Les trois temps --- */
.pillars { border-top: 1px solid var(--line); }
.pillar .pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold));
  color: #2b1d05;
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 12px;
}

/* --- Cartes de fonctions : couleur par domaine --- */
.feature {
  border: 1px solid var(--line);
  border-top: 2px solid var(--acc, var(--gold));
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  padding: 22px 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10, 31, 53, .10); }
.feature .ico {
  color: var(--acc, var(--gold-deep));
  background: var(--acc-soft, var(--gold-soft));
  border-radius: 8px;
  padding: 8px;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}
.feature:nth-child(1) { --acc: #0d3a63; --acc-soft: #e6eef6; }
.feature:nth-child(2) { --acc: #b98a3e; --acc-soft: #f9f0dd; }
.feature:nth-child(3) { --acc: #157a4c; --acc-soft: #e2f4ea; }
.feature:nth-child(4) { --acc: #b96a12; --acc-soft: #fdefdb; }
.feature:nth-child(5) { --acc: #1668b3; --acc-soft: #e7f1fb; }
.feature:nth-child(6) { --acc: #7a3560; --acc-soft: #f7e9f2; }
.feature h3 { color: var(--navy); }

/* --- Bloc confidentialité --- */
.band {
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(185, 138, 62, .34) 0%, rgba(185, 138, 62, 0) 58%),
    linear-gradient(150deg, #0b2b49 0%, #08203a 55%, #051628 100%);
  border-radius: 3px;
  border: 1px solid rgba(230, 197, 132, .28);
  color: #fff;
}
.band .band-inner { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .82); }
.band .eyebrow { color: var(--gold-bright); }
.band .trust-list li { color: rgba(255, 255, 255, .88); }
.band .trust-list .ico { color: #6fd6a4; }

/* --- Étapes --- */
.step-num {
  background: linear-gradient(150deg, #123a5e, #08203a);
  border: 0;
  color: var(--gold-bright);
  font-weight: 600;
}

/* --- Bloc final --- */
.closing {
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(22, 104, 179, .35) 0%, rgba(22, 104, 179, 0) 70%),
    linear-gradient(180deg, #0b2b49, #061c31);
  border: 1px solid rgba(230, 197, 132, .26);
  border-radius: 3px;
  color: #fff;
}
.closing h2 { color: #fff; }
.closing p { color: rgba(255, 255, 255, .80); }
.closing .tiny { color: rgba(255, 255, 255, .55); }
.closing .btn-primary { background: var(--gold); border-color: var(--gold); color: #17120a; font-weight: 700; }
.closing .btn-outline { border-color: rgba(255,255,255,.42); color: #fff; }
.closing .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* --- Titres de section soulignés d'or --- */
.section-title h2 { position: relative; padding-bottom: 12px; }
.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(185,138,62,0));
}

/* --- Renfort de couleur : piliers et étapes --- */
.pillars { gap: 14px; border-top: 0; border-bottom: 0; }
.pillar {
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf4 100%);
  padding: 20px 18px 22px;
}
.pillar:nth-child(1) { box-shadow: inset 0 3px 0 #0d3a63; }
.pillar:nth-child(2) { box-shadow: inset 0 3px 0 var(--gold); }
.pillar:nth-child(3) { box-shadow: inset 0 3px 0 #157a4c; }
.pillar h3 { color: var(--navy); }

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; gap: 16px; }
  .pillar { padding: 24px 20px 26px; border-right: 1px solid var(--line); }
  .pillar:last-child { padding-right: 20px; }
  .pillar + .pillar { padding-left: 20px; }
}

/* --- Étapes : cartes lisibles et colorées --- */
.steps { gap: 10px; }
.step {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  padding: 16px 16px 16px 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:nth-child(1) { border-left: 3px solid #0d3a63; }
.step:nth-child(2) { border-left: 3px solid var(--gold); }
.step:nth-child(3) { border-left: 3px solid #157a4c; }
.step h3 { color: var(--navy); }

/* --- Carte base de connaissances --- */
.page-home .card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: linear-gradient(180deg, #ffffff, #fbf8f2);
  border-radius: 3px;
  padding: 20px 18px;
}

/* --- Barre du bas visiteurs : le compte mis en avant --- */
.layout-guest .tabbar .tab:last-child { color: var(--gold-deep); font-weight: 600; }
.layout-guest .tabbar .tab.active { background: var(--navy); color: #fff; }

/* --- Photo d'ouverture : pleine largeur, marge navigateur neutralisée --- */
.hero-figure { margin: 0; }
@media (max-width: 767px) {
  .hero-figure { margin: 4px 0 0; }
  .hero-figure img { height: 300px; }
  .hero-copy h1 { font-size: 37px; }
}

/* --- Section fonctions : fond chaud, respiration --- */
#fonctions {
  background: linear-gradient(180deg, #f4ecdd 0%, #f9f6f0 100%);
  margin-left: -18px;
  margin-right: -18px;
  padding: 26px 18px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#fonctions .section-title { margin-top: 0; }
@media (min-width: 768px) {
  #fonctions { margin-left: -32px; margin-right: -32px; padding: 40px 32px 14px; }
}

/* --- Pied de page en bleu nuit --- */
.site-footer {
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(185, 138, 62, .22) 0%, rgba(185, 138, 62, 0) 60%),
    linear-gradient(170deg, #0b2b49 0%, #08203a 55%, #051628 100%);
  border-top: 0;
  color: #fff;
  padding: 36px 20px 30px;
}
.site-footer .f-brand strong { color: #fff; }
.site-footer .f-tag { color: rgba(255, 255, 255, .74); }
.site-footer .f-info li { color: rgba(255, 255, 255, .74); }
.site-footer .f-info li a { color: rgba(255, 255, 255, .86); }
.site-footer .f-info .ico { color: var(--gold-bright); }
.site-footer .f-links { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
.site-footer .f-links a { color: rgba(255, 255, 255, .68); }
.site-footer .f-links a:hover { color: var(--gold-bright); }
.site-footer .btn-install {
  border-color: rgba(230, 197, 132, .55);
  color: var(--gold-bright);
}
.site-footer .btn-install:hover { background: var(--gold); border-color: var(--gold); color: #17120a; }
.site-footer .f-copy { color: rgba(255, 255, 255, .5); }

@media (min-width: 900px) {
  .layout-app .site-footer { border-radius: 3px 3px 0 0; }
}

/* --- Icônes des cartes : plus franches et colorées --- */
.feature .ico { stroke-width: 2; }
.feature:nth-child(1) .ico { background: #0d3a63; color: #fff; }
.feature:nth-child(2) .ico { background: var(--gold); color: #fff; }
.feature:nth-child(3) .ico { background: #157a4c; color: #fff; }
.feature:nth-child(4) .ico { background: #b96a12; color: #fff; }
.feature:nth-child(5) .ico { background: #1668b3; color: #fff; }
.feature:nth-child(6) .ico { background: #7a3560; color: #fff; }

/* --- Barre du bas : libellés sur deux lignes, jamais coupés --- */
.tabbar .tab { min-width: 0; }
.tabbar .tab span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
  font-size: 9.5px;
  letter-spacing: .01em;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
}

/* ---------- Choix de la langue (drapeaux) ---------- */

.lang-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 0 0;
  gap: 10px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 3px;
  border: 1px solid transparent;
  line-height: 1;
  text-decoration: none;
  opacity: .62;
  transition: opacity .15s ease, border-color .15s ease, background .15s ease;
}
.lang-flag svg {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(10, 31, 53, .16);
  flex: 0 0 auto;
}
.lang-flag span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lang-flag:hover { opacity: 1; text-decoration: none; }
.lang-flag:hover span { color: var(--navy); }
.lang-flag.is-on {
  opacity: 1;
  border-color: rgba(176, 141, 87, .55);
  background: rgba(176, 141, 87, .09);
}
.lang-flag.is-on span { color: var(--navy); }
@media (max-width: 767px) {
  .lang-flag { padding: 5px 6px; gap: 0; }
  .lang-flag span { display: none; }
  .lang-flag svg { width: 24px; height: 16px; }
  .lang-bar { padding: 6px 0 0; }
}

/* Dans l'application connectée : la barre se place sur la ligne du haut, à droite */
.layout-app .page-top {
  justify-content: flex-end;
  padding-bottom: 4px;
}
.layout-app .page-top .lang-switch { margin-left: auto; }
