  :root {
    /* Comme dans l'app : fond toujours clair, pas de variante sombre —
       color-scheme: light évite que les contrôles natifs (select...)
       basculent en rendu sombre même si l'OS est en thème sombre. */
    color-scheme: light;

    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --surface-3: #e6e7eb;
    --ink: #111318;
    --ink-soft: #4b5563;
    --ink-faint: #6b7280;
    --border: #e6e7eb;

    /* Couleur de marque — identique au rouge d'action principale de l'app
       (--brand-primary). Utilisée pour les CTA, la nav, les accents
       génériques du site : jamais pour l'identité propre d'un module. */
    --accent: #b91c1c;
    --accent-deep: #991b1b;
    --accent-soft: #fee2e2;
    --accent-ink: #ffffff;

    /* Identité du module Exploitation (bleu) — reprend telle quelle la
       couleur de statut de l'app (--brand-info). Le module Projets partage
       la couleur de marque (--accent, rouge) : dans l'app, son en-tête de
       tableau de bord utilise --brand-primary, pas de couleur dédiée. */
    --info: #1d4ed8;
    --info-soft: #dbeafe;

    /* Amber "en attente" (badge "à venir") — teinte assombrie pour rester
       lisible en texte sur fond clair, le jaune de marque brut (--dot-yellow)
       n'étant utilisé que comme puce/liseré décoratif. */
    --warn: #a16207;
    --danger: #dc2626;
    --shadow-color: 0 0% 8%;
    --dot-blue: #1d4ed8;
    --dot-yellow: #eab308;
    --dot-green: #16a34a;
    --dot-red: #dc2626;

    /* Vert assombri lisible en texte (même principe que --warn pour le
       jaune) — pour les rares endroits où le vert de marque porte un
       libellé plutôt qu'une simple bordure/puce décorative. */
    --green-deep: #15803d;

    --font-display: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: hidden; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

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

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 0;
  }

  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  ul { margin: 0; padding: 0; list-style: none; }
  button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }

  .wrap {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
  }
  @media (min-width: 640px) { .wrap { padding-inline: 32px; } }

  section { padding-block: 88px; }
  @media (max-width: 720px) { section { padding-block: 56px; } }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
  }
  .eyebrow::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }

  .h-xl { font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem); font-weight: 700; }
  .h-lg { font-size: clamp(1.4rem, 1.6vw + 1rem, 1.9rem); font-weight: 700; }
  .h-md { font-size: clamp(1.1rem, 0.7vw + 1rem, 1.3rem); font-weight: 700; }

  .lede {
    font-size: clamp(0.95rem, 0.3vw + 0.85rem, 1.05rem);
    color: var(--ink-soft);
    max-width: 56ch;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 1px 2px hsl(var(--shadow-color) / 0.15);
  }
  .btn-primary:hover { background: var(--accent-deep); }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover { background: var(--surface-2); }
  .btn-lg { padding: 15px 28px; font-size: 1rem; }

  /* ---------- Bandeau promo ---------- */
  /* Défile normalement hors de vue au scroll (pas sticky) : .nav, lui, est
     sticky et prend le relais en haut de viewport — un bandeau promo
     permanent aurait grignoté de la hauteur d'écran en continu, un simple
     bandeau d'accroche initial suffit. */
  .promo-bar {
    background: linear-gradient(90deg, #ca8a04, #eab308 40%, #facc15 70%, #fde047);
    color: #1f1300;
  }
  .promo-bar .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-block: 8px;
  }
  .promo-ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  }
  .promo-ticker-track {
    display: inline-flex;
    gap: 56px;
    white-space: nowrap;
    animation: promo-scroll 26s linear infinite;
  }
  .promo-ticker-track span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; }
  @keyframes promo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .promo-ticker-track { animation: none; }
  }
  .promo-client-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #fff;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .promo-client-link:hover { background: #f2f2f2; }

  /* ---------- Nav ---------- */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--border);
  }
  .nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
  .brand-dots {
    display: grid;
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(2, 7px);
    gap: 3px;
    flex-shrink: 0;
  }
  .brand-dots span { border-radius: 50%; }
  .brand-dots span:nth-child(1) { background: var(--dot-blue); }
  .brand-dots span:nth-child(2) { background: var(--dot-yellow); }
  .brand-dots span:nth-child(3) { background: var(--dot-green); }
  .brand-dots span:nth-child(4) { background: var(--dot-red); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
  }
  .nav-links a { position: relative; padding-bottom: 3px; transition: color 0.15s ease; }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1.5px;
    background: var(--accent);
    transition: right 0.2s ease;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { right: 0; }
  .nav-links a.active { color: var(--ink); }
  .nav-links a.active::after { right: 0; }
  .nav-cta { display: flex; align-items: center; gap: 10px; }
  .nav-toggle {
    display: none;
    height: 40px;
    align-items: center; justify-content: center;
    padding-inline: 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 600;
  }
  @media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-cta .btn-ghost { display: none; }
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 10px 4px; font-weight: 500; color: var(--ink-soft); border-radius: 8px; }
  .mobile-menu a:hover { color: var(--ink); background: var(--surface-2); }
  .mobile-menu a.active { color: var(--ink); background: var(--surface-2); }

  /* ---------- Page hero (Produit, Tarifs — pages sans grand visuel) ---------- */
  .page-hero { position: relative; padding-top: 64px; padding-bottom: 24px; overflow: hidden; text-align: center; }
  .page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(560px 380px at 15% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
      radial-gradient(480px 360px at 100% 0%, color-mix(in srgb, var(--info) 8%, transparent), transparent 65%);
    pointer-events: none;
  }
  .page-hero .wrap { position: relative; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

  /* ---------- Hero ---------- */
  .hero { position: relative; padding-top: 72px; padding-bottom: 40px; overflow: hidden; }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(560px 380px at 10% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
      radial-gradient(480px 360px at 100% 0%, color-mix(in srgb, var(--info) 10%, transparent), transparent 65%);
    pointer-events: none;
  }
  .hero .wrap { position: relative; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
  }
  @media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  }
  .hero-copy { display: flex; flex-direction: column; gap: 22px; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
  .hero-trust { font-size: 0.85rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 6px 10px; }
  .hero-trust b { color: var(--ink-soft); font-weight: 600; }

  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-copy > * { animation: fade-up 0.6s ease both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  .hero-visual { animation: fade-up 0.7s ease 0.18s both; }

  /* Cadre "navigateur" réutilisé par le visuel du héro et par les
     captures de modules — ancre les images comme de vrais écrans de
     l'app plutôt que des images flottantes. */
  .browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
  }
  .browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
  .browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
  .browser-url {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-faint);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 16px;
    margin-inline: auto;
  }

  .glow { position: absolute; border-radius: 50%; filter: blur(64px); z-index: -1; opacity: 0.5; pointer-events: none; }

  .hero-visual {
    position: relative;
    isolation: isolate;
  }
  .hero-visual .glow-a { width: 340px; height: 340px; background: var(--accent); top: -50px; right: -30px; }
  .hero-visual .glow-b { width: 300px; height: 300px; background: var(--info); bottom: -40px; left: -50px; }

  /* ---------- Hero slider ----------
     Parti pris graphique volontairement différent d'un slider classique :
     chaque écran n'est révélé que par sa moitié droite, en grand, avec une
     coupe nette (object-position, pas de fondu) et un liseré de couleur sur
     l'arête — un cadrage éditorial plutôt qu'une fenêtre de navigateur. */
  .hero-visual { justify-self: end; width: 100%; }
  .hero-slider {
    position: relative;
    isolation: isolate;
    aspect-ratio: 880 / 962;
    max-width: 460px;
    margin-left: auto;
  }
  /* Le cadre visible (coins arrondis seulement à droite, ombre) et le clip
     des images vivent sur ce calque interne — l'arête gauche reste un angle
     net, et le liseré jaune (calque séparé) peut ainsi déborder en haut et
     en bas sans être rogné par l'overflow:hidden. */
  .hero-slider-clip {
    position: absolute;
    inset: 0;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 36px 70px -24px hsl(var(--shadow-color) / 0.4), 0 10px 28px -10px hsl(var(--shadow-color) / 0.25);
    transition: box-shadow 0.35s ease;
  }
  .slider-edge {
    position: absolute;
    top: -18px;
    bottom: -18px;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: var(--dot-yellow);
    z-index: 3;
  }
  .hero-visual:hover .hero-slider-clip {
    box-shadow: 0 46px 80px -24px hsl(var(--shadow-color) / 0.45), 0 12px 32px -10px hsl(var(--shadow-color) / 0.28);
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .hero-slide.active { opacity: 1; pointer-events: auto; }
  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% center;
    display: block;
    transition: transform 0.5s ease;
  }
  .hero-visual:hover .hero-slide.active img { transform: scale(1.035); }
  @media (max-width: 960px) {
    .hero-visual { justify-self: center; }
    .hero-slider { margin-inline: auto; }
  }

  .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--ink-soft);
    box-shadow: 0 8px 16px -8px hsl(var(--shadow-color) / 0.3);
    z-index: 4;
    transition: background-color 0.15s ease, transform 0.15s ease;
  }
  .slider-arrow:hover { background: var(--surface-2); }
  .slider-arrow:active { transform: translateY(-50%) scale(0.94); }
  .slider-arrow.prev { left: -16px; }
  .slider-arrow.next { right: -16px; }

  .slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .slider-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--border);
    transition: background-color 0.2s ease, width 0.2s ease;
  }
  .slider-dot.active { background: var(--accent); width: 22px; }

  .slider-caption {
    margin-top: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
    min-height: 1.3em;
  }

  @media (max-width: 640px) {
    .slider-arrow { display: none; }
  }

  /* ---------- Proof bar ---------- */
  .proof {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
  }
  .proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
  }
  .proof-item {
    background: var(--surface-2);
    padding: 26px 22px 24px;
    border-top: 2px solid var(--accent);
  }
  .proof-item:nth-child(4n+2) { border-top-color: var(--info); }
  .proof-item:nth-child(4n+3) { border-top-color: var(--dot-yellow); }
  .proof-item:nth-child(4n) { border-top-color: var(--dot-green); }
  .proof-text { display: block; }
  .proof-item .num { display: block; font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
  .proof-item .label { display: block; font-size: 0.83rem; color: var(--ink-soft); margin-top: 2px; }
  @media (max-width: 760px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }

  /* ---------- Module feature blocks ---------- */
  .module-block .wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
  }
  .module-block.reverse .wrap { direction: rtl; }
  .module-block.reverse .wrap > * { direction: ltr; }
  @media (max-width: 900px) {
    .module-block .wrap, .module-block.reverse .wrap { grid-template-columns: 1fr; direction: ltr; }
    .module-block.reverse .visual { order: -1; }
  }

  .feature-list { display: flex; flex-direction: column; gap: 13px; margin-top: 8px; }
  .feature-list li {
    padding-left: 14px;
    border-left: 2px solid var(--border);
    font-size: 0.97rem;
    color: var(--ink-soft);
  }
  .feature-list li.tick-red { border-left-color: var(--accent); }
  .feature-list li.tick-blue { border-left-color: var(--info); }

  .visual { position: relative; isolation: isolate; animation: fade-up 0.7s ease 0.15s both; }
  .visual .glow { width: 300px; height: 300px; top: 50%; transform: translateY(-50%); }
  .visual .glow-red { background: var(--accent); left: -60px; }
  .visual .glow-blue { background: var(--info); right: -60px; }
  /* Même parti pris que le héro de l'accueil : coupe nette côté texte,
     coins arrondis seulement de l'autre côté, liseré qui déborde. */
  .visual .shot {
    position: relative;
    aspect-ratio: 880 / 962;
    max-width: 460px;
    margin-left: auto;
  }
  .visual .shot-clip {
    position: absolute;
    inset: 0;
    border-radius: 0 14px 14px 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 24px 48px -16px hsl(var(--shadow-color) / 0.3);
    transition: box-shadow 0.3s ease;
  }
  .visual .shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% center;
    display: block;
    transition: transform 0.5s ease;
  }
  .visual .shot-edge {
    position: absolute;
    top: -16px;
    bottom: -16px;
    left: 0;
    width: 3px;
    border-radius: 2px;
    z-index: 2;
  }
  .visual .shot-edge.red { background: var(--accent); }
  .visual .shot-edge.blue { background: var(--info); }
  .visual:hover .shot-clip { box-shadow: 0 32px 56px -16px hsl(var(--shadow-color) / 0.35); }
  .visual:hover .shot img { transform: scale(1.035); }
  @media (max-width: 640px) {
    .visual .shot { margin-inline: auto; }
  }

  .people-photo {
    max-width: 340px;
    margin-inline: auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px -16px hsl(var(--shadow-color) / 0.3);
    transform: rotate(1.5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .people-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
  .visual:hover .people-photo {
    transform: rotate(1.5deg) translateY(-5px);
    box-shadow: 0 32px 56px -16px hsl(var(--shadow-color) / 0.35);
  }
  @media (max-width: 640px) {
    .people-photo { transform: none; }
    .visual:hover .people-photo { transform: translateY(-5px); }
  }

  /* ---------- Responsive showcase (écran ordinateur + téléphone) ---------- */
  .responsive-visual { margin-top: 36px; padding-bottom: 44px; }
  .device-desktop {
    position: relative;
    width: 84%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px -16px hsl(var(--shadow-color) / 0.3);
    transform: rotate(-2deg);
    background: var(--surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .device-desktop img { width: 100%; height: auto; display: block; }
  .device-phone {
    position: absolute;
    bottom: -32px;
    right: -6px;
    width: 38%;
    max-width: 168px;
    border-radius: 22px;
    overflow: hidden;
    border: 5px solid var(--ink);
    box-shadow: 0 20px 40px -14px hsl(var(--shadow-color) / 0.35);
    transform: rotate(4deg);
    background: var(--ink);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .device-phone img { width: 100%; height: auto; display: block; }
  .visual:hover .device-desktop { transform: rotate(-2deg) translateY(-4px); }
  .visual:hover .device-phone { transform: rotate(4deg) translateY(-6px); }
  @media (max-width: 640px) {
    .device-desktop, .visual:hover .device-desktop { transform: none; width: 92%; margin-inline: auto; }
    .device-phone, .visual:hover .device-phone { transform: none; right: 4%; }
  }

  /* ---------- Divider intro section ---------- */
  .intro { text-align: center; }
  .intro .wrap { max-width: 700px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

  /* ---------- Module link cards (Accueil, Produit) ---------- */
  .module-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
  @media (max-width: 720px) { .module-links { grid-template-columns: 1fr; } }
  .module-link-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  .module-link-card.red { border-color: var(--accent); }
  .module-link-card.blue { border-color: var(--info); }
  .module-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px -20px hsl(var(--shadow-color) / 0.35);
  }
  .module-link-card.red:hover { border-color: var(--accent); }
  .module-link-card.blue:hover { border-color: var(--info); }
  .module-link-card h3 { font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
  .module-link-card p { font-size: 0.92rem; color: var(--ink-soft); }
  .module-link-cta { margin-top: 6px; font-size: 0.88rem; font-weight: 600; }
  .module-link-card.red .module-link-cta { color: var(--accent-deep); }
  .module-link-card.blue .module-link-cta { color: var(--info); }

  /* ---------- Feature grid ---------- */
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 44px;
  }
  @media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
  .feature-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px -18px hsl(var(--shadow-color) / 0.35);
  }
  /* Rotation sur les 4 couleurs du logo (rouge en tête — reste la couleur
     dominante du site par ailleurs : CTA, nav, eyebrow...) plutôt que
     rouge/bleu en alternance seule. Portée par le conteneur (.grid-3 ou
     .grid-4) : une grille de 3 tourne sur 3 couleurs, une grille de 4 sur
     les 4 — .module-link-card garde sa propre logique d'identité de module
     (rouge = Projets, bleu = Exploitation), jamais touchée ici. */
  .grid-3 .feature-card:nth-child(3n+1) { border-color: var(--accent); }
  .grid-3 .feature-card:nth-child(3n+2) { border-color: var(--info); }
  .grid-3 .feature-card:nth-child(3n) { border-color: var(--dot-green); }

  .grid-4 .feature-card:nth-child(4n+1) { border-color: var(--accent); }
  .grid-4 .feature-card:nth-child(4n+2) { border-color: var(--info); }
  .grid-4 .feature-card:nth-child(4n+3) { border-color: var(--dot-yellow); }
  .grid-4 .feature-card:nth-child(4n) { border-color: var(--dot-green); }
  .feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-top: 2px; }
  .feature-card p { font-size: 0.9rem; color: var(--ink-soft); }
  .feature-card.soon { border-style: dashed; }
  .feature-card.soon:hover { border-style: dashed; }
  .soon-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warn);
    background: color-mix(in srgb, var(--warn) 16%, transparent);
    padding: 3px 8px;
    border-radius: 999px;
  }

  /* ---------- Manifeste ---------- */
  .manifesto { text-align: center; }
  .manifesto .wrap { max-width: 760px; }
  .manifesto blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.6vw + 0.9rem, 1.55rem);
    font-weight: 500;
    line-height: 1.48;
    color: var(--ink);
    margin: 0;
  }
  .manifesto cite {
    display: block;
    margin-top: 24px;
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-faint);
  }

  /* ---------- Grille 3 colonnes (personas, détails de module) ---------- */
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
  @media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; gap: 20px; } }

  .persona-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-deep);
  }
  .grid-3 .feature-card:nth-child(3n+2) .persona-tag { color: var(--info); }
  .grid-3 .feature-card:nth-child(3n) .persona-tag { color: var(--green-deep); }

  .grid-4 .feature-card:nth-child(4n+2) .persona-tag { color: var(--info); }
  .grid-4 .feature-card:nth-child(4n+3) .persona-tag { color: var(--warn); }
  .grid-4 .feature-card:nth-child(4n) .persona-tag { color: var(--green-deep); }

  /* ---------- Steps ---------- */
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    counter-reset: step;
  }
  @media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
  .step { display: flex; flex-direction: column; gap: 10px; position: relative; }
  .step .step-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-deep);
    counter-increment: step;
  }
  .step:nth-child(4n+2) .step-num { color: var(--info); }
  .step:nth-child(4n+3) .step-num { color: var(--warn); }
  .step:nth-child(4n) .step-num { color: var(--green-deep); }
  .step .step-num::before { content: '0' counter(step); }
  .step h3 { font-size: 1.05rem; font-weight: 700; }
  .step p { font-size: 0.9rem; color: var(--ink-soft); }

  /* ---------- Trial CTA ---------- */
  /* Bande volontairement sombre dans les deux thèmes (contraste fort,
     pas un composant "de fond") — couleurs fixes, pas les tokens de thème. */
  .trial {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #170f0f;
    border-radius: 28px;
    margin-inline: 24px;
    padding: clamp(36px, 6vw, 64px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .trial::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -2;
  }
  .trial::after {
    content: '';
    position: absolute;
    width: 460px; height: 460px;
    top: -160px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(220,38,38,0.32), transparent 70%);
    z-index: -1;
  }
  .trial h1, .trial h2 { color: #faf5f4; }
  .trial p { color: #bfaeac; max-width: 46ch; }
  .trial .eyebrow { color: #f87171 !important; }
  .trial .eyebrow::before { background: #f87171; }
  .trial .btn-primary { background: #dc2626; color: #ffffff; }
  .trial .btn-primary:hover { background: #ef4444; }
  .trial-fine { font-size: 0.82rem; color: #8f7c7a !important; }
  .trial-fine a { color: #fecaca; }

  /* ---------- Offres ---------- */
  .billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 28px;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
  }
  .billing-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .billing-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px hsl(var(--shadow-color) / 0.12); }
  .billing-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent-deep);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
  }

  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
  @media (max-width: 960px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
  .pricing-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
  }
  .pricing-card.featured { border-color: var(--accent); box-shadow: 0 24px 48px -28px hsl(var(--shadow-color) / 0.4); }
  .pricing-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .pricing-card h3 { font-size: 1.2rem; font-weight: 700; }
  .pricing-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: 999px;
  }
  .pricing-tagline { font-size: 0.92rem; color: var(--ink-soft); margin-top: -10px; }
  .price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  .price-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--ink); }
  .price-currency { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
  .price-period { font-size: 0.9rem; color: var(--ink-faint); }
  .price-eur { font-size: 0.85rem; color: var(--ink-faint); margin-top: -10px; }
  .pricing-features { display: flex; flex-direction: column; gap: 11px; }
  .pricing-features li { padding-left: 14px; border-left: 2px solid var(--border); font-size: 0.92rem; color: var(--ink-soft); }
  .pricing-card.featured .pricing-features li { border-left-color: var(--accent); }
  .pricing-card .btn { margin-top: 4px; width: 100%; }
  .pricing-note { text-align: center; font-size: 0.86rem; color: var(--ink-faint); margin-top: 28px; }

  /* ---------- FAQ ---------- */
  .faq-list { max-width: 760px; margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
  .faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
  .faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-weight: 600;
    text-align: left;
  }
  .faq-q .plus { flex-shrink: 0; font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent-deep); transition: transform 0.2s ease; }
  .faq-item[data-open="true"] .plus { transform: rotate(45deg); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    color: var(--ink-soft);
    font-size: 0.92rem;
  }
  .faq-a > div { padding: 0 20px 18px; }
  .faq-item[data-open="true"] .faq-a { max-height: 240px; }

  /* ---------- Contact ---------- */
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: start;
    margin-top: 44px;
  }
  @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
  .contact-form { display: flex; flex-direction: column; gap: 18px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
  .form-field { display: flex; flex-direction: column; gap: 6px; }
  .form-field label { font-size: 0.85rem; font-weight: 600; }
  .form-field input, .form-field textarea {
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .form-field textarea { resize: vertical; min-height: 150px; }
  .contact-direct { display: flex; flex-direction: column; gap: 20px; }
  .contact-direct .feature-card { gap: 10px; }
  .contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--accent-deep);
    background: var(--accent-soft);
    padding: 13px 18px;
    border-radius: 14px;
    transition: background-color 0.15s ease;
  }
  .contact-email-link:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 15%); }
  .contact-note { font-size: 0.82rem; color: var(--ink-faint); }

  /* ---------- Final CTA band ---------- */
  .final-cta { text-align: center; }
  .final-cta .actions { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

  /* ---------- Footer ---------- */
  footer { border-top: 1px solid var(--border); padding-block: 56px 32px; }
  .footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
  @media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
  .footer-brand p { color: var(--ink-faint); font-size: 0.88rem; margin-top: 10px; max-width: 32ch; }
  .footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 600; margin-bottom: 14px; }
  .footer-col ul { display: flex; flex-direction: column; gap: 10px; }
  .footer-col a { font-size: 0.9rem; color: var(--ink-soft); }
  .footer-col a:hover { color: var(--ink); }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--ink-faint);
  }

  ::selection { background: var(--accent-soft); color: var(--accent-deep); }

  /* ---------- Modal "Se connecter" ---------- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: hsl(var(--shadow-color) / 0.55);
    backdrop-filter: blur(2px);
  }
  .modal-overlay.open { display: flex; }
  .connect-modal {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 46px 80px -24px hsl(var(--shadow-color) / 0.45), 0 12px 32px -10px hsl(var(--shadow-color) / 0.28);
  }
  .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  .connect-modal h2 { font-size: 1.3rem; font-weight: 600; margin: 0; }
  .modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ink-faint);
    font-size: 1.05rem;
  }
  .modal-close:hover { background: var(--surface-2); color: var(--ink); }
  .connect-modal .modal-lede {
    margin: 8px 0 20px;
    color: var(--ink-faint);
    font-size: 0.9rem;
  }
  .connect-links { display: flex; flex-direction: column; gap: 10px; }
  .connect-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  }
  .connect-link:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
  .connect-link-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
  .connect-link-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .connect-link-title { font-weight: 600; font-size: 0.98rem; display: flex; align-items: center; gap: 6px; }
  .connect-link-arrow { color: var(--ink-faint); font-size: 0.85rem; }
  .connect-link-desc { font-size: 0.85rem; color: var(--ink-faint); line-height: 1.45; }

  /* Espace client / Espace prestataire côte à côte, chacun à la moitié de
     la largeur du bouton "Espace équipe" au-dessus — même carte, juste
     plus étroite, texte plus court pour rester lisible à cette largeur. */
  .connect-links-row { display: flex; gap: 10px; }
  .connect-links-row .connect-link { flex: 1; min-width: 0; padding: 14px; }
  .connect-links-row .connect-link-title { flex-wrap: wrap; }

  @media (max-width: 420px) {
    .connect-links-row { flex-direction: column; }
  }

  @media (max-width: 480px) {
    .connect-modal { padding: 22px; border-radius: 16px; }
  }
