/* Onima V5 : article de fond du site (onima.ch/articles/...). Chargé après landing.css et legal.css : il n'ajoute que
   les blocs propres à l'article (photo d'en-tête, chiffres clés, courbe par stade, tableau des métiers, carte des régions, encadré de méthode,
   appel, questions). Thème clair seulement, aucun style en ligne (CSP) : les SVG portent des attributs de présentation. */

.texte ul:not(.labels):not(.pied__legal):not(.chiffres-cles):not(.regions):not(.retenir) { list-style: disc; }
.texte h3 { margin: 22px 0 8px; font-size: 16.5px; line-height: 1.35; font-weight: 800; color: var(--titre); }
.texte code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em;
  background: #f1f3f2; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; color: var(--ink);
  overflow-wrap: anywhere;
}

/* Réponse directe, sous la bannière */
.texte .article__reponse { margin: 0 0 8px; font-size: 17px; line-height: 1.7; color: var(--ink); }

/* Figures et légende de source */
.figure { margin: 22px 0 26px; min-width: 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure__source { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }

/* Photo d'en-tête : posée au ras du haut de la carte, 16:9 (tools/article_fond.py --banniere) */
.figure--banniere { margin: -40px -48px 26px; }
.banniere__image {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--navy-2); border-radius: var(--radius) var(--radius) 0 0;
}
.figure__legende { margin: 8px 0 0; padding: 0 48px; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); }

/* Courbe cumulée par stade : le dessin validé, en image (SVG large, SVG haut sous 640 px) */
.courbe__image { display: block; width: 100%; height: auto; }

/* Page dont le texte n'est pas encore posé (de, it) */
.texte .article__en-cours { margin: 0 0 8px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fff4d6; color: var(--ink); font-weight: 600; }

/* Chiffres clés : quelques grands nombres */
.texte ul.chiffres-cles {
  list-style: none; margin: 8px 0 14px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.texte .chiffres-cles li {
  margin: 0; padding: 14px 14px 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line); line-height: 1.35;
}
.chiffres-cles strong {
  display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.chiffres-cles span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }

/* 2. Tableau des métiers */
.tableau-metiers { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tableau-metiers:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tableau-metiers table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tableau-metiers caption {
  caption-side: top; text-align: left; padding: 12px 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tableau-metiers th, .tableau-metiers td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tableau-metiers thead th { font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: right; background: #fff; hyphens: auto; }
.tableau-metiers thead th:first-child, .tableau-metiers tbody th { text-align: left; }
.tableau-metiers tbody th { font-weight: 600; color: var(--ink); }
.tableau-metiers td { text-align: right; color: var(--ink-2); white-space: nowrap; }
.tableau-metiers tbody tr:nth-child(even) { background: #fafbfa; }
.tableau-metiers tbody tr:last-child th, .tableau-metiers tbody tr:last-child td { border-bottom: 0; }

/* 3. Carte des régions */
.figure--carte svg { max-width: 640px; margin: 0 auto; }
.texte ul.regions {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.texte .regions li { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-top: 4px solid; }
.region--de { border-top-color: #1f6b0d !important; }
.region--fr { border-top-color: #4fae37 !important; }
.region--it { border-top-color: #a9d99c !important; }
.texte .region__nom { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.texte .region__nombre { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--titre); letter-spacing: -.02em; line-height: 1.2; }
.region__nombre span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.texte .region__ligne { margin: 0; font-size: 14px; line-height: 1.55; }

/* Encadré de méthode */
.methode {
  margin: 30px 0 8px; padding: 20px 22px 8px; border-radius: var(--radius-sm);
  background: var(--green-tint); border: 1px solid #cfe9c7;
}
.texte .methode h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 17px; }
.methode ul { padding-left: 20px; }
.texte .methode li, .texte .methode p { font-size: 15px; color: var(--ink); }

/* Trois façons d'y accéder, appel au compte gratuit */
.texte ol.acces { margin: 0 0 14px; padding-left: 22px; }
.appel {
  margin: 8px 0 8px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--navy-2); color: #fff;
}
.texte .appel p { color: rgba(255, 255, 255, .9); margin: 0 0 12px; }
.texte .appel strong { color: #fff; }
.texte .appel__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; }
.texte .appel__liens a { color: #b9e6ad; }
.texte .appel__liens .bouton { color: #fff; text-decoration: none; font-weight: 700; }

/* Ce qu'il faut retenir */
.texte ul.retenir { list-style: none; padding: 0; }
.texte ul.retenir li { padding-left: 14px; border-left: 3px solid var(--green); }

/* Questions fréquentes */
.faq dt { margin: 16px 0 4px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.faq dd { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

@media (max-width: 720px) {
  .figure--banniere { margin: -24px -20px 22px; }
  .figure__legende { padding: 0 20px; }
  .texte .article__reponse { font-size: 16px; }
  .chiffres-cles strong { font-size: 22px; }
  .texte ul.regions { grid-template-columns: minmax(0, 1fr); }
  .tableau-metiers table { font-size: 12.5px; }
  .tableau-metiers caption { font-size: 11.5px; padding: 10px; }
  .tableau-metiers thead th { font-size: 11.5px; }
  .tableau-metiers th, .tableau-metiers td { padding: 7px 6px; }
  .tableau-metiers th:first-child { padding-left: 10px; }
  .tableau-metiers td:last-child { padding-right: 10px; }
  .texte ul.chiffres-cles { gap: 8px; }
  .texte .chiffres-cles li { padding: 12px 10px 10px; }
  .methode { padding: 16px 16px 6px; }
}

@media print {
  .appel { background: none; color: var(--ink); border: 1px solid var(--line); }
}
