/* Pages d'information : confidentialité, mentions légales, CGU, cookies. */
.conf { max-width: 760px; margin: 0 auto; padding: 2rem 1rem 2rem; }
.conf h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0.6rem 0 0.6rem; }
.conf .chapeau { font-size: 1.08rem; color: var(--muted); margin: 0 0 2rem; }
.conf .maj { font-size: 0.88rem; color: var(--muted); margin: 0 0 1.6rem; }
.conf h2 { font-size: 1.2rem; letter-spacing: -0.015em; margin: 2.2rem 0 0.7rem; }
.conf h3 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.conf p, .conf li, .conf address { line-height: 1.6; }
.conf address { font-style: normal; }
.conf ul { padding-left: 1.2rem; }
.conf a { color: var(--accent); }
.retour-site { display: inline-block; color: var(--accent); font-weight: 600; text-decoration: none; }
.retour-site:hover { text-decoration: underline; }

/* Les informations que l'éditeur doit encore renseigner. */
.a-completer { background: #fff3bf; color: #5c3c00; padding: 0 0.25em; border-radius: 4px; font-weight: 600; }
:root[data-theme="dark"] .a-completer { background: #4d3800; color: #ffe08a; }

/* Le schéma : trois étapes, et ce que voit chacune. */
.schema { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0.6rem; margin: 1rem 0 0.6rem; }
.noeud { padding: 1rem; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.noeud strong { display: block; font-size: 1rem; margin-bottom: 0.3rem; }
.noeud span { font-size: 0.85rem; color: var(--muted); }
.noeud.toi { border-color: var(--accent); }
.fleche { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.72rem; color: var(--muted); text-align: center; }
.fleche b { font-size: 1.4rem; color: var(--accent); }
.legende { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 640px) {
  .schema { grid-template-columns: 1fr; }
  .fleche { flex-direction: row; gap: 0.4rem; }
  .fleche b { transform: rotate(90deg); }
}
/* min-width: 0 annule la largeur minimale des tableaux de l'application. */
.tableau-donnees { width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.92rem; }
.tableau-donnees th, .tableau-donnees td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tableau-donnees th { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
/* Téléphone : chaque ligne devient un bloc, la donnée en titre au-dessus. */
@media (max-width: 640px) {
  .tableau-donnees thead { display: none; }
  .tableau-donnees, .tableau-donnees tbody, .tableau-donnees tr, .tableau-donnees td { display: block; }
  .tableau-donnees tr { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
  .tableau-donnees td { padding: 0; border: 0; }
  .tableau-donnees td:first-child { font-weight: 600; margin-bottom: 0.2rem; }
  .tableau-donnees td:not(:first-child) { color: var(--muted); line-height: 1.5; }
  .tableau-donnees td:not(:first-child)::before { content: attr(data-titre) " : "; font-weight: 600; }
}

/* FAQ : questions dépliables, utilisables au clavier (details/summary). */
.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 0 1rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; list-style-position: outside; margin-left: 1rem; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq details[open] summary { padding-bottom: 0.3rem; }
.faq details p { margin: 0 0 1rem; }

/* Recherche dans l'aide (recherche.js). */
.recherche { margin: 0 0 1.4rem; }
.recherche label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.recherche-ligne { display: flex; gap: 0.5rem; }
.recherche-ligne input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; /* 16px : pas de zoom automatique sur iPhone */
  padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--card-bg); color: var(--text);
}
.recherche-ligne input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.recherche-ligne button { flex: none; border-radius: 12px; padding: 0 1.1rem; }
.recherche-note { font-size: 0.82rem; color: var(--muted); margin: 0.5rem 0 0; }
.recherche-resultats:empty { display: none; }
.recherche-resultats { margin: 0 0 2rem; }
.recherche-annonce { font-weight: 600; margin: 0 0 0.6rem; }
.recherche-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.recherche-reponse { padding: 1rem; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--accent); box-shadow: var(--shadow); }
.recherche-reponse h3 { margin: 0.2rem 0 0.4rem; font-size: 1rem; }
.recherche-reponse p { margin: 0 0 0.6rem; }
.recherche-source { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.recherche-lien { font-weight: 600; font-size: 0.9rem; }
