/* ============================================================
 * Documentation bat-i — palette de marque + homepage immersive
 * Développée par APCOM Solutions SA, éditée par bat-i SA.
 * Charte : navy #00004D · bleu électrique #0050FF · menthe #3DFF9E.
 * Système de composants hérité du design system APCOM (classes .bati-*).
 * ============================================================ */

/* ──────────────────────────────────────────────────────────────
 * Palette bat-i — bleu électrique #0050FF / navy #00004D / menthe #3DFF9E
 * ────────────────────────────────────────────────────────────── */
[data-md-color-primary="custom"] {
  --md-primary-fg-color:              #0050FF;
  --md-primary-fg-color--light:       #4D7BFF;
  --md-primary-fg-color--dark:        #00004D;
  --md-primary-bg-color:              #FFFFFF;
  --md-primary-bg-color--light:       #FFFFFFB3;
  --md-typeset-a-color:               #0050FF;
}
[data-md-color-accent="custom"] {
  --md-accent-fg-color:               #0050FF;
  --md-accent-fg-color--transparent:  rgba(0, 80, 255, 0.10);
  --md-accent-bg-color:               #FFFFFF;
  --md-accent-bg-color--light:        #FFFFFFB3;
}
[data-md-color-scheme="slate"][data-md-color-primary="custom"] {
  --md-primary-fg-color:              #0050FF;
  --md-primary-fg-color--light:       #4D7BFF;
  --md-primary-fg-color--dark:        #00004D;
  --md-typeset-a-color:               #5C8DFF;
}
[data-md-color-scheme="slate"][data-md-color-accent="custom"] {
  --md-accent-fg-color:               #5C8DFF;
}

/* Logo header */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.6rem;
  width: 1.6rem;
}

/* ============================================================
 * HOMEPAGE — wrapper .bati-home
 * Le full-bleed est forcé via <style> injecté dans overrides/home.html
 * ============================================================ */

.bati-home {
  color: var(--md-default-fg-color);
  font-size: 16px;
  line-height: 1.6;
  /* Break-out hard du conteneur parent (peu importe ses contraintes) */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Boutons Material — redéfinis car .md-typeset n'enveloppe plus la home */
.bati-home .md-button {
  display: inline-block;
  padding: 0.625em 1.6em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--md-primary-fg-color);
  background: transparent;
  border: 1px solid var(--md-primary-fg-color);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.bati-home .md-button:hover {
  background: var(--md-primary-fg-color);
  color: #ffffff;
}
.bati-home .md-button--primary {
  color: #ffffff;
  background: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
}
.bati-home .md-button--primary:hover {
  background: var(--md-primary-fg-color--dark);
  border-color: var(--md-primary-fg-color--dark);
  transform: translateY(-1px);
}

.bati-home h1,
.bati-home h2,
.bati-home h3 {
  font-family: inherit;
  font-weight: 700;
  margin: 0;
}

.bati-home p { margin: 0 0 1rem; }
.bati-home a { color: inherit; }

/* ──────────────────────────────────────────────────────────────
 * HERO immersif plein viewport
 * ────────────────────────────────────────────────────────────── */
.bati-hero {
  position: relative;
  min-height: calc(100vh - 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}
.bati-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../assets/hero-artisan.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.02);
}
.bati-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%),
    linear-gradient(180deg, rgba(0, 0, 77, 0.70) 0%, rgba(0, 0, 0, 0.60) 60%, rgba(0, 0, 0, 0.82) 100%);
}
.bati-hero-inner {
  width: 100%;
  max-width: 880px;
  position: relative;
  z-index: 1;
}
/* Override : .bati-home p { margin:0 } (plus specifique) ecrasait le centrage
   du baseline (margin:0 auto) -> il se collait a gauche. On reprend la main. */
.bati-home .bati-hero-baseline { margin-left: auto; margin-right: auto; text-align: center; }
.bati-home .bati-hero-title { text-align: center; }
.bati-hero-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 2.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  display: block;
}
.bati-hero-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.8rem;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 8px 32px rgba(0, 0, 0, 0.35);
}
.bati-hero-baseline {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 2.8rem;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.bati-hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.bati-hero-meta {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  letter-spacing: 0.01em;
}
.bati-hero-meta a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* CTA buttons override Material */
.bati-hero .md-button.bati-cta {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.bati-hero .md-button.bati-cta:not(.md-button--primary) {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
}
.bati-hero .md-button.bati-cta:not(.md-button--primary):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  color: #ffffff;
}
.bati-hero .md-button.bati-cta.md-button--primary {
  background: #ffffff;
  color: #0050FF;
  border-color: #ffffff;
}
.bati-hero .md-button.bati-cta.md-button--primary:hover {
  background: #eef2f7;
  color: #00004D;
  transform: translateY(-1px);
}

/* Indicateur scroll */
.bati-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  z-index: 1;
}
.bati-hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  animation: bati-scroll-dot 1.8s ease-in-out infinite;
}
@keyframes bati-scroll-dot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%       { transform: translate(-50%, 14px); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .bati-hero-scroll span { animation: none; }
}

/* ──────────────────────────────────────────────────────────────
 * BANDS — sections fond plein
 * ────────────────────────────────────────────────────────────── */
.bati-band {
  padding: 6rem 1.5rem;
  background: var(--md-default-bg-color);
}
.bati-band--alt {
  background: #f5f7fb;
}
[data-md-color-scheme="slate"] .bati-band {
  background: var(--md-default-bg-color);
}
[data-md-color-scheme="slate"] .bati-band--alt {
  background: rgba(255, 255, 255, 0.025);
}
.bati-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bati-band-inner > * {
  width: 100%;
}
.bati-band-inner > .bati-band-lead {
  width: auto;
  max-width: 720px;
}
.bati-band-title {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 1.2rem;
  letter-spacing: -0.015em;
  color: var(--md-default-fg-color);
}
.bati-band-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-align: center !important;
  color: var(--md-default-fg-color--light);
  max-width: 720px;
  margin: 0 auto 3.5rem;
  display: block;
}
.bati-home p {
  text-align: inherit;
}
.bati-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-primary-fg-color);
  margin: 0 0 0.75rem;
}
.bati-eyebrow--centered {
  text-align: center;
  margin-bottom: 0.6rem;
}

/* ──────────────────────────────────────────────────────────────
 * FEATURES — grille 6 cards
 * ────────────────────────────────────────────────────────────── */
.bati-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.bati-feature {
  display: block;
  padding: 2rem 1.8rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
[data-md-color-scheme="slate"] .bati-feature {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.bati-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 80, 255, 0.15);
  border-color: var(--md-primary-fg-color);
}
.bati-feature-icon {
  width: 36px;
  height: 36px;
  fill: var(--md-primary-fg-color);
  color: var(--md-primary-fg-color);
  margin-bottom: 1rem;
  display: block;
}
.bati-feature h3 {
  font-size: 1.2rem;
  margin: 0 0 0.8rem;
  color: var(--md-default-fg-color);
}
.bati-feature p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  margin: 0 0 1rem;
}
.bati-feature-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--md-primary-fg-color);
}

/* ──────────────────────────────────────────────────────────────
 * SHOWCASE — 2 colonnes texte + visuel
 * ────────────────────────────────────────────────────────────── */
.bati-showcase {
  padding: 6rem 1.5rem;
  background: var(--md-default-bg-color);
}
.bati-showcase-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.bati-showcase--left .bati-showcase-inner {
  grid-template-areas: "visual text";
}
.bati-showcase--right .bati-showcase-inner {
  grid-template-areas: "text visual";
}
.bati-showcase--left .bati-showcase-visual  { grid-area: visual; }
.bati-showcase--left .bati-showcase-text    { grid-area: text; }
.bati-showcase--right .bati-showcase-visual { grid-area: visual; }
.bati-showcase--right .bati-showcase-text   { grid-area: text; }

.bati-showcase-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bati-section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -0.015em;
  color: var(--md-default-fg-color);
}
.bati-showcase-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--md-default-fg-color);
  margin: 0 0 1.2rem;
}
.bati-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

@media (max-width: 820px) {
  .bati-showcase-inner {
    grid-template-columns: 1fr !important;
    grid-template-areas: "text" "visual" !important;
    gap: 2.5rem;
  }
}

/* Stat cards */
.bati-stat-card {
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark) 100%);
  color: #ffffff;
  padding: 1.6rem 1.8rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 80, 255, 0.18);
}
.bati-stat-card--alt {
  background: linear-gradient(135deg, var(--md-primary-fg-color--light) 0%, var(--md-primary-fg-color) 100%);
}
.bati-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.3rem;
}
.bati-stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.bati-stat-techlabel {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
  font-style: italic;
}
.bati-stat-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  margin-top: 0.2rem;
}
.bati-stat-desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

/* Code window */
.bati-code-window {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.bati-code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bati-code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4a4f57;
}
.bati-code-dot:nth-child(1) { background: #ff5f57; }
.bati-code-dot:nth-child(2) { background: #febc2e; }
.bati-code-dot:nth-child(3) { background: #28c840; }
.bati-code-title {
  margin-left: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.bati-code-body {
  padding: 1.4rem 1.6rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #c9d1d9;
  white-space: pre-wrap;
  overflow-x: auto;
}
.c-hash  { color: #79c0ff; font-weight: 600; }
.c-quote { color: #8b949e; font-style: italic; }

/* ──────────────────────────────────────────────────────────────
 * CATALOGUE — pastille bleue + grille d'items détaillés
 * ────────────────────────────────────────────────────────────── */
.bati-catalog {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1280px;
  align-items: start;
  width: 100%;
}
.bati-catalog-pill {
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark) 100%);
  color: #ffffff;
  padding: 1.6rem 1.4rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 80, 255, 0.18);
  position: sticky;
  top: 5rem;
}
.bati-catalog-pill--alt {
  background: linear-gradient(135deg, var(--md-primary-fg-color--light) 0%, var(--md-primary-fg-color) 100%);
}
.bati-catalog-pill-label {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.1;
  color: #ffffff;
}
.bati-catalog-pill-num {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}
.bati-catalog-pill-techlabel {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.3rem;
}
.bati-catalog-pill-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.2rem;
}
.bati-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
}
.bati-catalog-item {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  position: relative;
}
[data-md-color-scheme="slate"] .bati-catalog-item {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.bati-catalog-item:hover {
  border-color: var(--md-primary-fg-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 80, 255, 0.12);
}

/* Badge mybm — pour les entités/modules sous licence Bureau des métiers */
.bati-catalog-mybm {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 38px !important;
  max-width: 38px !important;
  height: auto !important;
  opacity: 0.85;
  transition: opacity 0.2s;
  pointer-events: none;
}
.bati-catalog-item--mybm {
  padding-right: 2.6rem;
}
.bati-catalog-item--mybm:hover .bati-catalog-mybm {
  opacity: 1;
}
.bati-catalog-item--mybm::after {
  content: "Entité sous licence Bureau des métiers";
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #0E7C66;
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.bati-catalog-item--mybm:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Encart "Sous licence Bureau des métiers" sur les pages dédiées */
.mybm-notice {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  background: rgba(0, 100, 50, 0.06);
  border: 1px solid rgba(0, 100, 50, 0.25);
  border-radius: 8px;
  margin: 1.5rem 0 2rem;
}
[data-md-color-scheme="slate"] .mybm-notice {
  background: rgba(50, 200, 100, 0.06);
  border-color: rgba(50, 200, 100, 0.25);
}
.mybm-notice-logo {
  width: 80px !important;
  max-width: 80px !important;
  height: auto !important;
  flex-shrink: 0;
}
.mybm-notice-title {
  color: #0E7C66;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  display: block;
}
[data-md-color-scheme="slate"] .mybm-notice-title {
  color: #34D39E;
}
.mybm-notice-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}
.bati-catalog-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--md-primary-fg-color);
  line-height: 1.2;
}
.bati-catalog-item p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
  margin: 0;
}
.bati-catalog-item code {
  font-size: 0.85em;
  background: rgba(0, 80, 255, 0.08);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}
@media (max-width: 820px) {
  .bati-catalog {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .bati-catalog-pill {
    position: static;
  }
}

/* ──────────────────────────────────────────────────────────────
 * ROADMAP — timeline visuelle
 * ────────────────────────────────────────────────────────────── */
.roadmap {
  position: relative;
  padding: 1.5rem 0 0.5rem;
  margin: 1.5rem 0 2rem;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.5rem;
  bottom: 1rem;
  width: 2px;
  background: var(--md-default-fg-color--lightest);
  border-radius: 2px;
}
.roadmap-item {
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.4rem;
}
.roadmap-marker {
  position: absolute;
  left: 0.4rem;
  top: 1.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--md-default-bg-color);
  border: 3px solid var(--md-default-fg-color--lightest);
  z-index: 1;
  transition: transform 0.2s ease;
}
.roadmap-content {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 1rem 1.4rem 0.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-md-color-scheme="slate"] .roadmap-content {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.roadmap-content:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.md-typeset .roadmap-content h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.05rem;
}
.md-typeset .roadmap-content ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}
.md-typeset .roadmap-content li {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}
.roadmap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.roadmap-status {
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  font-weight: 700;
}
.roadmap-phase {
  color: var(--md-default-fg-color--light);
  font-weight: 500;
}
.roadmap-date {
  margin-left: auto;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  color: var(--md-default-fg-color--light);
}

/* Status : done */
.roadmap-item--done .roadmap-marker {
  background: #16a34a;
  border-color: rgba(22, 163, 74, 0.25);
}
.roadmap-item--done .roadmap-marker::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.roadmap-item--done .roadmap-content {
  border-left-color: #16a34a;
}
.roadmap-item--done .roadmap-status {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}
[data-md-color-scheme="slate"] .roadmap-item--done .roadmap-status {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

/* Status : current */
.roadmap-item--current .roadmap-marker {
  background: #7c3aed;
  border-color: rgba(124, 58, 237, 0.25);
  animation: roadmap-pulse 2s ease-in-out infinite;
}
.roadmap-item--current .roadmap-content {
  border-left-color: #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
}
.roadmap-item--current .roadmap-status {
  background: rgba(124, 58, 237, 0.14);
  color: #7c3aed;
}
[data-md-color-scheme="slate"] .roadmap-item--current .roadmap-status {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}
@keyframes roadmap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-item--current .roadmap-marker { animation: none; }
}

/* Status : planned */
.roadmap-item--planned .roadmap-marker {
  background: var(--md-default-bg-color);
  border-color: var(--md-default-fg-color--lighter);
}
.roadmap-item--planned .roadmap-content {
  border-left-color: var(--md-default-fg-color--lighter);
  opacity: 0.96;
}
.roadmap-item--planned .roadmap-status {
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
}
[data-md-color-scheme="slate"] .roadmap-item--planned .roadmap-status {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

/* Variant : milestone (Phase v1) */
.roadmap-item--milestone .roadmap-marker {
  background: var(--md-primary-fg-color);
  border-color: rgba(0, 80, 255, 0.35);
  width: 1.65rem;
  height: 1.65rem;
  left: 0.27rem;
  top: 1rem;
}
.roadmap-item--milestone .roadmap-content {
  border-left-color: var(--md-primary-fg-color);
  background: linear-gradient(135deg, rgba(0, 80, 255, 0.04) 0%, transparent 100%);
}
[data-md-color-scheme="slate"] .roadmap-item--milestone .roadmap-content {
  background: linear-gradient(135deg, rgba(92, 141, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Variant : horizon (dernière étape, dégradé subtil) */
.roadmap-item--horizon .roadmap-content {
  border-style: dashed;
  background: transparent;
}

/* ──────────────────────────────────────────────────────────────
 * NOTES DE VERSION — date à côté du H2
 * ────────────────────────────────────────────────────────────── */
.md-typeset .version-date {
  font-size: 0.62em;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
  margin-left: 0.6em;
  letter-spacing: 0.02em;
  text-transform: none;
}
.md-typeset .version-date::before {
  content: "· ";
  opacity: 0.5;
  margin-right: 0.15em;
}

/* ──────────────────────────────────────────────────────────────
 * PAGE ÉTAT DU RÉSEAU — statut services
 * ────────────────────────────────────────────────────────────── */
.status-services {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.2rem 0 2rem;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left-width: 4px;
  border-radius: 8px;
  transition: transform 0.15s ease;
}
[data-md-color-scheme="slate"] .status-item {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.status-item:hover {
  transform: translateX(2px);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0.35;
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%       { opacity: 0.05; transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; }
}
.status-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.md-typeset .status-text strong {
  font-size: 0.98rem;
  color: var(--md-default-fg-color);
  line-height: 1.2;
}
.status-desc {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
}
.status-label {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* OK — vert */
.status-item--ok { border-left-color: #18a058; }
.status-item--ok .status-dot,
.status-dot--ok { background: #18a058; }
.status-item--ok .status-dot::after { background: #18a058; }
.status-item--ok .status-label {
  background: rgba(24, 160, 88, 0.15);
  color: #18a058;
}

/* Dégradé — orange */
.status-item--degraded { border-left-color: #d97706; }
.status-item--degraded .status-dot,
.status-dot--degraded { background: #d97706; }
.status-item--degraded .status-dot::after { background: #d97706; }
.status-item--degraded .status-label {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
}

/* Maintenance — bleu */
.status-item--scheduled { border-left-color: #2563eb; }
.status-item--scheduled .status-dot,
.status-dot--scheduled { background: #2563eb; }
.status-item--scheduled .status-dot::after { background: #2563eb; }
.status-item--scheduled .status-label {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
}

/* Down — rouge */
.status-item--down { border-left-color: #dc2626; }
.status-item--down .status-dot,
.status-dot--down { background: #dc2626; }
.status-item--down .status-dot::after { background: #dc2626; }
.status-item--down .status-label {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

.status-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 0;
}
.status-legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  font-size: 0.88rem;
}
[data-md-color-scheme="slate"] .status-legend-item {
  background: rgba(255, 255, 255, 0.03);
}
.status-legend-item .status-dot::after { display: none; }

/* ──────────────────────────────────────────────────────────────
 * PAGE TARIFS — styles commerciaux
 * ────────────────────────────────────────────────────────────── */
.md-typeset .tarifs-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  max-width: 760px;
  margin: 0 0 2rem;
}
.tarifs-hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
}
.md-typeset .tarifs-hero-cta .md-button {
  border-radius: 999px;
}
.tarifs-reassurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 1rem;
}
/* Variante 2 colonnes — pour les blocs de 4 cartes (évite 4 colonnes trop étroites et trop hautes). */
@media (min-width: 720px) {
  .tarifs-reassurance--cols2 { grid-template-columns: repeat(2, 1fr); }
}
.tarifs-reassurance-item {
  padding: 1.4rem 1.4rem;
  background: rgba(0, 80, 255, 0.04);
  border: 1px solid rgba(0, 80, 255, 0.15);
  border-radius: 10px;
}
[data-md-color-scheme="slate"] .tarifs-reassurance-item {
  background: rgba(92, 141, 255, 0.06);
  border-color: rgba(92, 141, 255, 0.2);
}
.tarifs-reassurance-icon {
  width: 32px;
  height: 32px;
  fill: var(--md-primary-fg-color);
  display: block;
  margin-bottom: 0.7rem;
}
.md-typeset .tarifs-reassurance-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--md-default-fg-color);
}
.md-typeset .tarifs-reassurance-item p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
  margin: 0;
}
.tarifs-cta-final {
  padding: 2.2rem 2rem;
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark) 100%);
  color: #ffffff;
  border-radius: 14px;
  text-align: center;
  margin: 1.5rem 0 2rem;
}
.md-typeset .tarifs-cta-final p {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.md-typeset .tarifs-cta-final .md-button {
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  margin: 0.4rem 0.3rem;
  display: inline-block;
}
.md-typeset .tarifs-cta-final .md-button--primary {
  background: #ffffff;
  color: var(--md-primary-fg-color);
  border-color: #ffffff;
}
.md-typeset .tarifs-cta-final .md-button--primary:hover {
  background: #eef2f7;
  color: var(--md-primary-fg-color--dark);
}
.md-typeset .tarifs-cta-final .md-button:not(.md-button--primary) {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.md-typeset .tarifs-cta-final .md-button:not(.md-button--primary):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  color: #ffffff;
}

/* Forcer affichage correct des price cards aussi en page md_typeset */
.md-typeset .bati-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.md-typeset .bati-price-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ──────────────────────────────────────────────────────────────
 * SIDE-CAR — section IA architecture
 * ────────────────────────────────────────────────────────────── */
.bati-sidecar {
  padding: 6rem 1.5rem;
  background: var(--md-default-bg-color);
}
.bati-sidecar-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bati-sidecar-inner > * {
  width: 100%;
}
.bati-sidecar-inner > .bati-band-lead,
.bati-sidecar-inner > .bati-sidecar-second {
  width: auto;
  max-width: 760px;
}
.bati-sidecar-schema {
  margin: 3rem auto 3.5rem;
  max-width: 1180px;
  background: #f5f7fb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 80, 255, 0.08);
}
[data-md-color-scheme="slate"] .bati-sidecar-schema {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
}
.bati-sidecar-schema img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: filter 0.3s ease;
}
[data-md-color-scheme="slate"] .bati-sidecar-schema img {
  filter: brightness(0.78) contrast(1.02);
  opacity: 0.92;
}
[data-md-color-scheme="slate"] .bati-sidecar-schema:hover img {
  filter: brightness(0.92) contrast(1);
  opacity: 1;
}
.bati-sidecar-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 1100px;
  text-align: left;
}
.bati-sidecar-pillar {
  padding: 1.8rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  position: relative;
}
[data-md-color-scheme="slate"] .bati-sidecar-pillar {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.bati-sidecar-pillar-num {
  position: absolute;
  top: -0.85rem;
  left: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bati-sidecar-pillar h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.7rem;
  color: var(--md-default-fg-color);
}
.bati-sidecar-pillar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  margin: 0;
}
.bati-sidecar-pillar code {
  font-size: 0.85rem;
  background: rgba(0, 80, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}
.bati-sidecar-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--md-primary-fg-color);
  margin: 0 0 2.5rem;
  text-align: center;
}
.bati-sidecar-second {
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--md-default-fg-color--light);
  text-align: center;
}
.bati-sidecar > .bati-sidecar-inner > p,
.bati-sidecar .bati-band-lead {
  text-align: center;
}
.bati-sidecar-second code {
  font-size: 0.9rem;
  background: rgba(0, 80, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}
.bati-buttons--centered {
  justify-content: center;
}

/* ──────────────────────────────────────────────────────────────
 * PILLARS — 4 piliers souveraineté
 * ────────────────────────────────────────────────────────────── */
.bati-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.bati-pillar {
  text-align: center;
  padding: 1.8rem 1.2rem;
}
.bati-pillar-icon {
  width: 42px;
  height: 42px;
  fill: var(--md-primary-fg-color);
  margin: 0 auto 1rem;
  display: block;
}
.bati-pillar h3 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: var(--md-default-fg-color);
}
.bati-pillar p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────
 * PERSONAS — 4 publics
 * ────────────────────────────────────────────────────────────── */
.bati-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.bati-persona {
  padding: 1.8rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
}
[data-md-color-scheme="slate"] .bati-persona {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.bati-persona-icon {
  width: 38px;
  height: 38px;
  fill: var(--md-primary-fg-color);
  margin-bottom: 1rem;
  display: block;
}
.bati-persona h3 {
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
  color: var(--md-default-fg-color);
}
.bati-persona p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────
 * PRICING — 3 cards tarifs
 * ────────────────────────────────────────────────────────────── */
.bati-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}
.bati-price {
  padding: 2.4rem 2rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 14px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
[data-md-color-scheme="slate"] .bati-price {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}
.bati-price:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 80, 255, 0.15);
}
.bati-price {
  position: relative;
}
.bati-price--featured {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 8px 24px rgba(0, 80, 255, 0.12);
}
.bati-price-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.6rem;
}
.bati-price-amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}
.bati-price-period {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--md-default-fg-color--light);
  letter-spacing: 0.02em;
}
.bati-price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.bati-price-features li {
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--md-default-fg-color);
  border-top: 1px solid var(--md-default-fg-color--lightest);
}
[data-md-color-scheme="slate"] .bati-price-features li {
  border-color: rgba(255, 255, 255, 0.06);
}
.bati-price-features li:first-child { border-top: none; }
.bati-pricing-note {
  text-align: center;
  margin: 2.5rem auto 0.6rem;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 80, 255, 0.06);
  border-left: 3px solid var(--md-primary-fg-color);
  border-radius: 4px;
  font-size: 0.98rem;
  color: var(--md-default-fg-color);
  max-width: 600px;
  width: auto !important;
}
[data-md-color-scheme="slate"] .bati-pricing-note {
  background: rgba(92, 141, 255, 0.08);
}
.bati-pricing-cta {
  text-align: center !important;
  margin: 3.5rem 0 0;
  width: 100%;
}

/* Override flexbox sizing pour bonus (max-width respecté + margin auto) */
.bati-band-inner > .bati-pricing-bonus {
  width: auto;
}

/* Encart bonus migration */
.bati-pricing-bonus {
  max-width: 880px;
  margin: 3rem auto 0;
  padding: 2rem 2.2rem 2rem;
  background: linear-gradient(135deg, rgba(0, 80, 255, 0.06) 0%, rgba(0, 80, 255, 0.02) 100%);
  border: 1px solid rgba(0, 80, 255, 0.25);
  border-radius: 14px;
  text-align: center;
  position: relative;
}
[data-md-color-scheme="slate"] .bati-pricing-bonus {
  background: linear-gradient(135deg, rgba(92, 141, 255, 0.08) 0%, rgba(0, 80, 255, 0.04) 100%);
  border-color: rgba(92, 141, 255, 0.3);
}
.bati-pricing-bonus-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--md-primary-fg-color);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.bati-pricing-bonus h3 {
  font-size: 1.25rem;
  margin: 0.3rem 0 0.8rem;
  color: var(--md-default-fg-color);
}
.bati-pricing-bonus p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--md-default-fg-color);
  max-width: 720px;
  margin: 0 auto 0.8rem;
}
.bati-pricing-bonus-cond {
  font-size: 0.85rem !important;
  font-style: italic;
  color: var(--md-default-fg-color--light) !important;
  margin-bottom: 0 !important;
}

/* ──────────────────────────────────────────────────────────────
 * CTA FINAL
 * ────────────────────────────────────────────────────────────── */
.bati-cta-final {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark) 100%);
  color: #ffffff;
  text-align: center;
}
.bati-cta-final-inner {
  max-width: 760px;
  margin: 0 auto;
}
.bati-cta-final h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 1rem;
  color: #ffffff;
}
.bati-cta-final p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
}
.bati-cta-final-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.bati-cta-final .md-button {
  border-radius: 999px;
  padding: 0.7rem 1.7rem;
}
.bati-cta-final .md-button--primary {
  background: #ffffff;
  color: #0050FF;
  border-color: #ffffff;
}
.bati-cta-final .md-button--primary:hover {
  background: #eef2f7;
  color: #00004D;
}
.bati-cta-final .md-button:not(.md-button--primary) {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.bati-cta-final .md-button:not(.md-button--primary):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────────
 * Donut APCOM — répartition forfait Contrat distributeur
 * ────────────────────────────────────────────────────────────── */
.apcom-donut-wrap {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
}
.apcom-donut {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  animation: apcom-donut-appear 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes apcom-donut-appear {
  from { opacity: 0; transform: scale(0.9) rotate(-12deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
.apcom-donut-ring {
  stroke: var(--md-default-fg-color--lightest);
}
.apcom-donut-seg {
  transform-origin: 21px 21px;
  transition: stroke-width 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
  cursor: default;
}
svg.apcom-donut > circle.seg-1 { stroke: #00004D !important; }
svg.apcom-donut > circle.seg-2 { stroke: #E84B1D !important; }
svg.apcom-donut > circle.seg-3 { stroke: #8B1A2D !important; }
svg.apcom-donut > circle.seg-4 { stroke: #7CB6D7 !important; }
svg.apcom-donut > circle.seg-5 { stroke: #F4C400 !important; }
svg.apcom-donut > circle.seg-6 { stroke: #5A9F2B !important; }
svg.apcom-donut > circle.apcom-donut-ring { stroke: var(--md-default-fg-color--lightest) !important; }
.apcom-donut:hover .apcom-donut-seg { opacity: 0.35; }
.apcom-donut .apcom-donut-seg:hover {
  stroke-width: 7.6;
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.18));
}
.apcom-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
  min-width: 240px;
}
.apcom-donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 !important;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--md-default-fg-color--light);
}
.apcom-donut-legend li strong {
  font-weight: 400;
}
.apcom-donut-chip {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}
.apcom-donut-legend li .pct {
  margin-left: auto;
  color: var(--md-default-fg-color--lighter, var(--md-default-fg-color--light));
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 400;
}
@media (max-width: 720px) {
  .apcom-donut-wrap { flex-direction: column; align-items: stretch; }
  .apcom-donut { width: 100%; height: auto; max-width: 320px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .apcom-donut { animation: none; }
  .apcom-donut-seg { transition: none; }
}

/* ──────────────────────────────────────────────────────────────
 * Distributeurs partenaires — fiches
 * ────────────────────────────────────────────────────────────── */
.apcom-distributors {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.apcom-distributor-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  background: var(--md-default-bg-color);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.apcom-distributor-card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.apcom-distributor-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 0.25rem;
  padding: 0.25rem;
}
.apcom-distributor-card h3 {
  margin-top: 0 !important;
}
@media (max-width: 600px) {
  .apcom-distributor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .apcom-distributor-logo {
    justify-self: center;
  }
}

/* ──────────────────────────────────────────────────────────────
 * Bulle IA-friendly "Pour nous comprendre" — home APCOM
 * ────────────────────────────────────────────────────────────── */
.apcom-ia-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  font-family: var(--md-text-font-family, inherit);
  pointer-events: none;
}
.apcom-ia-bubble * { pointer-events: auto; }
.apcom-ia-bubble[data-state="hidden"] .apcom-ia-dot,
.apcom-ia-bubble[data-state="hidden"] .apcom-ia-card,
.apcom-ia-bubble[data-state="hidden"] .apcom-ia-pill,
.apcom-ia-bubble[data-state="dot"] .apcom-ia-card,
.apcom-ia-bubble[data-state="dot"] .apcom-ia-pill,
.apcom-ia-bubble[data-state="card"] .apcom-ia-dot,
.apcom-ia-bubble[data-state="card"] .apcom-ia-pill,
.apcom-ia-bubble[data-state="pill"] .apcom-ia-dot,
.apcom-ia-bubble[data-state="pill"] .apcom-ia-card { display: none; }

/* Dot pulsant */
.apcom-ia-dot {
  width: 18px; height: 18px;
  border: none; border-radius: 50%;
  background: var(--md-primary-fg-color);
  cursor: pointer; padding: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  animation: apcom-ia-fade-in 0.3s ease-out;
}
.apcom-ia-dot::before {
  content: ""; position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  opacity: 0.45;
  animation: apcom-ia-pulse 2s ease-out infinite;
}
@keyframes apcom-ia-pulse {
  0%   { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Carte complète */
.apcom-ia-card {
  width: 320px;
  max-width: calc(100vw - 3rem);
  padding: 1.25rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark, #00004D) 100%);
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  animation: apcom-ia-slide-up 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
}
.apcom-ia-close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 28px; height: 28px;
  background: transparent; border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer; padding: 4px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.apcom-ia-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.apcom-ia-close svg { width: 100%; height: 100%; }
.apcom-ia-icon {
  width: 32px; height: 32px;
  margin: 0 0 0.5rem; opacity: 0.95;
  color: #fff;
}
.apcom-ia-icon svg { width: 100%; height: 100%; }
.apcom-ia-title {
  margin: 0 0 0.5rem !important;
  font-size: 1.05rem; font-weight: 600;
  color: #fff;
}
.apcom-ia-text {
  margin: 0 0 0.7rem !important;
  font-size: 0.86rem; line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.apcom-ia-text:last-of-type { margin-bottom: 1rem !important; }
.apcom-ia-text strong { color: #fff; }
.apcom-ia-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 1rem;
  background: #fff;
  color: var(--md-primary-fg-color) !important;
  font-size: 0.86rem; font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.apcom-ia-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.apcom-ia-cta svg { width: 14px; height: 14px; }

/* Pill rappel */
.apcom-ia-pill {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, var(--md-primary-fg-color--dark, #00004D) 100%);
  border: none; color: #fff;
  cursor: pointer; padding: 11px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: apcom-ia-fade-in 0.3s ease-out;
}
.apcom-ia-pill:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26); }
.apcom-ia-pill svg { width: 100%; height: 100%; }

/* Animations communes */
@keyframes apcom-ia-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes apcom-ia-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .apcom-ia-dot::before { animation: none; }
  .apcom-ia-card, .apcom-ia-pill, .apcom-ia-dot { animation: none; }
  .apcom-ia-cta { transition: none; }
}

/* Responsive */
@media (max-width: 480px) {
  .apcom-ia-bubble { bottom: 1rem; right: 1rem; left: 1rem; display: flex; justify-content: flex-end; }
  .apcom-ia-card { width: 100%; }
}

/* ===== Page Télécharger (apps mobiles MyBM) ===== */
.bati-download {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: center; margin: 1.5rem 0;
}
.bati-download-card {
  flex: 1 1 280px; max-width: 360px; text-align: center;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: .8rem; padding: 1.5rem 1.5rem 1.2rem;
  background: var(--md-default-bg-color);
}
.bati-download-card h3 { margin-top: 0; }
.bati-download-card .md-button { width: 100%; margin: .2rem 0 1.3rem; }
.bati-qr {
  display: inline-block; margin: .2rem auto 0; padding: 12px;
  background: #fff; border-radius: 14px;
  border: 2px solid var(--md-primary-fg-color, #00004D);
  box-shadow: 0 2px 10px rgba(11, 58, 111, .12), 0 0 0 1px rgba(11, 58, 111, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bati-qr:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(11, 58, 111, .22); }
.bati-qr img { width: 128px; height: 128px; display: block; }
.bati-qr-hint {
  font-size: .75rem; color: var(--md-default-fg-color--light); margin-top: .65rem;
}

/* ===== Page TODO (board Deck live — hérité, optionnel) ===== */
.bati-todo { margin: 1.2rem 0; }
.bati-todo-bar {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
  justify-content: space-between; margin: 0 0 1.4rem;
  padding: .8rem 1.1rem; border-radius: .7rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
}
.bati-todo-open { font-size: 1rem; }
.bati-todo-open strong {
  font-size: 1.3rem; color: var(--md-primary-fg-color); margin-right: .15rem;
}
.bati-todo-sync { font-size: .82rem; color: var(--md-default-fg-color--light); }
.bati-todo-colhead {
  display: flex; align-items: center; gap: .55rem;
  margin: 1.8rem 0 .6rem; font-size: 1.15rem;
}
.bati-todo-count {
  font-size: .8rem; font-weight: 700; line-height: 1;
  background: var(--md-primary-fg-color); color: #fff;
  padding: .2rem .5rem; border-radius: 999px;
}
.bati-todo-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bati-todo-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--md-default-fg-color--light);
  border-bottom: 2px solid var(--md-default-fg-color--lightest); padding: .5rem .6rem;
}
.bati-todo-table td {
  padding: .55rem .6rem; border-bottom: 1px solid var(--md-default-fg-color--lightest);
  vertical-align: top;
}
.bati-todo-date { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--md-default-fg-color--light); }
.bati-todo-chip {
  display: inline-block; font-size: .72rem; font-weight: 600; line-height: 1.3;
  padding: .12rem .5rem; border-radius: 999px; margin: .1rem .15rem .1rem 0;
}
.bati-todo-empty { color: var(--md-default-fg-color--light); font-style: italic; }
.bati-todo-state { color: var(--md-default-fg-color--light); font-style: italic; padding: 1rem 0; }
.bati-todo-err { color: #b5341f; }
@media (max-width: 600px) { .bati-todo-bar { flex-direction: column; align-items: flex-start; } }

/* ============================================================
 * ACCENTS DE MARQUE bat-i (ajouts spécifiques)
 * Menthe #3DFF9E, hero dégradé de marque, code couleur par solution.
 * ============================================================ */

:root {
  --bati-navy:  #00004D;
  --bati-blue:  #0050FF;
  --bati-mint:  #3DFF9E;
  --bati-mint-deep: #00B871;   /* menthe lisible sur fond clair */
  /* Couleurs de solution (code couleur transverse de la doc) */
  --bati-id:    #0050FF;       /* bat-id  — bleu électrique  (B2C) */
  --bati-ait:   #11183A;       /* AIT     — navy institutionnel (B2G) */
  --bati-iq:    #6B7894;       /* IQ      — gris (à venir)    (B2B) */
}

/* HERO bat-i — dégradé de marque (aucune photo : asset non fabriqué) */
.bati-hero-bg {
  background-image:
    radial-gradient(1200px 600px at 70% 10%, rgba(61,255,158,0.10), transparent 60%),
    radial-gradient(900px 500px at 15% 90%, rgba(0,80,255,0.45), transparent 60%),
    linear-gradient(160deg, #00004D 0%, #001A8C 45%, #0050FF 100%) !important;
  background-size: cover !important;
  filter: none !important;
}
.bati-hero-overlay {
  background:
    radial-gradient(ellipse at center, rgba(0,0,40,0.35) 0%, rgba(0,0,40,0.15) 70%, transparent 100%) !important;
}
.bati-hero-scroll { border-color: rgba(61,255,158,0.8); }
.bati-hero-scroll span { background: var(--bati-mint); }

/* Filet menthe sous les eyebrows + liens de feature au survol */
.bati-eyebrow { color: var(--bati-blue); }
.bati-feature:hover .bati-feature-link { color: var(--bati-mint-deep); }
[data-md-color-scheme="slate"] .bati-feature:hover .bati-feature-link { color: var(--bati-mint); }

/* ──────────────────────────────────────────────────────────────
 * SOLUTIONS — grandes cartes de présentation (home "bible")
 * ────────────────────────────────────────────────────────────── */
.bati-solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}
.bati-solution {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-top: 4px solid var(--bati-blue);
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none !important;
  color: inherit !important;
}
[data-md-color-scheme="slate"] .bati-solution {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
  border-top-color: var(--bati-blue);
}
.bati-solution:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,80,255,0.16);
}
.bati-solution--id  { border-top: 4px solid transparent; border-image: linear-gradient(90deg, #3dff9e, #0050ff) 1; }
.bati-solution--ait { border-top-color: #0042d6; }
.bati-solution--iq  { border-top-color: var(--bati-iq); opacity: 0.92; }
.bati-solution-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bati-blue); margin-bottom: 0.5rem;
}
.bati-solution--ait .bati-solution-eyebrow { color: #0042d6; }
.bati-solution--iq  .bati-solution-eyebrow { color: var(--bati-iq); }
.bati-solution h3 { font-size: 1.45rem; margin: 0 0 0.2rem; color: var(--md-default-fg-color); }
.bati-solution-target {
  font-size: 0.85rem; font-weight: 600; color: var(--md-default-fg-color--light);
  margin: 0 0 0.9rem;
}
.bati-solution-pitch { font-size: 0.96rem; line-height: 1.6; color: var(--md-default-fg-color--light); margin: 0 0 1.1rem; }
.bati-solution-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.bati-solution-list li {
  font-size: 0.88rem; line-height: 1.5; padding: 0.32rem 0 0.32rem 1.4rem; position: relative;
  color: var(--md-default-fg-color);
}
.bati-solution-list li::before {
  content: ""; position: absolute; left: 0; top: 0.7rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--bati-mint-deep);
}
.bati-solution-cta { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--bati-blue); }
.bati-solution--iq .bati-solution-cta { color: var(--bati-iq); }

/* Badge "à venir" / statut */
.bati-tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; vertical-align: middle;
  margin-left: 0.5rem;
}
.bati-tag--soon { background: rgba(107,120,148,0.15); color: #6B7894; }
.bati-tag--b2c  { background: rgba(0,80,255,0.12); color: var(--bati-blue); }
.bati-tag--b2g  { background: rgba(53,82,176,0.14); color: #3552B0; }
.bati-tag--b2b  { background: rgba(107,120,148,0.15); color: #6B7894; }

/* Bandeau "tronc commun" — schéma mono-user */
.bati-trunk {
  margin: 3rem auto 0; max-width: 980px;
  background: linear-gradient(135deg, rgba(0,80,255,0.05) 0%, rgba(61,255,158,0.05) 100%);
  border: 1px solid rgba(0,80,255,0.18); border-radius: 16px; padding: 2.2rem 2rem; text-align: center;
}
[data-md-color-scheme="slate"] .bati-trunk {
  background: linear-gradient(135deg, rgba(0,80,255,0.10) 0%, rgba(61,255,158,0.06) 100%);
  border-color: rgba(92,141,255,0.25);
}
.bati-trunk h3 { font-size: 1.3rem; margin: 0 0 0.6rem; color: var(--md-default-fg-color); }
.bati-trunk p { font-size: 0.98rem; line-height: 1.65; color: var(--md-default-fg-color--light); max-width: 760px; margin: 0 auto; }
.bati-trunk-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem;
  margin: 1.6rem 0 0.4rem; font-weight: 600; font-size: 0.9rem;
}
.bati-trunk-node {
  padding: 0.55rem 1rem; border-radius: 999px; background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest); color: var(--md-default-fg-color);
}
.bati-trunk-node--root { background: var(--bati-blue); color: #fff; border-color: var(--bati-blue); }
.bati-trunk-arrow { color: var(--bati-blue); font-weight: 700; }

/* Encart co-branding (distributeur bat-i SA) — pages dédiées */
.bati-cobrand-notice {
  display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.3rem;
  background: rgba(0,80,255,0.05); border: 1px solid rgba(0,80,255,0.22);
  border-radius: 10px; margin: 1.5rem 0 2rem;
}
.bati-cobrand-title { color: var(--bati-blue); font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.2rem; }
.bati-cobrand-notice p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--md-default-fg-color--light); }


/* Pastille de code module (catalogues + pages) */
.bati-mod-code { display:inline-block; font-size:.66rem; font-weight:800; letter-spacing:.04em; color:#fff;
  background:linear-gradient(135deg,#3dff9e,#0050ff); border-radius:6px; padding:.12rem .42rem; margin-right:.45rem; vertical-align:baseline; }
.bati-catalog-grid--ait .bati-mod-code { background:linear-gradient(135deg,#0042d6,#00004d); }
.bati-catalog-item h4 .bati-mod-code { font-size:.6rem; }

/* ── Catalogues : icônes de plateforme + bloc "à venir" grisé ── */
.bati-catalog-plats { display:flex; gap:.3rem; margin:.15rem 0 .3rem; flex-wrap:wrap; }
.bati-catalog-plat { display:inline-flex; align-items:center; gap:.22rem; padding:.1rem .4rem; border-radius:999px;
  background:rgba(255,255,255,.15); font-size:.56rem; font-weight:600; letter-spacing:.03em; color:rgba(255,255,255,.95); }
.bati-catalog-plat svg { width:11px; height:11px; }
.bati-catalog--soon { opacity:.9; }
.bati-catalog--soon .bati-catalog-pill { background:linear-gradient(135deg,#6b7894,#3a4358) !important; }
.bati-catalog-soon-tag { display:inline-block; margin-top:.45rem; font-size:.6rem; font-weight:800; letter-spacing:.08em;
  text-transform:uppercase; background:rgba(255,255,255,.2); color:#fff; border-radius:999px; padding:.14rem .55rem; }
.bati-catalog-item--soon { pointer-events:none; opacity:.55; filter:grayscale(.6); }
.bati-catalog-item--soon h4, .bati-catalog-item--soon h4 .bati-mod-code { color:#6b7894 !important; }
.bati-catalog-grid--iq .bati-mod-code { background:#6b7894 !important; }

/* ── Pastilles de statut (tableaux de couverture, ex. API cantonales) ── */
.st { display:inline-block; font-size:.72rem; font-weight:700; line-height:1.3; padding:.08rem .5rem; border-radius:999px; white-space:nowrap; }
.st::before { content:"●"; margin-right:.32rem; font-size:.72em; vertical-align:baseline; }
.st--on   { background:rgba(0,162,95,.14);  color:#00a25f; }
.st--prep { background:rgba(234,106,10,.15); color:#ea6a0a; }
.st--off  { background:rgba(229,72,77,.13);  color:#e5484d; }
.st--star { background:linear-gradient(135deg, rgba(61,255,158,.20), rgba(0,80,255,.16)); color:#0042d6; }
[data-md-color-scheme="slate"] .st--on   { color:#4ade80; }
[data-md-color-scheme="slate"] .st--prep { color:#fbbf24; }
[data-md-color-scheme="slate"] .st--off  { color:#f87171; }
[data-md-color-scheme="slate"] .st--star { color:#8fb2ff; }

/* ── Connecteurs cloud (logos + statut) ── */
.bati-cloud-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:.7rem; margin:1rem 0 1.6rem; }
.bati-cloud { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.5rem; padding:1rem .7rem;
  border:1px solid var(--md-default-fg-color--lightest); border-radius:12px; background:var(--md-default-bg-color); transition:border-color .2s, transform .2s; }
.bati-cloud:hover { border-color:var(--bati-blue); transform:translateY(-2px); }
[data-md-color-scheme="slate"] .bati-cloud { background:rgba(255,255,255,.02); border-color:rgba(255,255,255,.08); }
.bati-cloud img { width:30px; height:30px; object-fit:contain; }
.bati-cloud-name { font-weight:600; font-size:.85rem; line-height:1.2; color:var(--md-default-fg-color); }
.st--dev { background:rgba(0,80,255,.12); color:#0050ff; }
[data-md-color-scheme="slate"] .st--dev { color:#6a95e2; }

/* ── Fond cadastral discret du hero (test) ── */
.bati-hero::after {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:url('../assets/cadastre.svg') repeat; background-size:520px;
  opacity:.08; mix-blend-mode:screen;
  -webkit-mask-image: radial-gradient(125% 105% at 50% 38%, #000 28%, transparent 84%);
          mask-image: radial-gradient(125% 105% at 50% 38%, #000 28%, transparent 84%);
}

/* ── Pastille de statut fonctionnel d'un module ── */
.mod-status { display:inline-flex; align-items:center; gap:.5rem; font-family:"Roboto Mono", ui-monospace, monospace;
  font-size:.74rem; font-weight:600; letter-spacing:.02em; padding:.24rem .7rem; border-radius:8px; border:1px solid transparent; }
.mod-status::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; flex-shrink:0; }
.mod-status--ok      { color:#16a34a; background:rgba(22,163,74,.10);  border-color:rgba(22,163,74,.32); }
.mod-status--ok::before { animation:mod-pulse 2.2s infinite; }
.mod-status--partial { color:#b58200; background:rgba(202,138,4,.12); border-color:rgba(202,138,4,.32); }
.mod-status--future  { color:#ea580c; background:rgba(234,88,12,.11); border-color:rgba(234,88,12,.32); }
[data-md-color-scheme="slate"] .mod-status--ok      { color:#4ade80; background:rgba(74,222,128,.10); border-color:rgba(74,222,128,.3); }
[data-md-color-scheme="slate"] .mod-status--partial { color:#facc15; background:rgba(250,204,21,.10); border-color:rgba(250,204,21,.3); }
[data-md-color-scheme="slate"] .mod-status--future  { color:#fb923c; background:rgba(251,146,60,.10); border-color:rgba(251,146,60,.3); }
.mod-status-note { font-size:.8rem; font-weight:600; color:var(--md-default-fg-color--light); margin-left:.55rem; }
@keyframes mod-pulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.55)} 70%{box-shadow:0 0 0 6px rgba(22,163,74,0)} 100%{box-shadow:0 0 0 0 rgba(22,163,74,0)} }

.bati-catalog-pill--id { background:linear-gradient(135deg,#003bd6 0%,#0050ff 42%,#14c98e 100%) !important; box-shadow:0 8px 26px rgba(20,201,142,.24); text-shadow:0 1px 3px rgba(0,0,0,.22); }

/* ── Galerie / slide d'application (grille de vignettes + lightbox glightbox) ── */
.bati-gal { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:.7rem; margin:1.1rem 0 1.6rem; }
.bati-gal a { display:block; border-radius:10px; overflow:hidden; border:1px solid var(--md-default-fg-color--lightest); box-shadow:0 4px 16px rgba(0,30,90,.10); cursor:zoom-in; }
.bati-gal img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; object-position:top center; margin:0; transition:transform .3s ease; }
.bati-gal a:hover img { transform:scale(1.05); }
[data-md-color-scheme="slate"] .bati-gal a { border-color:rgba(255,255,255,.1); }

/* ── Édition & distribution : carte de téléchargement bat-id ── */
.bati-download { display:flex; gap:1.7rem; align-items:center; flex-wrap:wrap; padding:1.9rem 2rem; border-radius:18px;
  background:linear-gradient(135deg,#003bd6 0%,#0050ff 42%,#14c98e 100%); color:#fff; box-shadow:0 16px 44px rgba(0,80,255,.26); margin:1.1rem 0 2rem; }
.bati-download-logo { height:62px; width:auto; flex-shrink:0; filter:drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.bati-download-body { flex:1; min-width:280px; }
.bati-download-lead { margin:0; font-size:1.35rem; font-weight:800; line-height:1.15; text-shadow:0 1px 3px rgba(0,0,0,.18); }
.bati-download-sub  { margin:.25rem 0 1.1rem; font-size:.95rem; opacity:.92; }
.store-row { display:flex; gap:.7rem; flex-wrap:wrap; margin-bottom:.95rem; }
.store-btn { display:inline-flex; align-items:center; gap:.65rem; background:#000; color:#fff !important; border-radius:12px;
  padding:.5rem 1.1rem; text-decoration:none !important; border:1px solid rgba(255,255,255,.28); transition:transform .15s, box-shadow .15s; }
.store-btn:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.32); }
.store-btn svg { width:26px; height:26px; fill:#fff; flex-shrink:0; }
.store-btn span { display:flex; flex-direction:column; line-height:1.12; text-align:left; }
.store-btn small { font-size:.62rem; font-weight:500; opacity:.85; letter-spacing:.02em; }
.store-btn b { font-size:1.05rem; font-weight:700; }
.bati-download-qr { display:inline-block; color:#fff !important; font-size:.85rem; font-weight:600; text-decoration:none !important;
  border-bottom:1px dashed rgba(255,255,255,.55); padding-bottom:1px; }
.bati-download-qr:hover { border-bottom-style:solid; }

/* ── Roadmap startup (timeline verticale) ── */
.bati-roadmap { position:relative; margin:1.4rem 0 2rem; padding-left:2.1rem; }
.bati-roadmap::before { content:""; position:absolute; left:8px; top:8px; bottom:8px; width:3px; border-radius:3px;
  background:linear-gradient(180deg,#16a34a 0%,#0050ff 45%,#14c98e 100%); }
.bati-rm-step { position:relative; padding-bottom:1.3rem; }
.bati-rm-step:last-child { padding-bottom:0; }
.bati-rm-node { position:absolute; left:-2.1rem; top:.5rem; width:19px; height:19px; border-radius:50%;
  background:var(--md-default-bg-color); border:3px solid #aeb6c2; box-sizing:border-box; }
.bati-rm-step--done .bati-rm-node   { border-color:#16a34a; background:#16a34a; }
.bati-rm-step--active .bati-rm-node { border-color:#0050ff; background:#0050ff; animation:rm-pulse 2.2s infinite; }
.bati-rm-card { background:var(--md-default-bg-color); border:1px solid var(--md-default-fg-color--lightest);
  border-radius:12px; padding:.8rem 1.1rem; box-shadow:0 4px 16px rgba(0,30,90,.07); transition:transform .2s; }
.bati-rm-step--active .bati-rm-card { border-color:rgba(0,80,255,.42); box-shadow:0 6px 22px rgba(0,80,255,.12); }
.bati-rm-card:hover { transform:translateX(3px); }
.bati-rm-card h3 { margin:.15rem 0 .25rem; font-size:1.02rem; }
.bati-rm-card p { margin:0; font-size:.9rem; color:var(--md-default-fg-color--light); }
.bati-rm-tag { display:inline-block; font-size:.64rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  padding:.16rem .55rem; border-radius:999px; }
.bati-rm-step--done .bati-rm-tag   { background:rgba(22,163,74,.15);  color:#16a34a; }
.bati-rm-step--active .bati-rm-tag { background:rgba(0,80,255,.15);   color:#0050ff; }
.bati-rm-step--next .bati-rm-tag   { background:rgba(120,130,150,.18); color:#6b7280; }
[data-md-color-scheme="slate"] .bati-rm-step--done .bati-rm-tag   { color:#4ade80; }
[data-md-color-scheme="slate"] .bati-rm-step--active .bati-rm-tag { color:#7aa2ff; }
@keyframes rm-pulse { 0%{box-shadow:0 0 0 0 rgba(0,80,255,.5)} 70%{box-shadow:0 0 0 7px rgba(0,80,255,0)} 100%{box-shadow:0 0 0 0 rgba(0,80,255,0)} }

/* ── Cartes accès/téléchargement par solution ── */
.bati-download--ait { background:linear-gradient(135deg,#001a66 0%,#0042d6 55%,#2f7bff 100%); box-shadow:0 16px 44px rgba(0,66,214,.26); }
.bati-download--iq  { background:linear-gradient(135deg,#3a4358 0%,#5b6479 60%,#828ba0 100%); box-shadow:0 14px 36px rgba(60,67,88,.25); }
.bati-download-name { font-size:2.3rem; font-weight:800; letter-spacing:-.02em; flex-shrink:0; text-shadow:0 2px 8px rgba(0,0,0,.22); }
.bati-download-tag { display:inline-block; font-size:.64rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em;
  background:rgba(255,255,255,.22); color:#fff; padding:.18rem .6rem; border-radius:999px; margin-bottom:.5rem; }
.web-btn { display:inline-flex; align-items:center; gap:.6rem; background:rgba(255,255,255,.16); color:#fff !important;
  border:1px solid rgba(255,255,255,.42); border-radius:12px; padding:.5rem 1.1rem; text-decoration:none !important; transition:transform .15s, background .15s; }
.web-btn:hover { transform:translateY(-2px); background:rgba(255,255,255,.28); }
.web-btn svg { width:25px; height:25px; fill:#fff; flex-shrink:0; }
.web-btn span { display:flex; flex-direction:column; line-height:1.12; text-align:left; }
.web-btn small { font-size:.62rem; opacity:.85; }
.web-btn b { font-size:1.02rem; font-weight:700; }
.web-btn--soon { opacity:.55; cursor:not-allowed; pointer-events:none; }
.bati-download-demo { display:inline-block; margin-top:.15rem; color:#fff !important; font-size:.85rem; font-weight:600;
  border-bottom:1px dashed rgba(255,255,255,.6); text-decoration:none !important; }
.bati-download-demo:hover { border-bottom-style:solid; }
