/* Fylaxo, site vitrine. « Tout est sous bonne garde. »
   The charter's tokens (same values as the app, packages/web/src/styles/global.css).
   The page tells a day and a night: the pro side is always Jour, the personal
   side (#perso) always Nuit, whatever the system theme, so the story reads the
   same for everyone. `lueur` (amber) marks the AI only; what is to do is `garde`. */

@font-face {
  font-family: "Lexend";
  src: url("assets/fonts/Lexend-Variable-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

/* Lexend for the figures alone (digits, the signs of amounts, their spaces): Atkinson's zero
   is slashed. The words around them stay in the text font (--font-figures), as in the app.
   Lexend draws heavier than Atkinson at the same weight: one face per band of weights, each
   50 lighter, so the figures keep the colour of the words around them. */
@font-face {
  font-family: "Fylaxo Figures";
  src: url("assets/fonts/Lexend-Variable-latin.woff2") format("woff2");
  font-weight: 100 449;
  font-variation-settings: "wght" 350;
  font-display: swap;
  unicode-range: U+0025, U+002C, U+002E-003A, U+00A0, U+202F, U+20AC;
}

@font-face {
  font-family: "Fylaxo Figures";
  src: url("assets/fonts/Lexend-Variable-latin.woff2") format("woff2");
  font-weight: 450 549;
  font-variation-settings: "wght" 450;
  font-display: swap;
  unicode-range: U+0025, U+002C, U+002E-003A, U+00A0, U+202F, U+20AC;
}

@font-face {
  font-family: "Fylaxo Figures";
  src: url("assets/fonts/Lexend-Variable-latin.woff2") format("woff2");
  font-weight: 550 649;
  font-variation-settings: "wght" 550;
  font-display: swap;
  unicode-range: U+0025, U+002C, U+002E-003A, U+00A0, U+202F, U+20AC;
}

@font-face {
  font-family: "Fylaxo Figures";
  src: url("assets/fonts/Lexend-Variable-latin.woff2") format("woff2");
  font-weight: 650 749;
  font-variation-settings: "wght" 650;
  font-display: swap;
  unicode-range: U+0025, U+002C, U+002E-003A, U+00A0, U+202F, U+20AC;
}

@font-face {
  font-family: "Fylaxo Figures";
  src: url("assets/fonts/Lexend-Variable-latin.woff2") format("woff2");
  font-weight: 750 900;
  font-variation-settings: "wght" 700;
  font-display: swap;
  unicode-range: U+0025, U+002C, U+002E-003A, U+00A0, U+202F, U+20AC;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/AtkinsonHyperlegibleNext-Variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* --- Jour: the pro side ---------------------------------------------------- */
:root {
  color-scheme: light;
  --surface: #f3f5f8;
  --surface-raised: #ffffff;
  --surface-sunken: #e9edf2;
  --line: #d6dde5;
  --line-strong: #7d8a99;
  --ink: #0e1a2b;
  --ink-muted: #4a5868;
  --garde: #2443b5;
  --garde-hover: #1c3594;
  --garde-soft: #e6ebfb;
  --on-garde: #ffffff;
  --lueur: #f2a93b;
  --lueur-ink: #8a5300;
  --lueur-soft: #fdf0d9;
  --protege: #16734e;
  --protege-soft: #e1f2e9;
  --shadow-lg: 0 6px 16px #0e1a2b14, 0 18px 40px -8px #0e1a2b33;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #2443b5;
  --glow-lueur: 0 0 0 6px #f2a93b33, 0 0 28px 4px #f2a93b59;
  --moon: #eef2f8;
  --sky-top: #070d18;
  --sky-mid: #111f38;
  --sky-low: #22355c;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%232443b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --font-display: Lexend, "Avenir Next", system-ui, sans-serif;
  --font-text:
    "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  /* Prices, credits and durations: their figures in Lexend, the words in the text font. */
  --font-figures: "Fylaxo Figures", var(--font-text);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --page: 1160px;
  --gutter: 24px;
}

/* --- Nuit: the personal side (its section always; the whole page in #perso) - */
.night,
html[data-mode="perso"] {
  color-scheme: dark;
  --surface: #0a111a;
  --surface-raised: #121b27;
  --surface-sunken: #060b11;
  --line: #223042;
  --line-strong: #66768a;
  --ink: #e7ecf2;
  --ink-muted: #9aa7b6;
  --garde: #8aa2ff;
  --garde-hover: #a9bcff;
  --garde-soft: #18234a;
  --on-garde: #0a111a;
  --lueur: #f6b85a;
  --lueur-ink: #f6b85a;
  --lueur-soft: #2b200f;
  --protege: #4cc08a;
  --protege-soft: #0f2a1e;
  --shadow-lg: 0 16px 40px -6px #000000cc;
  --focus-ring: 0 0 0 2px #0a111a, 0 0 0 4px #8aa2ff;
  --glow-lueur: 0 0 0 6px #f6b85a29, 0 0 32px 6px #f6b85a4d;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%238aa2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: var(--garde);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--garde-hover);
}

:where(a, button, summary, video, [tabindex]):focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--garde);
  color: var(--on-garde);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* Logo: the right file for the right ground. */
.logo-night {
  display: none;
}

html[data-mode="perso"] .logo-day {
  display: none;
}

html[data-mode="perso"] .logo-night {
  display: block;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--garde);
  color: var(--on-garde);
}

.btn-primary:hover {
  background: var(--garde-hover);
  color: var(--on-garde);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-small {
  white-space: nowrap;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.98rem;
}

/* The day/night switch. */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

.switch:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.switch svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.switch-day {
  display: none;
}

html[data-mode="perso"] .switch-night {
  display: none;
}

html[data-mode="perso"] .switch-day {
  display: inline-flex;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

/* Wider than the page: six sections, the switch and two buttons on one row. */
.site-header .wrap {
  max-width: calc(1360px + 2 * var(--gutter));
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  flex: none;
  color: var(--ink);
}

.nav-desktop {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}

.nav-desktop a,
.nav-mobile a {
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.login-link {
  white-space: nowrap;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.menu {
  display: none;
  position: relative;
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  width: 18px;
  height: 18px;
}

.nav-mobile {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 2px;
  width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.nav-mobile a {
  padding: 12px 14px;
  color: var(--ink);
}

.nav-mobile .btn {
  margin-top: 6px;
  color: var(--on-garde);
}

@media (max-width: 1408px) {
  .nav-desktop {
    display: none;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 980px) {
  .header-actions .login-link {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-row {
    gap: 10px;
    min-height: 60px;
  }

  .brand img {
    width: 92px;
    height: auto;
  }

  .switch {
    padding: 8px 11px;
    font-size: 0.92rem;
  }

  .switch .switch-long {
    display: none;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.eyebrow,
.label {
  color: var(--garde);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
}

.lead {
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}

.hero-actions .btn-primary {
  min-height: 56px;
  padding: 14px 26px;
  font-size: 1.1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.text-link svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.fine {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  padding-bottom: 17%;
  padding-left: 9%;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser img {
  width: 100%;
}

.phone {
  width: 100%;
  max-width: 240px;
  padding: 9px;
  border-radius: 36px;
  background: #111f38;
  box-shadow: var(--shadow-lg);
}

.night .phone,
html[data-mode="perso"] .phone {
  background: #2a3a58;
}

.phone img {
  width: 100%;
  aspect-ratio: 414 / 896;
  border-radius: 28px;
}

.hero-visual .phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-visual .phone-extra {
  display: none;
}

/* On a phone, the phone app speaks for itself: two screens side by side. */
@media (max-width: 600px) {
  .hero-visual {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 0;
  }

  .hero-visual .browser {
    display: none;
  }

  .hero-visual .phone,
  .hero-visual .phone-extra {
    position: static;
    display: block;
    width: 47%;
    max-width: 210px;
  }

  .hero-visual .phone-extra {
    margin-top: 28px;
  }
}

/* --- Sections ------------------------------------------------------------ */

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .label {
  display: block;
  margin: 0 0 12px;
}

.section-head p:not(.label) {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 1.15rem;
}

/* Problem, then answer. */
.features {
  display: grid;
  gap: clamp(64px, 9vw, 120px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.feature:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature:nth-child(even) .feature-text {
  order: 2;
}

.feature-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

/* The AI's mark: amber, only where the AI acts. */
.ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--lueur-soft);
  color: var(--lueur-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.ai::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lueur);
}

.problem {
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--line);
  color: var(--ink-muted);
  font-size: 1.08rem;
  font-style: italic;
}

.problem strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-text h3 {
  margin-bottom: 14px;
}

.feature-text > p {
  color: var(--ink-muted);
}

.feature-text > p + p {
  margin-top: 12px;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--garde-soft) var(--check) center / 20px no-repeat;
}

.feature-visual {
  position: relative;
}

.feature-visual.with-phone {
  padding-right: 64px;
  padding-bottom: 40px;
}

.feature-visual.with-phone .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  min-width: 128px;
}

.feature-visual.phone-left {
  padding-right: 0;
  padding-left: 64px;
}

.feature-visual.phone-left .phone {
  right: auto;
  left: 0;
}

.clip {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.clip img {
  width: 100%;
}

.voice-note {
  display: grid;
  gap: 16px;
}

.voice-note .bubble {
  max-width: 92%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

@media (max-width: 900px) {
  .feature,
  .feature:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature:nth-child(even) .feature-text {
    order: 0;
  }

  .feature-visual.with-phone {
    padding-right: 36px;
  }

  .feature-visual.phone-left {
    padding-right: 0;
    padding-left: 36px;
  }
}

/* --- How it works: mailboxes and agendas in, sorted out ----------------- */

.flow {
  margin: 0 0 clamp(64px, 9vw, 120px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.flow-head {
  max-width: 720px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  text-align: center;
}

.flow-head .label {
  display: block;
  margin-bottom: 10px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 0;
}

.flow-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: 0 1px 2px #0e1a2b0f;
}

.flow-icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--surface-sunken);
  color: var(--ink-muted);
}

.flow-out .flow-icon {
  background: var(--garde-soft);
  color: var(--garde);
}

.flow-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.flow-card span span {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.flow-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-opacity: 0.45;
  stroke-width: 1.5;
}

.flow-dot {
  fill: var(--garde);
}

.flow-link {
  display: none;
}

.flow-down {
  justify-self: center;
  width: 24px;
  height: 56px;
}

.flow-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.flow-hub p {
  display: grid;
}

.flow-hub strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 560;
}

.flow-hub p span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Fylaxo at the centre: the shield, and the amber light of its AI. */
.flow-orb {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow:
    var(--shadow-lg),
    0 0 0 10px color-mix(in srgb, var(--lueur) 12%, transparent),
    0 0 44px 8px color-mix(in srgb, var(--lueur) 30%, transparent);
  color: var(--ink);
}

.flow-orb svg {
  width: 44px;
  height: auto;
}

.flow-orb-dot {
  fill: var(--lueur);
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .flow-orb-dot {
    animation: souffle 2.4s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-dot {
    display: none;
  }
}

.flow-caption {
  max-width: 760px;
  margin: clamp(24px, 4vw, 36px) auto 0;
  color: var(--ink-muted);
  text-align: center;
}

/* Wide screens: sources, Fylaxo, results side by side, the flows drawn between. */
@media (min-width: 1200px) {
  .flow-diagram {
    grid-template-columns: minmax(0, 1fr) 135px 140px 135px minmax(0, 1fr);
    align-items: center;
  }

  .flow-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .flow-card {
    height: 76px;
    min-height: 0;
  }

  .flow-link {
    display: block;
    width: 135px;
    height: 346px;
  }

  .flow-down {
    display: none;
  }

  /* The orb sits exactly where the flows meet; its name hangs under it. */
  .flow-hub {
    position: relative;
  }

  .flow-hub p {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 220px;
    transform: translateX(-50%);
  }

  .flow-orb {
    width: 140px;
    height: 140px;
  }

  .flow-orb svg {
    width: 60px;
  }
}

@media (max-width: 600px) {
  .flow-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .flow-card {
    min-height: 0;
  }

  .flow-orb {
    width: 76px;
    height: 76px;
  }

  .flow-orb svg {
    width: 36px;
  }
}

/* --- For firms: the new features, then two smaller cards ---------------- */

/* A picture framed like the screenshots (the opened mail). */
picture.clip {
  display: block;
}

.cabinet-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(64px, 9vw, 120px);
}

.cabinet-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.cabinet-card > p {
  color: var(--ink-muted);
}

.cabinet-card .cabinet-note {
  padding-left: 14px;
  border-left: 3px solid var(--line);
  font-size: 0.95rem;
}

.cabinet-card .clip {
  margin-bottom: 8px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .cabinet-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- For whom ------------------------------------------------------------ */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--garde-soft);
  color: var(--garde);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card p {
  color: var(--ink-muted);
}

.card .size {
  color: var(--ink);
  font-weight: 700;
}

.card .text-link {
  margin-top: auto;
}

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- The teaser towards the night --------------------------------------- */

.dusk {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0;
  background: linear-gradient(
    180deg,
    #f3f5f8 0%,
    #c3cde2 22%,
    #5d6f9c 52%,
    #22355c 78%,
    #111f38 100%
  );
}

.dusk-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 32px;
}

.dusk-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #ffffff99;
  border-radius: var(--radius-xl);
  background: #ffffffe6;
  box-shadow: var(--shadow-lg);
}

.dusk-card h2 {
  margin: 10px 0 14px;
}

.dusk-card p {
  color: var(--ink-muted);
}

.dusk-card p + p {
  margin-top: 12px;
}

.dusk-card .label {
  color: var(--garde);
}

.dusk-card .btn {
  margin-top: 22px;
}

.dusk-sky {
  position: relative;
  min-height: 220px;
}

.dusk-sky .moon {
  position: absolute;
  right: 18%;
  top: 22%;
  width: 120px;
}

.dusk-sky .stars {
  top: 10%;
}

/* --- The night: stars and moon ----------------------------------------- */

.moon {
  filter: drop-shadow(0 0 26px rgba(231, 236, 242, 0.45));
}

.moon circle.disc {
  fill: var(--moon);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 8% 18%, #e7ecf2d9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 18% 62%, #e7ecf2b3 50%, transparent 51%),
    radial-gradient(2px 2px at 27% 30%, #e7ecf2e6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 39% 12%, #e7ecf2b3 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 52% 44%, #e7ecf2e6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 61% 20%, #e7ecf2b3 50%, transparent 51%),
    radial-gradient(2px 2px at 73% 58%, #e7ecf2cc 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 32%, #e7ecf2b3 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 14%, #e7ecf2e6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 96% 70%, #e7ecf2b3 50%, transparent 51%);
}

.night {
  position: relative;
  background: var(--surface);
  color: var(--ink);
}

.night-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--surface) 100%);
}

.night-hero .moon {
  position: absolute;
  right: max(6%, calc(50% - 560px));
  top: clamp(28px, 6vw, 64px);
  width: clamp(84px, 11vw, 140px);
}

.night-hero .wrap {
  position: relative;
}

.night-hero h2 {
  max-width: 15em;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
}

.night-hero .lead {
  max-width: 40em;
}

.night-hero .hero-actions .btn-primary {
  min-height: 52px;
}

.night-grid {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.night-grid .feature + .strip {
  margin-top: calc(-1 * clamp(24px, 4vw, 56px));
}

.phone-solo {
  display: flex;
  justify-content: center;
}

.phone-solo .phone {
  max-width: 260px;
}

.night-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* « Heures calmes » and its picture down the left, the three short cards beside it. */
.night-card--tall {
  grid-row: span 3;
}

.night-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.night-card p {
  color: var(--ink-muted);
}

.night-card .clip {
  margin-top: auto;
  box-shadow: none;
}

.included {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 32px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
}

.included p {
  color: var(--ink-muted);
}

.included h3 {
  margin-bottom: 8px;
}

.included .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .night-card--tall {
    grid-row: auto;
  }

  .night-cards,
  .dusk-inner,
  .included {
    grid-template-columns: minmax(0, 1fr);
  }

  .dusk-sky {
    display: none;
  }
}

/* --- Video --------------------------------------------------------------- */

.video-frame {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  box-shadow: var(--shadow-lg);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f3f5f8;
}

/* The eight parts under the film: a row of stills that play in the same player. */
.video-parts {
  max-width: 960px;
  margin: 22px auto 0;
}

.video-parts h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--ink-muted);
  text-align: center;
}

.video-parts ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-parts a {
  display: grid;
  gap: 2px;
  padding: 6px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  text-decoration: none;
}

.video-parts a:hover,
.video-parts a[aria-current] {
  border-color: var(--garde);
}

.video-parts img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.video-part-name {
  padding: 0 4px;
  font-weight: 700;
  line-height: 1.3;
}

.video-part-length {
  padding: 0 4px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .video-parts ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.video-notes {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 960px;
  margin: 18px auto 0;
  color: var(--ink-muted);
  text-align: center;
}

.video-notes details {
  width: 100%;
  text-align: left;
}

.video-notes summary {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  color: var(--garde);
  font-weight: 700;
  cursor: pointer;
}

.transcript {
  margin: 14px 0 0;
  padding: 18px 22px 18px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
}

.transcript li + li {
  margin-top: 6px;
}

/* --- Prices -------------------------------------------------------------- */

.credits-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.credits-note .ai {
  flex: none;
  margin-top: 2px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.plan-featured {
  border: 2px solid var(--garde);
  box-shadow: var(--shadow-lg);
}

.plan-name {
  display: grid;
  gap: 2px;
}

.plan-name h3 {
  font-size: 1.45rem;
}

.plan-for {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.price {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.price-unit,
.price-alt {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Where prices and credits are told: their figures without the slashed zero. */
#prix,
#faq,
.included p,
.text-link[href="#prix"] {
  font-family: var(--font-figures);
}

.price-alt {
  min-height: 2.9em;
}

.plan-credits {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--garde-soft);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.plan-perso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
}

.plan-perso svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--garde);
}

.plan .checks {
  margin-top: 4px;
  font-size: 0.98rem;
}

.plan .btn {
  margin-top: auto;
}

.famille {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.famille p {
  color: var(--ink-muted);
}

.famille strong {
  color: var(--ink);
}

.plan-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.plan-foot > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.plan-foot strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 560;
}

.plan-foot p {
  color: var(--ink-muted);
}

@media (max-width: 980px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto;
  }

  .price-alt {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .plan-foot {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Trust --------------------------------------------------------------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.trust-item > div {
  display: grid;
  gap: 6px;
}

.trust-item svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--protege-soft);
  color: var(--protege);
}

.trust-item h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.trust-item p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.trust-note {
  margin-top: 26px;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 980px) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- FAQ ----------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}

.faq details > div {
  display: grid;
  gap: 10px;
  padding: 0 22px 20px;
  color: var(--ink-muted);
}

/* --- Closing band -------------------------------------------------------- */

.band {
  padding: clamp(56px, 7vw, 96px) 0;
  background: #111f38;
  color: #f3f5f8;
}

.band-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.band p {
  color: #f3f5f8c7;
  font-size: 1.15rem;
}

.band .btn-primary {
  margin-top: 8px;
  min-height: 56px;
  background: #8aa2ff;
  color: #0a111a;
}

.band .btn-primary:hover {
  background: #a9bcff;
  color: #0a111a;
}

/* --- Inner pages (pages/<slug>.md, scripts/pages.mjs) ------------------------
   One trade per page: the H1 and its introduction, then the sections read down
   the page, each heading beside its text; a section with a screenshot takes the
   home page's text-and-picture layout. */

.page-hero {
  padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.crumbs a {
  color: var(--ink-muted);
}

.page-hero h1 {
  max-width: 18em;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
}

.page-intro .lead {
  margin-top: 20px;
}

.page-intro .lead + .lead {
  margin-top: 12px;
}

.page-run {
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}

.page-run + .page-run {
  border-top: 0;
}

.page-blocks {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.page-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(28px, 5vw, 72px);
  align-items: start;
}

.page-block h2,
.page-feature h2 {
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem);
}

.page-feature h2 {
  margin-bottom: 14px;
}

.page-block-body,
.page-feature .feature-text {
  display: grid;
  gap: 14px;
  max-width: 40em;
}

.page-block-body > p,
.page-feature .feature-text > p {
  color: var(--ink-muted);
}

.page-block-body .checks,
.page-feature .checks {
  margin-top: 6px;
}

.page-block-body .hero-actions,
.page-feature .hero-actions {
  margin-top: 6px;
}

/* The home page alternates by position; here only the sections with a picture count. */
.page-blocks .feature:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.page-blocks .feature:nth-child(even) .feature-text {
  order: 0;
}

.page-blocks .feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.page-blocks .feature.flip .feature-text {
  order: 2;
}

.inner-page #video .section-head p {
  margin-top: 16px;
}

.band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
}

.band-link {
  color: #f3f5f8;
  font-weight: 700;
}

.band-link:hover {
  color: #ffffff;
}

.page-related h2 {
  margin-bottom: 20px;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
}

.page-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-related a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--ink);
  text-decoration: none;
}

.page-related a:hover {
  border-color: var(--garde);
  color: var(--ink);
}

.page-related strong {
  color: var(--garde);
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.12rem;
}

.page-related span {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* A guide reads as an article: one column at a reading measure, its pictures in it. */
.guide-body {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  max-width: 42em;
}

.guide-part {
  display: grid;
  gap: 14px;
}

.guide-part h2 {
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem);
}

.guide-part > p {
  color: var(--ink-muted);
}

.guide-part strong {
  color: var(--ink);
}

.guide-part .hero-actions {
  margin-top: 6px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 42px;
  color: var(--ink-muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--garde-soft);
  color: var(--garde);
  font-family: var(--font-figures);
  font-size: 0.95rem;
  font-weight: 700;
}

.guide-figure {
  margin: 10px 0;
}

.guide-date {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.guide-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list a {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.guide-list a:hover {
  border-color: var(--garde);
  color: var(--ink);
}

.guide-list strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  font-weight: 560;
  line-height: 1.25;
}

.guide-list span,
.guide-list time {
  color: var(--ink-muted);
}

.guide-list time {
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .page-block,
  .page-blocks .feature,
  .page-blocks .feature:nth-child(even),
  .page-blocks .feature.flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-blocks .feature.flip .feature-text {
    order: 0;
  }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid .brand {
  margin-bottom: 12px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* --- Day or night: with JavaScript, #perso shows the night alone --------- */

html[data-mode="perso"] .day {
  display: none;
}

html[data-mode="pro"] .night {
  display: none;
}

/* The sunset (and sunrise), drawn over the page while the theme changes. */
.sky {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 50%,
    var(--sky-low) 85%,
    #3a5182 100%
  );
  transition: opacity 0.6s ease;
}

.sky .stars {
  opacity: 0;
  transition: opacity 0.6s ease 0.25s;
}

.sky .moon {
  position: absolute;
  left: 68%;
  top: 62%;
  width: clamp(90px, 12vw, 150px);
  opacity: 0;
  transform: translateY(18vh);
  transition:
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.5s ease;
}

.sky.is-night {
  opacity: 1;
}

.sky.is-night .stars {
  opacity: 1;
}

.sky.is-night .moon {
  opacity: 1;
  transform: translateY(-34vh);
}

.sky .sky-day {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, #c9d3e6 0%, #e6ebf3 45%, #f3f5f8 100%);
  transition: opacity 0.45s ease;
}

.sky.is-day .sky-day {
  opacity: 1;
}

.sky.is-day .stars {
  opacity: 0;
}

.sky.is-day .moon {
  opacity: 0;
  transform: translateY(18vh);
}

/* --- 404 ----------------------------------------------------------------- */

.notfound {
  display: grid;
  min-height: 60vh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 48px var(--gutter);
  text-align: center;
}

.notfound p {
  color: var(--ink-muted);
}

/* Back to day: the moon is already up, and sets. */
.sky.sunrise .moon {
  opacity: 1;
  transform: translateY(-34vh);
  transition: none;
}

.sky.sunrise.is-day .moon {
  opacity: 0;
  transform: translateY(18vh);
  transition:
    transform 0.8s ease-in,
    opacity 0.6s ease;
}

/* --- Phone width: one picture per row ------------------------------------ */

@media (max-width: 600px) {
  .feature-visual.with-phone,
  .feature-visual.phone-left {
    padding: 0;
  }

  .feature-visual.with-phone .phone {
    display: none;
  }

  .feature-visual.prefer-phone {
    display: flex;
    justify-content: center;
  }

  .feature-visual.prefer-phone .clip {
    display: none;
  }

  .feature-visual.prefer-phone .phone {
    position: static;
    display: block;
    width: 64%;
    max-width: 250px;
  }

  .strip {
    display: none;
  }

  .night-hero {
    padding-top: 104px;
  }

  .night-hero .moon {
    top: 22px;
    right: 18px;
    width: 64px;
  }
}

/* The page's own moon takes over: the sky's fades out. */
.sky.landed .moon {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* --- « Besoin d'aide ? » (site.js loads the Crisp chat on click) --------- */

.help-button {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.help-button:hover {
  border-color: var(--line-strong);
  color: var(--garde);
}

/* Its shadow would hide the shared focus ring. */
.help-button:focus-visible {
  box-shadow: var(--focus-ring);
}

.help-button svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--garde);
}

.help-button[aria-busy="true"] {
  cursor: progress;
}

.help-button[hidden] {
  display: none;
}

/* Phones: a round icon, so it never hides what it floats over; the label
   stays for screen readers. */
@media (max-width: 600px) {
  .help-button {
    width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }

  .help-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .help-button svg {
    width: 22px;
    height: 22px;
  }
}

@media print {
  .help-button {
    display: none;
  }
}

/* « Réserver une démo » under a plan's main button. */
.plan-demo {
  align-self: center;
  margin-top: 10px;
  font-size: 0.95rem;
}
