/* The LaGestionImmo look of the desktop app (apps/lagestionimmo-web/ui/brand.css),
   applied through the design system's own tokens. Dark mode keeps the DS values. */
:root:not([data-theme="dark"]) {
  --swoft-color-primary: #143D8A;
  --swoft-color-primary-hover: #2650DB;
  --swoft-color-primary-light: rgba(20, 61, 138, 0.12);
  --swoft-color-primary-text: #143D8A;
  --swoft-color-on-primary: #FFFFFF;
  --swoft-color-link: #2650DB;
  --swoft-color-accent: #00ACFF;
  --swoft-color-bg: #F3F7FE;
  --swoft-color-surface: #FFFFFF;
  --swoft-color-surface-alt: #EEF3FC;
  --swoft-color-border: #E3E8F2;
  --swoft-color-text: #0F1B33;
  --swoft-color-text-muted: #5B6680;
  --swoft-color-text-secondary: #5B6680;
  --swoft-color-brand-purple: #2650DB;
  --lgi-sky: #00ACFF;
  --lgi-ink: #0F1B33;
  --lgi-shadow: 0 2px 6px rgba(15, 27, 51, 0.06), 0 24px 64px rgba(20, 61, 138, 0.16);
  --lgi-veil: #F3F7FE;
}
/* Dark: the same blue family, never the framework's default accent. */
:root[data-theme="dark"] {
  --swoft-color-primary: #4C86F0; --swoft-color-primary-hover: #6A9CF5; --swoft-color-primary-light: rgba(76, 134, 240, 0.16);
  --swoft-color-primary-text: #8DB4FF; --swoft-color-on-primary: #FFFFFF; --swoft-color-link: #8DB4FF; --swoft-color-accent: #4CC3FF;
  --swoft-color-bg: #0B1222; --swoft-color-surface: #121B30; --swoft-color-surface-alt: #17223B; --swoft-color-border: #24304A;
  --swoft-color-text: #E8EEF8; --swoft-color-text-muted: #9AA6BF; --swoft-color-text-secondary: #9AA6BF; --swoft-color-brand-purple: #4C86F0;
  --lgi-sky: #4CC3FF;
  --lgi-ink: #0B1222;
  --lgi-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --lgi-veil: var(--swoft-color-bg);
}
/* Fields: a soft blue fill, a frame barely there, the sky ring on focus, roomy and round (Kevin,
   2026-11-26: « les champs avec bordures noires je n'aime pas ça »). The tokens are set on the
   field elements themselves, so the cards around them keep their white. */
:root:not([data-theme="dark"]) :is(swoft-input, swoft-textarea, swoft-select, swoft-combobox, swoft-combobox-input, swoft-date-picker, swoft-tag-input, swoft-input-group, lgi-phone-field) {
  --swoft-color-surface: #F1F5FD;
  --swoft-color-control-border: #E6ECF7;
  --swoft-color-primary: #00ACFF;
  --swoft-radius-md: 12px;
  --swoft-spacing-sm: 12px;
  --swoft-shadow-focus: 0 0 0 3px rgba(0, 172, 255, 0.28);
}
:root {
  --swoft-font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lgi-navy: #143D8A;
  --lgi-gutter: 16px;
  --lgi-section: 88px;
}
@media (min-width: 720px) { :root { --lgi-gutter: 32px; --lgi-section: 128px; } }
@media (min-width: 1100px) { :root { --lgi-gutter: 48px; --lgi-section: 160px; } }

html, body { margin: 0; background: var(--swoft-color-bg); color: var(--swoft-color-text); font-family: var(--swoft-font-family); }
body { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--lgi-gutter); }
section.s { padding: var(--lgi-section) 0 0; }

/* Top bar: over the hero, a light glass strip. */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .25s, box-shadow .25s; }
.bar.solid { background: color-mix(in srgb, var(--swoft-color-bg) 86%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--swoft-color-border); }
.bar-in { max-width: 1240px; margin: 0 auto; padding: 14px var(--lgi-gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; color: var(--swoft-color-primary); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; }
.mark img { width: 30px; height: 30px; }
.mark span { color: var(--lgi-sky); }

/* Hero: the 3D map is the image. */
.hero { position: relative; min-height: 680px; height: min(100svh, 920px); overflow: hidden; background: var(--swoft-color-surface-alt) url(/img/hero-poster.webp) center / cover no-repeat; }
.hero-shot { position: absolute; inset: 0; }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .hero-shot { background-image: none !important; }
#hero-map { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
#hero-map.on { opacity: 1; }
#hero-map .maplibregl-ctrl-attrib { font-size: 10px; opacity: .7; }
.veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--lgi-veil) 0%, color-mix(in srgb, var(--lgi-veil) 92%, transparent) 30%, color-mix(in srgb, var(--lgi-veil) 0%, transparent) 62%),
              linear-gradient(0deg, var(--lgi-veil) 0%, transparent 18%); }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-copy > div { max-width: 660px; }
.hero h1 { margin: 0; }
swoft-heading.display { font-size: clamp(2.4rem, 4.2vw, 3.75rem); line-height: 1.06; letter-spacing: -0.03em; }
swoft-heading.display .second { display: block; color: var(--swoft-color-primary); margin-top: .12em; }
:root[data-theme="dark"] swoft-heading.display .second { color: var(--lgi-sky); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--swoft-color-text-muted); margin: 24px 0 0; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero-note { position: absolute; z-index: 2; left: max(var(--lgi-gutter), calc((100% - 1240px) / 2)); bottom: 24px; font-size: .8rem; color: var(--swoft-color-text-muted); background: color-mix(in srgb, var(--swoft-color-surface) 80%, transparent); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 759px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; background: var(--swoft-color-bg); }
  .hero-copy { order: 1; padding-top: 104px; }
  #hero-map, .hero-shot { position: relative; order: 2; height: 420px; margin-top: 8px; inset: auto; }
  .hero-shot { background: url(/img/hero-poster-mobile.webp) center / cover no-repeat; }
  #hero-map { position: absolute; inset: 0; margin: 0; }
  .veil { background: linear-gradient(180deg, var(--lgi-veil) 0%, transparent 22%, transparent 80%, var(--lgi-veil) 100%); }
  .hero-note { right: auto; left: var(--lgi-gutter); top: auto; bottom: 34px; }
  .note-long { display: none; }
  /* A desktop screen is unreadable at phone width: the page serves a crop of its working area. */
  .win picture img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 0 0; }
  .win-bar span { margin-right: 40px; }
}

/* Section titles: one title, one sentence. */
.head { max-width: 760px; }
.head.center { margin: 0 auto; text-align: center; }
swoft-heading.h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; }
.sub { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.5; color: var(--swoft-color-text-muted); margin: 18px 0 0; }
.head.center .sub { margin-left: auto; margin-right: auto; max-width: 36em; }

/* The desktop app, framed in its window. */
.win { margin: 0; border-radius: 14px; overflow: hidden; background: var(--swoft-color-surface); box-shadow: var(--lgi-shadow); outline: 1px solid color-mix(in srgb, var(--swoft-color-border) 80%, transparent); }
.win-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: color-mix(in srgb, var(--swoft-color-surface-alt) 70%, var(--swoft-color-surface)); border-bottom: 1px solid var(--swoft-color-border); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D5DBE6; }
.win-bar span { flex: 1; text-align: center; font-size: .78rem; color: var(--swoft-color-text-muted); margin-right: 54px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wide { margin-top: 64px; }
@media (min-width: 1100px) { .wide { margin-left: -24px; margin-right: -24px; } }

/* Text and image side by side, alternating. */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 4fr 7fr; gap: 72px; }
  .split.rev { grid-template-columns: 7fr 4fr; }
  .split.rev > .head { order: 2; }
  .split > .win { margin-right: calc(-1 * var(--lgi-gutter)); }
  .split.rev > .win { margin-right: 0; margin-left: calc(-1 * var(--lgi-gutter)); }
}
.split swoft-heading.h2 { font-size: clamp(1.9rem, 2.7vw, 2.6rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* The navy band. */
.band { margin-top: var(--lgi-section); padding: var(--lgi-section) 0; background: var(--lgi-navy); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(0, 172, 255, .28), transparent); pointer-events: none; }
.band .sub { color: rgba(255, 255, 255, .78); }
.band .win { position: relative; outline: none; box-shadow: 0 30px 80px rgba(3, 12, 36, .45); }

/* A sentence set large: the promise of the product. */
.statement { text-align: center; }
.statement swoft-heading { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.06; letter-spacing: -0.03em; }
.statement swoft-heading .second { display: block; color: var(--swoft-color-primary); }
:root[data-theme="dark"] .statement swoft-heading .second { color: var(--lgi-sky); }

/* Phone. */
.phone { width: min(320px, 78vw); margin: 0 auto; border-radius: 46px; padding: 12px; background: var(--lgi-ink); box-shadow: var(--lgi-shadow); position: relative; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: var(--lgi-ink); z-index: 1; }
.phone-status { height: 34px; border-radius: 34px 34px 0 0; background: #F3F7FE; }
.phone img { border-radius: 0 0 34px 34px; }
.phone-stage { position: relative; padding: 24px 0; min-width: 0; }
/* Three screens of the mobile app: the visit in front, the day and the agent behind it. */
.phones { position: relative; display: flex; justify-content: center; align-items: center; }
.phones .phone { flex: none; margin: 0; }
.phones .phone.side { width: 250px; border-radius: 38px; padding: 10px; opacity: .97; }
.phones .phone.side .phone-status { height: 28px; border-radius: 28px 28px 0 0; }
.phones .phone.side img { border-radius: 0 0 28px 28px; }
.phones .phone.side::before { top: 18px; width: 66px; height: 18px; margin-left: -33px; }
.phones .phone.left { margin-right: -64px; transform: translateY(36px) rotate(-4deg); }
.phones .phone.right { margin-left: -64px; transform: translateY(36px) rotate(4deg); }
.phones .phone.front { z-index: 2; }
/* Tablets: the screens side by side, swiped inside their own strip. */
@media (max-width: 759px) {
  /* One phone at a time on a phone: the side ones were cut by the screen edge. */
  .phones .phone.side { display: none; }
  .phone, .phones .phone { width: min(280px, 74vw); }
  swoft-heading.display { font-size: 2.05rem; }
  swoft-heading.h2, .split swoft-heading.h2 { font-size: 1.75rem; }
}
@media (min-width: 760px) and (max-width: 959px) {
  .phones { justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--lgi-gutter) 20px; margin: 0 calc(-1 * var(--lgi-gutter)); scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones .phone, .phones .phone.side { width: min(270px, 70vw); border-radius: 40px; padding: 10px; margin: 0; transform: none; scroll-snap-align: center; }
  .phones .phone.front { order: -1; }
}
.phone-stage::before { content: ""; position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lgi-sky) 26%, transparent), transparent); }

/* Three steps, big numerals. */
.steps { display: grid; gap: 40px; margin-top: 64px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { border-top: 2px solid var(--swoft-color-primary); padding-top: 24px; }
.step b { display: block; font-size: clamp(3.5rem, 6vw, 5rem); line-height: 1; font-weight: 300; color: var(--swoft-color-primary); letter-spacing: -0.04em; }
:root[data-theme="dark"] .step b { color: var(--lgi-sky); }
.step swoft-heading { margin-top: 20px; }
.step p { margin: 8px 0 0; color: var(--swoft-color-text-muted); line-height: 1.5; }

.faq { max-width: 820px; margin: 0 auto; }
.faq swoft-accordion { margin-top: 40px; }
.cta { margin-top: var(--lgi-section); }
footer { padding: 48px 0 40px; margin-top: 64px; border-top: 1px solid var(--swoft-color-border); }

/* « Créer mon compte » stays whole down to small phones; only below 360 px does it shorten. */
.bar-in > swoft-cluster { flex-wrap: nowrap; flex-shrink: 0; }
@media (max-width: 430px) { .mark { font-size: 1rem; gap: 8px; } .mark img { width: 26px; height: 26px; } .bar-in { gap: 8px; } }
@media (max-width: 359px) { .bar-cta-long { display: none; } }
@media (min-width: 360px) { .bar-cta-short { display: none; } }

/* Subtle motion: blocks fade in as they come into view. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } #hero-map { transition: none; } }

/* Site navigation: the business lines, then the two actions. Below 1100px a menu button opens a drawer. */
.nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav swoft-navigation-menu-link[active] { color: var(--swoft-color-primary); font-weight: 600; }
:root[data-theme="dark"] .nav swoft-navigation-menu-link[active] { color: var(--lgi-sky); }
.menu-btn { display: none; }
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .bar-client { display: none; }
}
.menu-links { display: grid; gap: 4px; }
.menu-links a { display: block; padding: 12px 8px; border-radius: 10px; color: var(--swoft-color-text); text-decoration: none; font-size: 1.05rem; }
.menu-links a[aria-current="page"] { background: var(--swoft-color-primary-light); color: var(--swoft-color-primary-text); font-weight: 600; }
.menu-links a:hover { background: var(--swoft-color-surface-alt); }

/* Inner pages: a plain hero (no map) and the app framed below it. */
.page-hero { padding: 144px 0 0; }
@media (max-width: 759px) { .page-hero { padding-top: 104px; } }
.page-hero .kicker { display: inline-block; margin-bottom: 20px; }
.page-hero .lead { max-width: 40em; }

/* The business lines on the home page: one card each, the whole card is the link. */
.lines { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 720px) { .lines { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.line { display: block; text-decoration: none; color: inherit; padding: 28px; border-radius: 18px; background: var(--swoft-color-surface); outline: 1px solid var(--swoft-color-border); transition: transform .2s ease, box-shadow .2s ease; }
.line:hover { transform: translateY(-2px); box-shadow: var(--lgi-shadow); }
.line swoft-icon { color: var(--swoft-color-primary); }
:root[data-theme="dark"] .line swoft-icon { color: var(--lgi-sky); }
.line p { margin: 8px 0 0; color: var(--swoft-color-text-muted); line-height: 1.5; }
.line .go { margin-top: 18px; color: var(--swoft-color-link); font-weight: 500; }

/* Download choices on the application page. */
.downloads { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 720px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
.dl { padding: 24px; border-radius: 16px; background: var(--swoft-color-surface); outline: 1px solid var(--swoft-color-border); display: flex; flex-direction: column; gap: 6px; }
.dl.here { outline: 2px solid var(--swoft-color-primary); }
.dl .meta { color: var(--swoft-color-text-muted); font-size: .9rem; }
.dl swoft-button { margin-top: 14px; align-self: flex-start; }
.note { color: var(--swoft-color-text-muted); font-size: .9rem; line-height: 1.55; margin-top: 24px; max-width: 60em; }
.feature-list { display: grid; gap: 20px; margin-top: 28px; }
.feature-list div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.feature-list swoft-icon { color: var(--swoft-color-primary); margin-top: 2px; }
:root[data-theme="dark"] .feature-list swoft-icon { color: var(--lgi-sky); }
.feature-list p { margin: 4px 0 0; color: var(--swoft-color-text-muted); line-height: 1.5; }
.phones.two .phone.side.left { margin-right: -40px; }

/* The sign-up page (/creer-un-compte/): Claudeau waving and the title beside the form, one column on a phone.
   Claudeau is the app's sprite sheet (30 frames of 130 x 190 after the rest frame), played in a loop. */
.signup { padding-bottom: var(--lgi-section); }
.signup-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .signup-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } .signup-copy { position: sticky; top: 120px; } }
.signup-copy { display: grid; gap: 24px; justify-items: start; }
/* Claudeau is drawn at 2x and 3x the size shown (an animated WebP each), the browser picks by screen density. */
.claudeau { display: block; width: 221px; }
.claudeau img { display: block; width: 100%; height: auto; }
@media (max-width: 759px) { .claudeau { width: 117px; } }
.signup-card { width: 100%; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The client space (/espace/): signed out, the sign-in card centred under the logo; signed in, the
   design system's app shell. The page only places them. */
body.space { margin: 0; min-height: 100vh; background: var(--swoft-color-background); }
.space-out { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px 16px; box-sizing: border-box; }
.space-out[hidden] { display: none; }
.space-card { width: 100%; max-width: 440px; }
.space-main { padding: 24px; max-width: 1040px; }
@media (max-width: 759px) { .space-main { padding: 16px; } .installers { grid-template-columns: 1fr !important; } }
swoft-sidebar-header .mark { padding: 4px 8px; }
@media (max-width: 759px) { swoft-sidebar-header .mark { padding: 0; } swoft-sidebar-header .mark b { display: none; } }

/* The three applications of the client space: a card each, the illustration on a tint of the
   brand colour beside the text (stacked on a phone). The screenshots peek from the bottom right,
   the phone stands in a frame. */
.app-card { --art-tint: color-mix(in srgb, var(--swoft-color-primary) 9%, var(--swoft-color-background)); }
.app-row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .app-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.app-art { position: relative; border-radius: 12px; background: var(--art-tint); aspect-ratio: 16 / 10; overflow: hidden; }
.app-art-screen img { position: absolute; left: 12%; top: 14%; width: 100%; border-radius: 10px; box-shadow: 0 18px 40px rgba(15, 27, 51, 0.18); }
.app-art-phone img { position: absolute; left: 50%; top: 10%; height: 118%; transform: translateX(-50%); border-radius: 26px; border: 6px solid #0F1B33; box-shadow: 0 18px 40px rgba(15, 27, 51, 0.22); }
.app-card .address { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; }
.app-card .qr img { border-radius: 8px; background: #fff; padding: 6px; border: 1px solid color-mix(in srgb, var(--swoft-color-primary) 15%, transparent); }
.team-card { max-width: 720px; }
/* The client space's menu on a dark navy (Kevin, 2026-11-27): the design system's sidebar, its colours redefined here. */
body.space swoft-sidebar { --swoft-color-surface: #0F1B33; --swoft-color-bg: #0F1B33; --swoft-color-background: #0F1B33;
  --swoft-color-text: #FFFFFF; --swoft-color-text-primary: #FFFFFF; --swoft-color-text-secondary: rgba(255, 255, 255, 0.78); --swoft-color-text-muted: rgba(255, 255, 255, 0.6);
  --swoft-color-surface-hover: rgba(255, 255, 255, 0.08); --swoft-color-border: transparent; --swoft-color-border-strong: transparent;
  --swoft-sidebar-item-active-bg: rgba(255, 255, 255, 0.14); --swoft-color-primary-text: #FFFFFF; background: #0F1B33; color: #FFFFFF; }
body.space swoft-sidebar swoft-sidebar-item { --swoft-color-primary: #FFFFFF; --swoft-color-accent: #00ACFF; }
body.space swoft-sidebar .mark { color: #FFFFFF; }
body.space swoft-sidebar .mark span { color: #00ACFF; }
body.space swoft-sidebar-header { border-bottom: 0; }
@media (max-width: 759px) { .team-fields { grid-template-columns: 1fr !important; } }
#invited-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
