/* Clarté du parcours non technique : article. Chargée en dernier ; mêmes jetons que le reste d'AutoSEO (tokens.css). */

/* ---------- Rappel d'étape ---------- */
/* Repère en trois points : fait (coche sur vert), en cours (plein), à venir (contour). */
.step-track { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; margin: 0; padding: 0; }
.step-dot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--muted); }
.step-dot + .step-dot::before { content: ''; width: 18px; height: 1.5px; margin-right: 4px; border-radius: 1px; background: var(--control); }
.step-dot svg { flex: none; }
.step-dot circle { fill: var(--surface); stroke: var(--control); stroke-width: 1.5; }
.step-dot text { fill: var(--muted); font: 600 11px var(--font); }
.step-dot path { stroke: var(--accent-on); }
.step-dot.is-done circle, .step-dot.is-current circle { fill: var(--accent); stroke: var(--accent); }
.step-dot.is-current text { fill: var(--accent-on); }
.step-dot.is-current { color: var(--text); font-weight: 600; }
.step-dot.is-done + .step-dot::before { background: var(--accent); }
.step-then { flex: 1 1 100%; margin-top: -8px; }
.step-advice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.step-advice strong { color: var(--text); font-weight: 600; }
.step-next .step-actions .btn-quiet { color: var(--accent-ink); }
/* « Voir le conseil », « Voir les vérifications » : des liens qui se voient comme tels (vert souligné), pas du texte gris.
   `.step-main .small` (couleur du corps) l'emportait sur `.link` ; l'encart rouge des liens bloqués garde sa couleur. */
.step-main > .link, .step-main > .step-advice .link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Panneau d'envoi ---------- */
.publish-title { font-size: var(--fs-section); letter-spacing: -0.01em; outline: none; }
.publish-send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.publish-photos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.publish-photos .link { display: inline-flex; align-items: center; gap: 6px; }
.publish .xsteps { margin: 0; padding: 0; }
.publish .xfold { margin: 0; }
/* Date déjà prévue : « Changer la date » est le geste principal, « Annuler la date prévue » en lien à côté. */
.publish-later.is-planned { display: grid; gap: 10px; }
.publish-later.is-planned .publish-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* ---------- Vérifications ---------- */
.before-item > summary { grid-template-columns: 10px minmax(0, 1fr) auto; }
.before-dot { grid-column: 1; grid-row: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.before-dot.is-todo { background: var(--warning); }
.before-dot.is-block { background: var(--negative); }
.before-label { grid-column: 2; grid-row: 1; }
.before-note { grid-column: 2; }
.before-item > summary svg { grid-column: 3; }
.gc-fix { grid-auto-flow: row; }
.gc-fold, .quality .xfold, .gd-section .xfold { margin-top: 4px; }
.gc-items li.is-missing svg { color: var(--pill-warning-ink); }

/* ---------- Carte Google ---------- */
.gcard .score-lead .small { line-height: 1.45; }
.gcard-cover { display: block; max-width: 100%; height: auto; }
.gcard-cover .is-ok rect { fill: var(--accent); }
.gcard-cover .is-ok path { stroke: var(--accent-on); }
.gcard-cover .is-missing rect { fill: var(--pill-warning-bg); stroke: var(--warning); stroke-width: 1.5; }
.gcard-cover .is-missing path { stroke: var(--pill-warning-ink); }
.gcard-missing { color: var(--pill-warning-ink); font-weight: 600; }
.gcard-update { display: inline-flex; align-items: center; gap: 6px; }
.gd-more { margin-top: 2px; }
.gd-more > summary { font-size: var(--fs-small); padding: 2px 0; }
.gd-more[open] > summary { margin-bottom: 4px; }
.drawer-actions { align-items: center; }
.gd-refresh > summary { font-size: var(--fs-small); }
.gd-refresh[open] { display: grid; gap: 8px; justify-items: start; }
.gd-refresh[open] > summary { margin-bottom: 0; }

/* ---------- Article introuvable ---------- */
.art-missing { display: grid; gap: 16px; max-width: 560px; }
.art-missing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- Pendant la modification ---------- */
.art-finish-tips { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 18px; color: var(--body); line-height: 1.5; }
.editor { scroll-margin-top: 72px; }
.editor-note { padding: 8px 48px 0; }
.editor-settings { padding: 20px 48px 32px; }
.editor-settings .xfold-body { gap: 18px; }
.editor-settings .presentation-fields { padding: 0; }
.editor-settings .editor-links summary, .editor-settings .presentation-fields summary { cursor: pointer; font-weight: 600; color: var(--text); }
.editor-settings .editor-links ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.editor-settings .editor-links p { margin-top: 6px; }
.presentation-length { display: grid; gap: 4px; }
.presentation-meter { display: block; height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.presentation-meter > span { display: block; height: 100%; background: var(--accent); }
.presentation-meter > span.is-long { background: var(--warning); }
.media-remove { justify-self: start; color: var(--negative); }
.versions-scroll { margin-top: 12px; min-height: 0; overflow: auto; }
.versions-dialog[open] { display: flex; flex-direction: column; }
@media (pointer: coarse) { .media-shortcut { display: none; } }

/* Sous la barre du site (collée en haut jusqu'à 1024 px), la barre d'outils reste visible en entier. */
@media (max-width: 1024px) {
  .edit-bar { top: var(--topbar-h, 67px); }
}
@media (max-width: 640px) {
  .editor-note { padding: 8px 20px 0; }
  .editor-settings { padding: 16px 16px 24px; }
  /* Une seule ligne d'outils, qui défile au doigt ; l'état ne s'affiche que lorsqu'il y a quelque chose à dire. */
  .edit-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; min-width: 0; margin: 0 -2px; }
  .edit-tools::-webkit-scrollbar { display: none; }
  .tool-group { flex: none; }
  .edit-status:not(.is-busy) { display: none; }
  /* Chaque bouton sur une seule ligne : la barre collée reste basse au-dessus du texte. */
  .edit-actions { flex: 1 1 100%; margin-left: 0; }
  .edit-actions .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; font-size: 14px; padding-inline: 10px; }
  .edit-actions .btn-primary { flex-grow: 2; }
  /* « Annuler mes changements » s'affiche « Annuler » : le nom complet reste lu par les lecteurs d'écran. */
  .edit-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .publish-send .btn { max-width: 100%; white-space: normal; text-align: center; }
  .media-actions { flex-direction: column-reverse; align-items: stretch; }
  .media-actions .btn { width: 100%; }
  .step-dot + .step-dot::before { width: 10px; }
}

/* Une barre d'outils qui défile ne doit pas élargir la page : le texte garde la largeur de l'écran. */
.art-text { max-width: 100%; }
.editor, .edit-bar { min-width: 0; max-width: 100%; }

/* Dans « Réglages de l'article », les champs s'alignent sur le repli, sans marges ni filets hérités. */
.editor-settings .editor-description { margin: 0; }
.editor-settings .editor-links { padding: 0; border-bottom: 0; }
.editor-settings .editor-links li { margin: 0; }
.editor-settings .presentation-inputs { margin-top: 12px; }
