/* TidyWren, site v2 (12/11/2026) : le centre d'aide (/tidywren/questions/) et la page
   « TidyWren et les autres outils ». S'ajoute à /assets/style.css (même charte, mêmes couleurs).
   Texte courant à 18 px, interligne 1,6, boutons de 48 px au moins, liens soulignés. */

/* ---------- L'accueil de l'aide ---------- */

.recherche-aide { position: relative; max-width: 680px; margin: 32px auto 0; }
.recherche-aide .ico { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--doux); pointer-events: none; }
.recherche-aide input {
  width: 100%;
  height: 58px;
  padding: 0 22px 0 56px;
  border: 1px solid var(--trait-fort);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--ombre);
  color: var(--encre);
  font: inherit;
  font-size: 1.0625rem;
}
.recherche-aide input:focus { outline: 2px solid var(--brique); outline-offset: 2px; }
.rien-trouve {
  max-width: 840px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  border: 1px dashed var(--trait-fort);
  border-radius: 18px;
  background: var(--carte);
  color: var(--doux);
  text-align: center;
}

.familles { display: flex; flex-direction: column; gap: 56px; }
.famille > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto 18px;
  font-size: 1.5rem;
}
.famille > h2 .rond { margin: 0; width: 44px; height: 44px; border-radius: 14px; }
.questions.aide li { scroll-margin-top: 96px; }
.questions.aide h3 a { color: var(--encre); text-decoration: none; }
.questions.aide h3 a:hover { text-decoration: underline; }
.questions.aide p { font-size: 1.0625rem; }
.questions.aide .lien-fleche { display: inline-flex; margin-top: 12px; min-height: 32px; }

/* ---------- Une page d'aide ---------- */

.article-aide { padding-top: 28px; font-size: 1.125rem; line-height: 1.65; }
.article-aide h1 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.signature { margin-top: 14px; color: var(--doux); font-size: .9375rem; }
.en-bref {
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px solid var(--trait);
  border-left: 5px solid var(--t-fonce);
  border-radius: 18px;
  background: var(--carte);
  box-shadow: var(--ombre);
  color: var(--encre);
}
.en-bref .titre-bref { margin-bottom: 6px; color: var(--t-fonce); font-size: .9375rem; font-weight: 600; }
.article-aide h2 { margin-top: 44px; font-size: 1.5rem; line-height: 1.25; text-wrap: balance; }
/* « tient-il », « lit-elle » : un titre ne se coupe pas au trait d'union (_outils/langues.py, insecables) */
.insec { white-space: nowrap; }
.article-aide h2 + p, .article-aide h2 + ul, .article-aide h2 + ol { margin-top: 12px; }
.article-aide p + p, .article-aide p + ul, .article-aide ul + p, .article-aide p + ol, .article-aide ol + p { margin-top: 12px; }
.article-aide ul:not(.liste):not(.voir), .article-aide ol { margin-top: 12px; padding-left: 1.4em; }
.article-aide li + li { margin-top: 8px; }
.article-aide a { text-decoration: underline; }
.article-aide .lien-fleche, .article-aide .bouton-doux { text-decoration: none; }

.capture { margin: 26px 0 0; }
.capture img {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--trait), var(--ombre);
}
.capture.petite img { width: min(100%, 320px); }
.capture figcaption { margin-top: 10px; color: var(--doux); font-size: .9375rem; line-height: 1.5; }

.acces {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--t-pale);
  color: var(--encre);
}
.limites {
  margin-top: 44px;
  padding: 22px 26px;
  border: 1px dashed var(--trait-fort);
  border-radius: 18px;
  background: rgba(255, 252, 248, .7);
}
.limites h2 { margin-top: 0; font-size: 1.3125rem; }

.voir { display: grid; gap: 10px; margin-top: 14px; padding: 0; list-style: none; }
.voir a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: var(--carte);
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
}
.voir a:hover { border-color: var(--trait-fort); box-shadow: var(--ombre); }
.voir .ico { width: 18px; height: 18px; color: var(--t-fonce); }

.sources { margin-top: 40px; color: var(--doux); font-size: .9375rem; line-height: 1.55; }
.sources h2 { margin-top: 0; font-size: 1.0625rem; }
.sources ul { margin-top: 8px; padding-left: 1.2em; }
.sources li + li { margin-top: 6px; }
.sources a { color: var(--doux); word-break: break-word; }

.partie.aide-haut { padding-top: 8px; }
.boutons.a-gauche { justify-content: flex-start; margin-top: 22px; }

.ecrire { margin-top: 40px; padding: 22px 26px; border-radius: 18px; background: var(--carte); border: 1px solid var(--trait); }
.ecrire .boutons { justify-content: flex-start; margin-top: 12px; }

/* ---------- La comparaison ---------- */

.comparaison { padding-top: 28px; }
.comparaison .etroite-large { width: min(980px, 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.tableau-defile {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: 18px;
  background: var(--carte);
  box-shadow: var(--ombre);
  -webkit-overflow-scrolling: touch;
}
.tableau-comparaison { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.tableau-comparaison caption { padding: 16px 18px 4px; color: var(--doux); font-size: .9375rem; text-align: left; caption-side: top; }
.tableau-comparaison th, .tableau-comparaison td { padding: 12px 14px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.tableau-comparaison thead th { color: var(--doux); font-weight: 600; font-size: .9375rem; }
.tableau-comparaison tbody th { position: sticky; left: 0; z-index: 1; min-width: 150px; background: var(--carte); color: var(--encre); font-weight: 600; }
.tableau-comparaison tbody tr:last-child th, .tableau-comparaison tbody tr:last-child td { border-bottom: 0; }
.tableau-comparaison tr.nous th, .tableau-comparaison tr.nous td { background: #FBF1E2; }
.astuce-defile { display: none; margin-top: 8px; color: var(--doux); font-size: .875rem; }

.outils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.fiche-outil {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px;
  border: 1px solid var(--trait);
  border-radius: 20px;
  background: var(--carte);
  box-shadow: var(--ombre);
}
.fiche-outil h3 { font-size: 1.3125rem; }
.fiche-outil .sorte { color: var(--doux); font-size: .9375rem; }
.fiche-outil .convient { margin-top: auto; padding-top: 6px; color: var(--encre); }
.fiche-outil .source { color: var(--doux); font-size: .875rem; }
.fiche-outil .source a { color: var(--doux); }
.fiche-outil.nous { border-color: color-mix(in srgb, var(--t-fonce) 30%, transparent); }

.comparaison h2 { margin-top: 56px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-wrap: balance; }
.comparaison h2:first-child { margin-top: 0; }
.comparaison .intro { margin-top: 12px; max-width: 760px; }
.comparaison .liste { margin-top: 14px; }
.comparaison .sources h2 { margin-top: 0; font-size: 1.0625rem; }
.comparaison .sources { margin-top: 56px; }

/* ---------- Écrans plus petits ---------- */

@media (max-width: 959px) {
  .outils { grid-template-columns: minmax(0, 1fr); }
  .astuce-defile { display: block; }
}

@media (max-width: 640px) {
  .article-aide { font-size: 1.0625rem; }
  .en-bref, .limites, .ecrire { padding: 18px 20px; }
  .fiche-outil { padding: 20px; }
  .recherche-aide input { height: 56px; }
  .famille > h2 { font-size: 1.3125rem; }
}
