body { background: #ffcc00 !important; }
/* =========================================================================
   publish.css â€” Manuels utilisateurs
   -------------------------------------------------------------------------
   Ã€ placer Ã€ LA RACINE de ton vault, nommÃ© exactement "publish.css".
   Tout se recolore depuis le bloc VARIABLES ci-dessous : change juste les
   valeurs, tu n'as pas besoin de toucher au reste.
   ========================================================================= */


/* =========================================================================
   1. VARIABLES  â€”  ta charte, en un seul endroit
   ========================================================================= */
.published-container,
.markdown-preview-view,
.markdown-rendered {
  /* â€” Couleurs de fond / texte â€” */
  --m-bg:          #FBFBFC;   /* fond de page (garde du clair pour les captures) */
  --m-ink:         #1E2A3A;   /* titres, texte fort */
  --m-text:        #33404F;   /* corps de texte */
  --m-muted:       #6B7684;   /* lÃ©gendes, texte secondaire */
  --m-accent:      #2E6CA4;   /* liens, Ã©lÃ©ments interactifs */
  --m-rule:        #E3E7EC;   /* filets, bordures, sÃ©parateurs */
  --m-code-bg:     #F2F4F7;   /* fond du code inline / blocs */

  /* â€” Confort de lecture â€” */
  --m-measure:     44rem;     /* largeur max de lecture */
  --m-radius:      10px;      /* arrondi gÃ©nÃ©ral */

  /* Optionnel : dÃ©commente pour activer une webfont (sinon police systÃ¨me).
     Ajoute aussi le @import tout en haut du fichier â€” voir Â§2. */
  /* --m-font-body: "Inter", sans-serif; */
  /* --m-font-head: "Inter", sans-serif; */
}


/* =========================================================================
   2. TYPOGRAPHIE
   ------------------------------------------------------------------------
   Pour une webfont : dÃ©commente la ligne @import et les 2 variables --m-font-*
   ci-dessus. Sans Ã§a, on reste sur une pile systÃ¨me (rapide, fiable).
   ========================================================================= */
/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"); */

.markdown-preview-view,
.markdown-rendered {
  --font-text: var(--m-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  color: var(--m-text);
  line-height: 1.65;
  font-size: 1.02rem;
}

.published-container { background: var(--m-bg); }


/* Titres */
.markdown-rendered h1,
.markdown-rendered h2,
.markdown-rendered h3,
.markdown-rendered h4 {
  font-family: var(--m-font-head, var(--font-text));
  color: var(--m-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.markdown-rendered h1 { font-weight: 700; font-size: 2.1rem; margin-bottom: 0.6em; }
.markdown-rendered h2 { font-weight: 650; font-size: 1.55rem; margin-top: 2.2em; padding-left: 0.7rem; }
.markdown-rendered h3 { font-weight: 600; font-size: 1.22rem; margin-top: 1.8em; }

/* Signature discrÃ¨te : un tiret d'accent devant chaque grande section (h2) */
.markdown-rendered h2 {
  border-left: 3px solid var(--m-accent);
  padding-left: 0.7rem;
}

/* Liens */
.markdown-rendered a { color: var(--m-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.markdown-rendered a:hover { text-decoration-thickness: 2px; }

/* SÃ©parateur */
.markdown-rendered hr { border: none; border-top: 1px solid var(--m-rule); margin: 2.4em 0; }


/* =========================================================================
   3. CALLOUTS  â€”  l'outil clÃ© d'un manuel
   ------------------------------------------------------------------------
   Types stylÃ©s ci-dessous (anglais + alias franÃ§ais) :
     > [!note]        / [!info]                 â†’ repÃ¨re bleu
     > [!tip]         / [!astuce]               â†’ conseil vert
     > [!warning]     / [!attention]            â†’ mise en garde ambre
     > [!important]                             â†’ point critique rouge
     > [!example]     / [!exemple]              â†’ exemple violet
     > [!procedure]   / [!etape]                â†’ marche Ã  suivre (custom)
     > [!prerequis]                             â†’ prÃ©requis ocre (custom)
     > [!question]    / [!faq]                  â†’ FAQ ardoise
   ========================================================================= */

.callout {
  border-radius: var(--m-radius);
  border: 1px solid rgba(var(--callout-color), 0.28);
  margin: 1.4em 0;
}
.callout-title { padding: 0.55em 0.8em; font-weight: 600; }
.callout-content { padding: 0 0.9em 0.7em; }

.callout[data-callout="note"],
.callout[data-callout="info"] {
  --callout-color: 46, 108, 164;  --callout-icon: lucide-info;
}
.callout[data-callout="tip"],
.callout[data-callout="astuce"] {
  --callout-color: 34, 148, 106;  --callout-icon: lucide-lightbulb;
}
.callout[data-callout="warning"],
.callout[data-callout="attention"] {
  --callout-color: 214, 158, 46;  --callout-icon: lucide-alert-triangle;
}
.callout[data-callout="important"] {
  --callout-color: 200, 64, 84;   --callout-icon: lucide-alert-octagon;
}
.callout[data-callout="example"],
.callout[data-callout="exemple"] {
  --callout-color: 120, 96, 180;  --callout-icon: lucide-list;
}
.callout[data-callout="procedure"],
.callout[data-callout="etape"] {
  --callout-color: 31, 111, 139;  --callout-icon: lucide-list-ordered;
}
.callout[data-callout="prerequis"] {
  --callout-color: 150, 110, 60;  --callout-icon: lucide-key;
}
.callout[data-callout="question"],
.callout[data-callout="faq"] {
  --callout-color: 110, 122, 138; --callout-icon: lucide-help-circle;
}


/* =========================================================================
   4. TOUCHES CLAVIER  â€”  pour les raccourcis (Ctrl + S, etc.)
   ------------------------------------------------------------------------
   Ã‰cris dans la note :  <kbd>Ctrl</kbd> + <kbd>S</kbd>
   ========================================================================= */
.markdown-rendered kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82em;
  padding: 0.15em 0.5em;
  border: 1px solid var(--m-rule);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--m-ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}


/* =========================================================================
   5. IMAGES
   ------------------------------------------------------------------------
   Taille (Markdown natif, aucun CSS requis) :
     ![[capture.png|500]]            largeur 500px
     ![[capture.png|500x300]]        largeur x hauteur
   Alignement (via ce CSS) â€” mets le mot-clÃ© AVANT la taille :
     ![[capture.png|center|500]]     centrÃ©e
     ![[capture.png|right|300]]      Ã  droite, le texte s'enroule
     ![[capture.png|left|300]]       Ã  gauche, le texte s'enroule
   ========================================================================= */

/* Cadre discret sur les captures d'Ã©cran, pour qu'elles se dÃ©tachent du fond */
.markdown-rendered .image-embed img,
.markdown-rendered img {
  border-radius: var(--m-radius);
  border: 1px solid var(--m-rule);
}

/* Centrer */
.markdown-rendered .image-embed[alt*="center"],
.markdown-rendered img[alt*="center"] {
  display: block; margin-left: auto; margin-right: auto;
}
/* Ã€ droite (flottant, texte Ã  gauche) */
.markdown-rendered .image-embed[alt*="right"],
.markdown-rendered img[alt*="right"] {
  float: right; clear: right; margin: 4px 0 10px 1.2rem;
}
/* Ã€ gauche (flottant, texte Ã  droite) */
.markdown-rendered .image-embed[alt*="left"],
.markdown-rendered img[alt*="left"] {
  float: left; clear: left; margin: 4px 1.2rem 10px 0;
}


/* =========================================================================
   6. TABLEAUX
   ========================================================================= */
.markdown-rendered table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95em;
}
.markdown-rendered th {
  background: var(--m-ink);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.5em 0.8em;
}
.markdown-rendered td {
  border-bottom: 1px solid var(--m-rule);
  padding: 0.5em 0.8em;
}
.markdown-rendered tr:nth-child(even) td { background: rgba(0,0,0,0.015); }


/* =========================================================================
   7. CODE  â€”  pour les chemins, noms de champs, extraits techniques
   ========================================================================= */
.markdown-rendered code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--m-code-bg);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: var(--m-ink);
}
.markdown-rendered pre {
  background: var(--m-code-bg);
  border: 1px solid var(--m-rule);
  border-radius: var(--m-radius);
  padding: 0.9em 1em;
}
.markdown-rendered pre code { background: none; padding: 0; }


/* =========================================================================
   8. CITATIONS
   ========================================================================= */
.markdown-rendered blockquote {
  border-left: 3px solid var(--m-rule);
  color: var(--m-muted);
  margin-left: 0;
  padding-left: 1em;
  font-style: italic;
}


/* =========================================================================
   9. MOBILE
   ========================================================================= */
@media (max-width: 640px) {
  .markdown-rendered .image-embed[alt*="right"],
  .markdown-rendered img[alt*="right"],
  .markdown-rendered .image-embed[alt*="left"],
  .markdown-rendered img[alt*="left"] {
    float: none; display: block; margin: 1em auto;  /* pas de flottant sur petit Ã©cran */
  }
}


/* Images côte à côte : écris-les sur la MÊME ligne, avec |side| sur chacune */
.image-embed[alt*="side"] {
  display: inline-block;
  vertical-align: top;
  margin: 0 0.6rem 0.6rem 0;
}