/* ============================================================================
   blog — LA FEUILLE DES PAGES DE LECTURE, DANS LES DEUX LANGUES.

   Le CSS n'a pas de langue. Cette feuille etait ecrite DEUX FOIS : une dans
   blog.html, une recopiee a la main dans en/blog.html. Reunies le 09/09/2026 —
   une retouche se fait desormais a UN seul endroit.

   12/10/2026 (refonte de la prise en main, lot 3) : elle sert desormais aux
   TROIS pages de lecture — la liste (blog.html), l'article (article.html et
   les pages /article/*), la question (question.html et les pages
   /question/*). question.html en portait une copie dans un <style> : retiree.
   Tout passe par les variables de css/styles.css — le theme nuit suit seul.
   ============================================================================ */


/* ════════════════════ 1. LA LISTE DES ARTICLES ════════════════════
   Mesure du 12/10 : a 375 px, deux colonnes de 160 px — titres coupes mot a
   mot, extrait masque, quatre boutons de partage par carte sur trois rangs ;
   19,5 ecrans pour 42 articles. A 1280 px, 150 px de rouge par carte pour une
   seule icone, et aucun moyen de trier par sujet.
   Telephone : une colonne de lignes compactes (pastille, sujet, date, titre,
   deux lignes d'extrait), toute la ligne se touche. Ordinateur : la derniere
   parution a la une sur deux colonnes, puis une grille de trois. Partout :
   filtre par sujet, recherche, et les douze premiers seulement. */

.blog-outils { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.blog-recherche { position: relative; display: block; }
.blog-recherche input {
  width: 100%; min-height: 48px; padding: 12px 16px 12px 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); font: inherit; font-size: var(--fs-md);
}
.blog-recherche input::placeholder { color: var(--muted); }
.blog-recherche input:focus { outline: none; border-color: var(--red); box-shadow: var(--ring); }
.blog-recherche svg {
  position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none;
}
.blog-filtres { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.blog-filtre {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); font: inherit; font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.blog-filtre span { font-weight: 400; color: var(--muted); }
.blog-filtre:hover { border-color: var(--red); color: var(--red-dark); }
.blog-filtre:active { transform: scale(.98); }
.blog-filtre[aria-pressed="true"] { background: var(--red-fond); border-color: var(--red-fond); color: var(--sur-couleur); }
.blog-filtre[aria-pressed="true"] span { color: var(--sur-couleur); opacity: .8; }
.blog-filtre:focus-visible, .blog-plus:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.blog-note { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); color: var(--muted); }
.blog-note:empty { display: none; }
.blog-note a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .blog-outils { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: var(--sp-5); }
  .blog-outils .blog-recherche { order: 2; }
}

/* Au telephone, la liste monte : moins d'air avant les outils. */
@media (max-width: 699px) {
  #volet-blog > .section:first-child { padding-top: var(--sp-6); }
  #volet-blog .section-head, #volet-questions .section-head { margin-bottom: var(--sp-5); }
  #volet-blog .section-head p { font-size: var(--fs-base); }
}

/* La grille : une colonne au telephone, deux puis trois au-dela. */
.blog-grid.blog-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
@media (min-width: 700px) { .blog-grid.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); } }
@media (min-width: 1020px) { .blog-grid.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* La carte : UN seul lien, etire sur toute la carte (avant : trois liens
   vers la meme adresse, couverture + titre + « Lire l'article »). */
.blog-grid .post-card {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-3);
  padding: var(--sp-4); align-items: start;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.blog-grid .post-card[hidden] { display: none; }
.blog-grid .post-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.blog-grid .post-card:has(.post-lien:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.post-ico {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--blush);
  display: grid; place-items: center;
}
.post-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--red-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.blog-grid .post-body { padding: 0; display: flex; flex-direction: column; min-width: 0; height: 100%; }
.blog-grid .post-meta { flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-2); }
.blog-grid .post-meta .cat { padding: 2px 10px; }
.blog-grid .post-body h3 { font-size: var(--fs-md); line-height: 1.35; margin: 0 0 var(--sp-2); text-wrap: balance; }
.blog-grid .post-body h3 a { display: inline; padding: 0; margin: 0; }
.post-lien { color: inherit; text-decoration: none; }
.post-lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-lien:focus-visible { outline: none; }
.blog-grid .post-card:hover .post-lien { color: var(--red-dark); }
.blog-grid .post-body > p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); margin: 0; flex: 0 1 auto;
}
.blog-grid .post-foot {
  margin-top: auto; padding-top: var(--sp-3); border-top: 0; display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-3); flex-wrap: nowrap;
}
.blog-grid .post-foot .service-link { margin: 0; }
.blog-grid .post-foot .service-link svg { width: 14px; height: 14px; }
.blog-grid .post-reactions { gap: var(--sp-3); }
.blog-grid .post-reactions:empty { display: none; }
/* Plus de barre de partage sur la liste : on partage ce qu'on a lu, depuis
   l'article (barre en fin d'article et, a l'ordinateur, dans la colonne). */
.blog-grid .share-bar { display: none; }

@media (max-width: 699px) {
  .blog-grid .post-foot { display: none; }
  .blog-grid .post-body h3 { font-size: var(--fs-md); }
}
@media (min-width: 700px) {
  .blog-grid .post-card { grid-template-columns: minmax(0, 1fr); padding: var(--sp-5); gap: var(--sp-4); }
  .blog-grid .post-body > p { -webkit-line-clamp: 3; line-clamp: 3; }
  .blog-grid .post-body h3 { font-size: var(--fs-lg); }
}
/* A la une : la derniere parution, sur deux colonnes, avec le rouge de la
   marque — un seul moment rouge dans la liste, au lieu de quarante-deux. */
@media (min-width: 1020px) {
  .blog-grid[data-vue="tous"] .post-card:first-child {
    grid-column: span 2; grid-template-columns: 200px minmax(0, 1fr); padding: 0; overflow: hidden;
  }
  .blog-grid[data-vue="tous"] .post-card:first-child .post-ico {
    width: auto; height: 100%; min-height: 220px; border-radius: 0;
    background: linear-gradient(150deg, var(--red-fond), var(--red-deep));
  }
  .blog-grid[data-vue="tous"] .post-card:first-child .post-ico svg { width: 56px; height: 56px; stroke: var(--sur-couleur); stroke-width: 1.4; }
  .blog-grid[data-vue="tous"] .post-card:first-child .post-body { padding: var(--sp-6) var(--sp-6) var(--sp-5) 0; }
  .blog-grid[data-vue="tous"] .post-card:first-child h3 { font-size: var(--fs-xl); letter-spacing: var(--tracking-title); line-height: 1.3; }
  .blog-grid[data-vue="tous"] .post-card:first-child .post-body > p { font-size: var(--fs-md); -webkit-line-clamp: 3; line-clamp: 3; }
}

.blog-plus-pied { display: flex; justify-content: center; margin-top: var(--sp-6); }
.blog-plus-pied[hidden] { display: none; }
.blog-plus { min-height: 48px; }
.blog-vide-filtre { grid-column: 1 / -1; text-align: center; padding: var(--sp-6) var(--sp-4); color: var(--muted); font-size: var(--fs-base); }

/* Sous la liste : le compte (pour aimer et commenter), le livre, le groupe.
   A l'ordinateur, le livre et le groupe cote a cote : une rangee au lieu de deux. */
.blog-compte {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-7); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line);
  border-radius: var(--r); background: var(--bg);
}
.blog-compte p { margin: 0; font-size: var(--fs-sm); color: var(--muted); max-width: 60ch; }
.blog-compte .blog-auth { margin: 0; justify-content: flex-start; }
.blog-apres { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.blog-apres > * { margin: 0 !important; }
@media (min-width: 1020px) {
  .blog-apres { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .blog-apres > .eval-banner, .blog-apres > .community { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); }
}


/* ════════════════════ 2. L'ARTICLE ════════════════════
   Mesure du 12/10 : le titre arrivait a 346 px du haut (la barre « Se
   connecter » passait AVANT lui) ; le sommaire de douze lignes occupait tout
   le premier ecran du telephone ; a l'ordinateur, une colonne de 680 px
   perdue au milieu de 1 280, et le sommaire disparaissait des le premier
   defilement. Ni temps de lecture, ni chapeau.
   Telephone : retour, sujet, date, temps de lecture, titre, chapeau ; le
   sommaire est REPLIE (« Sur cette page · 12 parties »). Ordinateur : le texte
   a 68 caracteres par ligne, et a sa droite une colonne collante — le
   sommaire, qui suit la lecture, et le partage. */

.art-section { padding-top: var(--sp-6); }
.art-section .article-container { max-width: 760px; }
.art-mise { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "cote" "texte" "fin"; }
.art-mise > .article-head { grid-area: tete; }
.art-mise > .art-cote { grid-area: cote; }
.art-mise > .article-contenu { grid-area: texte; }
.art-mise > .art-fin { grid-area: fin; }
/* Le sommaire de js/lecture-article.js (commun au site) : ici, c'est la
   colonne qui le porte — on ne l'affiche pas deux fois. */
.art-mise .art-sommaire { display: none; }

.art-retour {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--red-dark); text-decoration: none;
}
.art-retour:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-retour svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-mise .article-head .post-meta { margin: var(--sp-2) 0 var(--sp-3); flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.art-duree { display: inline-flex; align-items: center; gap: 6px; }
.art-duree svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.art-mise .article-titre { font-size: var(--fs-h2); letter-spacing: var(--tracking-title); line-height: 1.18; margin: 0; }
.art-chapo { margin: var(--sp-3) 0 0; font-size: var(--fs-md); line-height: 1.6; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
@media (min-width: 768px) { .art-chapo { margin-top: var(--sp-4); font-size: var(--fs-lg); } }

/* Le sommaire : un <details>, replie au telephone, ouvert et collant a l'ordinateur. */
.art-cote { margin: var(--sp-5) 0 var(--sp-6); }
.art-plan { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.art-plan > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-3);
  min-height: 52px; padding: var(--sp-3) var(--sp-4);
  font-family: Sora, sans-serif; font-weight: 600; font-size: var(--fs-base); color: var(--navy-dark);
}
.art-plan > summary::-webkit-details-marker { display: none; }
.art-plan > summary .art-plan-nb { margin-left: auto; font-family: Inter, sans-serif; font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }
.art-plan > summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; transition: transform .2s ease; }
.art-plan[open] > summary svg { transform: rotate(180deg); }
.art-plan > summary:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; border-radius: var(--r); }
.art-plan ol { list-style: none; margin: 0; padding: 0 var(--sp-2) var(--sp-3); counter-reset: plan; }
.art-plan li { margin: 0; }
.art-plan li a {
  display: flex; gap: var(--sp-3); align-items: baseline; min-height: 44px; padding: 10px var(--sp-3);
  border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.45;
  transition: background-color .2s ease, color .2s ease;
}
.art-plan li a::before {
  counter-increment: plan; content: counter(plan); flex: none; min-width: 1.5em;
  font-family: Sora, sans-serif; font-weight: 700; color: var(--red-dark); font-variant-numeric: tabular-nums;
}
.art-plan li a:hover { background: var(--blush); color: var(--red-dark); }
.art-plan li a[aria-current="true"] { background: var(--blush); color: var(--red-ink); font-weight: 600; }
.art-plan li a:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.art-cote-partage { display: none; }

@media (min-width: 1100px) {
  .art-section { padding-top: var(--sp-7); }
  .art-section .article-container { max-width: 1080px; }
  .art-mise {
    grid-template-columns: minmax(0, 700px) 272px; column-gap: 72px; justify-content: center;
    grid-template-areas: "tete cote" "texte cote" "fin cote";
  }
  .art-mise:not(:has(.art-plan)) { grid-template-columns: minmax(0, 700px); grid-template-areas: "tete" "texte" "fin"; }
  .art-mise:not(:has(.art-plan)) > .art-cote { display: none; }
  .art-cote {
    position: sticky; top: 96px; align-self: start; margin: 0;
    max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent;
  }
  .art-plan { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .art-plan > summary { cursor: default; pointer-events: none; min-height: 0; padding: 0 var(--sp-4) var(--sp-3);
    font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .art-plan > summary svg, .art-plan > summary .art-plan-nb { display: none; }
  .art-plan ol { padding: 0 0 0 var(--sp-2); }
  .art-plan li a { min-height: 0; padding: 7px var(--sp-3); }
  .art-cote-partage { display: block; margin-top: var(--sp-5); padding: var(--sp-4) 0 0 var(--sp-4); border-left: 1px solid var(--line); }
  .art-cote-partage .share-bar { margin: 0; }
  .art-cote-partage .share-label { flex-basis: 100%; margin-bottom: 2px; }
  .art-mise .article-head { margin-bottom: var(--sp-6); }
}

/* Le texte : 16 px au telephone, 18 px des la tablette ; interlignage large. */
.art-mise .article-contenu { margin: 0; }
.art-mise .article-contenu p { font-size: var(--fs-md); line-height: 1.75; margin: 0 0 var(--sp-4); }
.art-mise .article-contenu h2 {
  font-size: var(--fs-lg); font-weight: 700; color: var(--navy-dark); line-height: 1.3;
  letter-spacing: var(--tracking-title); margin: var(--sp-7) 0 var(--sp-3); text-wrap: balance; scroll-margin-top: 96px;
}
.art-mise .article-contenu h2:first-child { margin-top: 0; }
.art-mise .article-contenu b { color: var(--navy-dark); font-weight: 600; }
.art-mise .article-contenu a {
  color: var(--red-dark); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; overflow-wrap: anywhere;
}
.art-mise .article-contenu a:hover { text-decoration-thickness: 2px; }
.art-mise .article-contenu ::selection, .q-page ::selection { background: var(--blush); color: var(--red-ink); }
@media (min-width: 768px) {
  .art-mise .article-contenu p { font-size: var(--fs-lg); line-height: 1.75; margin-bottom: var(--sp-5); }
  .art-mise .article-contenu h2 { font-size: var(--fs-xl); margin-top: var(--sp-8); }
}

/* La fin d'article : reagir, la suite, lire ensuite, les commentaires. */
.art-fin { margin-top: var(--sp-7); }
.art-reagir {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.art-reagir .article-actions { margin: 0; }
.art-reagir .share-bar { margin: 0; }
.art-reagir .like-btn:hover { transform: none; }
.art-reagir .like-btn:active { transform: scale(.98); }

.art-suite { margin-top: var(--sp-7); }
.art-suite h2, .art-liees h2 {
  font-size: var(--fs-lg); font-weight: 700; color: var(--navy-dark); letter-spacing: var(--tracking-title); margin: 0 0 var(--sp-4);
}
.art-suite-grille { display: grid; gap: var(--sp-3); }
@media (min-width: 700px) { .art-suite-grille { grid-template-columns: 1.15fr 1fr; } }
.art-porte {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px var(--sp-3);
  align-items: start; padding: var(--sp-4) var(--sp-5); border-radius: var(--r);
  border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.art-porte:hover { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.art-porte:active { transform: scale(.98); }
.art-porte:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.art-porte .art-porte-ico {
  grid-row: span 2; width: 44px; height: 44px; border-radius: var(--r); background: var(--blush); display: grid; place-items: center;
}
.art-porte .art-porte-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--red-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-porte b { font-family: Sora, sans-serif; font-size: var(--fs-base); font-weight: 600; line-height: 1.35; color: var(--navy-dark); }
.art-porte span:last-child { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
/* La premiere porte est LA prochaine etape : le seul bloc rouge de la fin. */
.art-porte.principale { background: linear-gradient(150deg, var(--red-fond), var(--red-deep)); border-color: transparent; }
.art-porte.principale b, .art-porte.principale span:last-child { color: var(--sur-couleur); }
.art-porte.principale span:last-child { opacity: .9; }
.art-porte.principale .art-porte-ico { background: color-mix(in srgb, var(--sur-couleur) 16%, transparent); }
.art-porte.principale .art-porte-ico svg { stroke: var(--sur-couleur); }
.art-porte.principale:hover { box-shadow: var(--shadow); }

.art-liees { margin-top: var(--sp-7); }
.art-liees ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.art-liees li { border-bottom: 1px solid var(--line); }
.art-liees a {
  display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--sp-1); min-height: 44px;
  color: var(--navy-dark); text-decoration: none; font-weight: 600; line-height: 1.4;
  transition: color .2s ease;
}
.art-liees a small { font-size: var(--fs-xs); font-weight: 600; color: var(--red-dark); }
.art-liees a:hover { color: var(--red-dark); }
.art-liees a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: var(--r-sm); }

.art-fin .article-comments { margin-top: var(--sp-7); }
.comments-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.comments-tete .comments-titre { margin: 0; }
.comments-tete .blog-auth { margin: 0; }


/* ════════════════════ 3. QUESTIONS & RÉPONSES ════════════════════
   Une question s'affiche comme un article : titre lisible, auteur, date, et
   le nombre de réponses. Le matricule remplace le nom quand la personne a
   choisi l'anonymat. (25/08/2026) */
.q-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding: 14px var(--sp-4); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); margin-bottom: var(--sp-5); font-size: var(--fs-base); }
.q-barre .q-moi { color: var(--muted); }
.q-barre .q-moi b { color: var(--ink); }
.q-form { border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); margin-bottom: 28px;
  background: var(--white); }
.q-champ { display: block; margin-bottom: var(--sp-4); }
.q-champ > span { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: var(--fs-base); }
.q-champ input, .q-champ textarea, .q-champ select { width: 100%; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: var(--fs-md);
  background: var(--white); color: var(--ink); }
.q-champ input:focus, .q-champ textarea:focus, .q-champ select:focus { outline: none;
  border-color: var(--red); box-shadow: var(--ring); }
.q-champ small { display: block; margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
.q-oblig { color: var(--red-dark); }
.q-anonyme { padding: var(--sp-3) 14px; border-radius: var(--r-sm); background: var(--bg); margin-bottom: 14px; }
.q-bascule { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.q-bascule input { width: 20px; height: 20px; accent-color: var(--red); }
.q-matricule { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--ink); }
.q-matricule b { letter-spacing: .06em; font-variant-numeric: tabular-nums;
  background: var(--blush); padding: 2px var(--sp-2); border-radius: var(--r-sm); color: var(--red-ink); }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.q-note { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.q-erreur { color: var(--red-dark); font-weight: 600; font-size: var(--fs-base); margin: 0 0 var(--sp-3); }
.q-liste { display: flex; flex-direction: column; gap: var(--sp-3); }
.q-vide { color: var(--muted); font-size: var(--fs-base); padding: var(--sp-5) 0; }
.q-carte { display: block; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.q-carte:hover { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.q-carte:hover h3 { color: var(--red-dark); }
.q-carte:active { transform: scale(.99); }
.q-carte h3 { font-size: var(--fs-lg); color: var(--navy-dark); margin: 0 0 var(--sp-2); line-height: 1.4; transition: color .2s ease; text-wrap: balance; }
.q-carte p { color: var(--muted); font-size: var(--fs-base); margin: 0 0 10px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.q-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: var(--muted); }
.q-meta .q-auteur { font-weight: 600; color: var(--ink); }
.q-meta .q-repondu { color: var(--teal-ink); font-weight: 600; }
.q-partage { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; }
.q-partage svg { width: 18px; height: 18px; fill: currentColor; }

/* Le volet du blog : chercher d'abord, poser ensuite. A l'ordinateur, la
   liste a gauche et « Posez votre question » dans une colonne a droite, qui
   reste en vue — sauf formulaire ouvert, plus haut qu'un ecran. */
.q-mise { display: grid; gap: var(--sp-6); }
.q-col-liste { min-width: 0; }
.q-col-liste > .q-champ { margin-bottom: var(--sp-3); }
.q-col-liste > .q-champ input { min-height: 48px; border-radius: var(--r-pill); padding-left: 18px; }
.q-col-poser { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); scroll-margin-top: 96px; }
.q-col-poser h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--navy-dark); margin: 0 0 var(--sp-2); }
.q-col-poser > p { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--sp-4); }
.q-col-poser .q-barre { background: var(--white); margin-bottom: var(--sp-4); }
.q-col-poser .q-form { padding: var(--sp-4); }
.q-col-poser .community { margin: 0 !important; padding: var(--sp-4); flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.q-col-poser .community h3 { font-size: var(--fs-base); }
.q-sauter { font-size: var(--fs-sm); }
@media (max-width: 699px) {
  /* Les catégories des questions : six pastilles, quatre rangées au lieu de cinq. */
  .q-col-liste .q-onglet { padding: 8px 12px; font-size: var(--fs-sm); }
}
.q-sauter a { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1020px) {
  .q-mise { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-8); align-items: start; }
  .q-col-poser { position: sticky; top: 96px; }
  .q-col-poser:has(#qForm:not([hidden])) { position: static; }
  .q-sauter { display: none; }
}

/* La page d'une question (/question/*). Mesure du 12/10 : a 1280 px, des
   lignes de 145 caracteres ; le bouton « Partager » passait AVANT la reponse ;
   le retour aux questions n'existait qu'en bas de page.
   Telephone : retour, question, puis LA REPONSE du cabinet, mise en avant ;
   le partage et la suite viennent apres. Ordinateur : une colonne de lecture
   de 68 caracteres, et a droite la prochaine etape et les questions voisines. */
.q-page .page-hero { padding-bottom: var(--sp-6); }
.q-page .page-hero h1 { max-width: 28ch; text-wrap: balance; }
.q-retour { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; margin-bottom: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--red-dark); text-decoration: none; }
.q-retour:hover { text-decoration: underline; text-underline-offset: 3px; }
.q-retour svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.q-page .section { padding-top: var(--sp-6); }
.q-principal > .q-barre { margin-top: var(--sp-5); }
.q-suite .q-voisines { margin: 0; padding-top: 0; border-top: 0; }
.q-suite .q-voisines ul { display: block; margin: 0; }
.q-suite .q-voisines li a { border: 0; border-radius: 0; background: none; padding: var(--sp-3) var(--sp-1); transition: color .2s ease; }
.q-detail-conteneur { display: grid; gap: var(--sp-6); }
.q-principal { min-width: 0; max-width: 70ch; }
.q-detail .q-meta { margin-bottom: var(--sp-3); }
.q-detail .q-corps { font-size: var(--fs-md); line-height: 1.75; color: var(--ink); white-space: pre-wrap; }
.q-detail .q-partage { display: none; }
.q-reponses { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.q-reponse { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.q-reponse .q-qui { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--ink); font-size: var(--fs-base); margin: 0 0 var(--sp-2); }
.q-reponse .q-texte { font-size: var(--fs-md); line-height: 1.75; white-space: pre-wrap; color: var(--ink); }
.q-reponse .q-texte a, .q-detail .q-corps a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* La reponse du cabinet : la piece maitresse de la page. */
.q-reponse.officielle { padding: var(--sp-5); border-color: color-mix(in srgb, var(--red) 28%, var(--line)); background: var(--blush); box-shadow: var(--shadow-sm); }
.q-reponse.officielle .q-qui { color: var(--red-ink); }
.q-reponse.officielle .q-qui::before {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: var(--r-sm); background: var(--white) url(../img/logo-96.png) center / 20px no-repeat;
  border: 1px solid color-mix(in srgb, var(--red) 20%, var(--line));
}
@media (min-width: 768px) { .q-reponse .q-texte, .q-detail .q-corps { font-size: var(--fs-lg); } }
.q-suite { display: grid; gap: var(--sp-5); align-content: start; }
.q-suite .q-partage { justify-content: center; width: 100%; }
.q-porte-bloc { padding: var(--sp-5); border-radius: var(--r-lg); background: linear-gradient(150deg, var(--red-fond), var(--red-deep)); color: var(--sur-couleur); }
.q-porte-bloc h2 { font-size: var(--fs-lg); font-weight: 700; color: var(--sur-couleur); margin: 0 0 var(--sp-2); letter-spacing: var(--tracking-title); }
.q-porte-bloc p { font-size: var(--fs-sm); color: var(--sur-couleur); opacity: .92; margin: 0 0 var(--sp-4); }
.q-porte-bloc .btn { width: 100%; justify-content: center; background: var(--white); color: var(--red-dark); box-shadow: none; }
.q-porte-bloc .btn:hover { background: var(--blush); }
.q-porte-bloc a.q-porte-second { display: inline-block; margin-top: var(--sp-3); color: var(--sur-couleur); font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.q-voisines h2 { font-size: var(--fs-md); font-weight: 700; color: var(--navy-dark); margin: 0 0 var(--sp-3); }
.q-voisines ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.q-voisines li { border-bottom: 1px solid var(--line); }
.q-voisines li a { display: block; padding: var(--sp-3) var(--sp-1); min-height: 44px; color: var(--navy-dark); font-weight: 600; font-size: var(--fs-base); line-height: 1.4; text-decoration: none; }
.q-voisines li a:hover { color: var(--red-dark); }
.q-voisines .q-porte { display: none; }
.q-page .q-barre { margin: 0; }
@media (min-width: 1020px) {
  .q-detail-conteneur { grid-template-columns: minmax(0, 700px) 320px; column-gap: 72px; justify-content: center; }
  .q-suite { position: sticky; top: 96px; }
  .q-page .page-hero .container, .q-page .page-hero h1 { max-width: none; }
  .q-page .page-hero .container { max-width: calc(1092px + 40px); }
}

/* Le changement d'onglet ne claque plus (29/08/2026) : chaque carte entre
   en fondu, l'une apres l'autre — le retard est pose carte par carte par
   le script. Fondu seul depuis le 12/10 (regle du 10/09 : pas de saut). */
@keyframes q-apparait { from { opacity: 0; } to { opacity: 1; } }
.q-liste .q-carte { animation: q-apparait .25s ease both; }
@media (prefers-reduced-motion: reduce) {
  .q-liste .q-carte { animation: none; }
  .art-plan > summary svg, .blog-filtre, .art-porte, .post-card { transition: none; }
}
