/* Illustrations du site vitrine, écrites en HTML/CSS (sites/landing/illustrations).
   Chaque illustration garde la place de l'image qu'elle remplace (aspect-ratio)
   et se met à l'échelle avec sa largeur : 1em = 2,5 % de la largeur. */
.ill {
  --ink: #111111;
  --mut: #5c5c5c;
  --fnt: #727272;
  --line: #e8e8e5;
  --soft: #f4f4f1;
  --card: #ffffff;
  --acc: #e5372b;
  --ok: #15803d;
  --okbg: #effaf2;
  --warn: #a14f06;
  --warnbg: #fff6e8;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 12px;
  background-color: #fafaf8;
  background-image: radial-gradient(#e3e3df 1px, transparent 1.2px);
  background-size: 16px 16px;
  color: var(--ink);
}
.ill-in {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7%;
  font-family: Aeonik, system-ui, -apple-system, sans-serif;
  font-size: 2.5cqw;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-align: left;
}
.ill * { box-sizing: border-box; }
.ill .m { font-family: "Aeonik Fono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }

/* Cartes */
.ill .c { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: .9em; box-shadow: 0 .15em .5em rgba(17, 17, 17, .04); overflow: hidden; }
.ill .ch { display: flex; align-items: center; gap: .7em; padding: .95em 1.15em; border-bottom: 1px solid var(--line); }
.ill .ch b { font-weight: 500; font-size: 1em; }
.ill .ch .m { margin-left: auto; font-size: .78em; color: var(--fnt); }
.ill .r { display: flex; align-items: center; gap: .7em; padding: .78em 1.15em; border-bottom: 1px solid var(--line); font-size: .92em; }
.ill .r:last-child { border-bottom: 0; }
.ill .r .m { font-size: .84em; color: var(--mut); }
.ill .r .end { margin-left: auto; }
.ill .lbl { font-family: "Aeonik Fono", ui-monospace, monospace; font-size: .72em; letter-spacing: .06em; text-transform: uppercase; color: var(--fnt); }
.ill .mut { color: var(--mut); }
.ill .fnt { color: var(--fnt); }
.ill .grow { flex: 1; min-width: 0; }
.ill .col { display: flex; flex-direction: column; gap: .9em; width: 100%; }
.ill .row { display: flex; align-items: center; gap: .9em; width: 100%; }
.ill .big { font-size: 2.2em; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }

/* Étiquettes et pastilles */
.ill .t { display: inline-flex; align-items: center; gap: .35em; padding: .22em .6em; border: 1px solid var(--line); border-radius: 99em; font-family: "Aeonik Fono", ui-monospace, monospace; font-size: .74em; color: var(--mut); white-space: nowrap; background: #fff; }
.ill .t.ok { color: var(--ok); border-color: #cfe8d6; background: var(--okbg); }
.ill .t.warn { color: var(--warn); border-color: #f3dcb6; background: var(--warnbg); }
.ill .t.acc { color: #c0261b; border-color: #f6cdc9; background: #fff5f4; }
.ill .t.ink { color: #fff; border-color: var(--ink); background: var(--ink); }
.ill .dot { width: .55em; height: .55em; border-radius: 50%; background: var(--fnt); flex: none; }
.ill .dot.ok { background: var(--ok); }
.ill .dot.warn { background: #d97706; }
.ill .dot.acc { background: var(--acc); }
.ill .btn { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: .55em; background: var(--ink); color: #fff; font-family: "Aeonik Fono", ui-monospace, monospace; font-size: .8em; white-space: nowrap; }
.ill .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ill .ring { outline: .14em solid var(--acc); outline-offset: .22em; }

/* Champs */
.ill .f { display: grid; grid-template-columns: 9em 1fr; align-items: center; gap: .6em; padding: .5em 1.15em; font-size: .88em; }
.ill .f > span:first-child { color: var(--mut); }
.ill .in { padding: .42em .65em; border: 1px solid var(--line); border-radius: .4em; font-family: "Aeonik Fono", ui-monospace, monospace; font-size: .92em; background: #fff; }
.ill .in.fill { background: #fbfbf6; border-color: #e3e0cf; }

/* Code */
.ill .code { margin: 0; padding: 1em 1.2em; font-family: "Aeonik Fono", ui-monospace, monospace; font-size: .8em; line-height: 1.75; white-space: pre; color: var(--ink); background: #fcfcfb; overflow: hidden; }
.ill .code .k { color: #3d3d3d; }
.ill .code .s { color: #0f7a3d; }
.ill .code .n { color: #b4400f; }
.ill .code .p { color: var(--fnt); }
.ill .code .c { color: var(--fnt); }
.ill .code .v { color: #1d4ed8; }

/* Icônes au trait */
.ill svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ill .ico { display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: .55em; border: 1px solid var(--line); background: #fff; color: var(--ink); flex: none; }
.ill .ok-i { color: var(--ok); }
.ill .warn-i { color: #d97706; }
.ill .acc-i { color: var(--acc); }

/* Barres */
.ill .bar { height: .4em; border-radius: 99em; background: var(--soft); overflow: hidden; }
.ill .bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.ill .cols { display: flex; align-items: flex-end; gap: .45em; height: 6em; }
.ill .cols i { flex: 1; border-radius: .25em .25em 0 0; background: #d9d9d4; }
.ill .cols i.on { background: var(--ink); }

/* Curseur */
.ill .caret { display: inline-block; width: .08em; height: 1em; margin-left: .1em; vertical-align: -.12em; background: var(--acc); animation: ill-caret 1.1s steps(2) infinite; }
@keyframes ill-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ill .caret { animation: none; } }

/* Vignettes du menu : plus denses */
.ill.ill--menu .ill-in { padding: 6%; font-size: 5.2cqw; }

/* Encarts « à plat » (petits emplacements déjà cadrés par la page) */
.ill.ill--flat { background: #fff; background-image: none; }
.ill.ill--flat .ill-in { padding: 0; align-items: stretch; font-size: 3.7cqw; }
.ill.ill--flat .c { border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
.ill.ill--flat .r { flex: 1; padding-top: 0; padding-bottom: 0; }

/* Frise des automatisations */
.ill[data-ill="platform-automatisations"] .ill-in, .ill[data-ill="extension-parcours"] .ill-in { padding: 4% 3.5%; font-size: 1.7cqw; }

/* Automatisations : version large au-delà de 767 px, version verticale en dessous */
.ill-switch .ill-narrow { display: none; }
@media (max-width: 767px) { .ill-switch .ill-wide { display: none; } .ill-switch .ill-narrow { display: block; } }
