Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
HTML
   <style>
      :root {
        --gpay-blue: #1a73e8;
        --gpay-blue-d: #0d47a1;
        --gpay-blue-l: #e8f0fe;
        --gpay-green-l: #e6f4ea;
        --gpay-yell-l: #fef7e0;
        --gpay-red-l: #fce8e6;
        --gray-700: #334155;
		--gray-f2 : #f2f2f2;

        --radius: 10px;
      }
/* 1. Position fixe du sommaire */
  .toc-macro {
    position: fixed !important;
    top: 150px170px !important;
    width: 240px !important;
    z-index: 999 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    background: transparent !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  }

  /* 2. Ligne verticale grise */
  .toc-macro ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    border-left: 2px solid #e5e7eb !important;
  }

  .toc-macro li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Style des liens par défaut */
  .toc-macro a {
    display: block !important;
    padding: 6px 0 6px 16px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-left: 2px solid transparent !important; /* Trait bleu masqué */
    margin-left: -2px !important; /* Chevauchement exact sur la ligne grise */
    transition: color 0.15s ease, border-color 0.15s ease !important;
  }

  .toc-macro a:hover {
    color: #1d4ed8 !important;
  }

  /* 4. Style de l'élément ACTIF (trait bleu + texte foncé) */
  .toc-macro a.active-scroll,
  .toc-macro li.active-scroll > a {
    color: #1e293b !important;
    font-weight: 600 !important;
    border-left-color: #2563eb !important; /* Trait bleu affiché */
  }

  /* Indentation des sous-menus */
  .toc-macro ul ul {
    border-left: none !important;
    padding-left: 30px !important;
  }
    
      body {
        font-size: 14px;
        background: #fff;
        line-height: 1.7;
        padding: 24px;
        max-width: 2000px;
        margin: 0 auto;
      }

      /* ── Titre H1 ── */
      h1 {
        font-size: 18px;
        font-weight: 700;
        color: var(--gpay-blue-d);
        margin: 24px 0 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 10px;
        border-bottom: 3px solid var(--gpay-blue);
      }

      /* ── Paragraphe d'introduction ── */
      .lead {
        font-size: 14.5px;
        color: var(--gray-700);
        line-height: 1.8;
        margin-bottom: 20px;
      }

      /* ── Stat pills ── */
      .stats {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin: 20px 0 28px;
      }

      .stat-pill {
        border-radius: var(--radius);
        padding: 18px 24px;
        text-align: center;
        flex: 1;
        min-width: 130px;
      }

      .stat-pill .stat-n {
        font-size: 26px;
        font-weight: 700;
        display: block;
        line-height: 1;
        margin-bottom: 4px;
      }

      .stat-pill .stat-l {
        font-size: 11.5px;
        opacity: 0.8;
      }

      .stat-pill.blue {
        background: var(--gpay-blue-l);
        color: var(--gpay-blue-d);
      }

      .stat-pill.green, .badge.green{
        background: var(--gpay-green-l);
        color: #1b5e20;
      }

      .stat-pill.yellow, .badge.yellow {
        background: var(--gpay-yell-l);
        color: #78350f;
      }

      .stat-pill.red, .badge.red {
        background: var(--gpay-red-l);
        color: #7f1d1d;
      }

	.badge {
		display: inline-block;
	 	background-color: #f2f2f2; /* Fond gris très clair */
		color: #555555;             /* Texte gris foncé/moyen */
		font-size: 14px;
		font-weight: 500;
		padding: 6px 16px;          /* Espacement interne */
		border-radius: 20px;        /* Bords bien arrondis (effet pilule) */
		letter-spacing: 0.5px;
	}

	.badge.grey{
        background: var(--gray-f2);
        color: black;
    }

    </style>

...