/* Les deux comparatifs : les correcteurs d'écrit (8 novembre 2026, écrit à la
   main) et les sites de préparation gratuits (10 novembre 2026, fabriqué par
   scripts/generer_comparatif_sites.py). Pages satellites de pages.css.

   Refaits le 21 novembre 2026 (passe de design, cadre commun) : « un tableau
   lisible d'un coup d'oeil (coches, croix), le gagnant par ligne », le
   résultat d'abord, des grilles plutôt que des blocs empilés, la page la plus
   courte possible au téléphone comme à l'ordinateur.

   Les règles tenues ici :
   - la Copie (jetons --fp-* de blocs.css, jour et nuit) ;
   - la terre cuite pour une faute de langue seulement (numéro et forme barrée
     des fautes placées) ; une faute ratée par un correcteur, un « non » d'un
     site, est une croix à l'encre, pas une faute ;
   - la sauge pour le juste et pour Jonathan : la forme juste, la coche, notre
     colonne ou notre ligne ;
   - la teinte d'une épreuve SEULEMENT dans la tuile de son picto (option C) :
     l'écrit en moutarde, l'oral en prune ; le transversal à l'encre ;
   - une seule action forte par page (.cmp-go). */

/* ── Commun aux deux pages ──────────────────────────────────────────────── */
/* Une colonne plus large que les guides (860 px, comme l'index des sujets) :
   le tableau tient sans glisser, les fiches se rangent par deux ou par trois.
   Les phrases gardent une longueur de lecture. */
.pg-main.cmp-page { --maxw: 860px; }
.cmp-page > p, .cmp-page > ul, .cmp-page > ol { max-width: 46rem; }
.pg-main.cmp-page h2 { font-size: 20px; line-height: 1.3; margin: 2.2rem 0 0.7rem; }
.pg-main.cmp-page h1 { margin-bottom: 0.7rem; }
.pg-main.cmp-page .lead { margin-bottom: 0.9rem; }

/* La tuile du picto : 34 px (32 au téléphone), le creux, le dessin à l'encre ;
   une épreuve prend son voile et son trait (blocs.css, option C). */
.cmp-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--fp-creux); color: var(--fp-encre); }
.cmp-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cmp-ic.ep-ecrit { background: var(--fp-ep-ecrit-voile); color: var(--fp-ep-ecrit); }
.cmp-ic.ep-oral { background: var(--fp-ep-oral-voile); color: var(--fp-ep-oral); }
.cmp-ic.ep-ecoute { background: var(--fp-ep-ecoute-voile); color: var(--fp-ep-ecoute); }
.cmp-ic.ep-lecture { background: var(--fp-ep-lecture-voile); color: var(--fp-ep-lecture); }
@media (max-width: 719px) { .cmp-ic { width: 32px; height: 32px; } }

/* Le surtitre, avec la tuile de l'épreuve de la page. */
.pg-main .cmp-eb { display: flex; align-items: center; gap: 10px; margin: 0; }

/* Les marques : la coche pleine en sauge (trouvée, oui), la croix à l'encre
   seconde sur le creux (non trouvée, non), le point d'interrogation en
   pointillés (non visible gratuitement). La forme porte le sens, jamais la
   couleur seule ; le mot est dans la cellule, caché à l'oeil. */
.pt { position: relative; display: inline-block; flex: none; box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.pt.oui { background: var(--fp-juste-plein); }
.pt.oui::after { content: ""; position: absolute; left: 50%; top: 46%; width: 5px; height: 10px; border: solid var(--fp-carte); border-width: 0 2.2px 2.2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.pt.non { background: var(--fp-creux); border: 1.5px solid var(--fp-trait-fort); }
.pt.non::before, .pt.non::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.8px; border-radius: 1px; background: var(--fp-encre-2); }
.pt.non::before { transform: translate(-50%, -50%) rotate(45deg); }
.pt.non::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pt.cache { border: 1.5px dashed var(--fp-encre-2); }
.pt.cache::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 var(--fp-police); color: var(--fp-encre-2); }

/* La légende sous un tableau : les marques, en petit. */
.pg-main .cmp-symboles { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; font-size: 0.84rem; color: var(--fp-encre-2); margin: 0.6rem 0 0; max-width: none; }
.cmp-symboles > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cmp-symboles .pt { width: 16px; height: 16px; }
.cmp-symboles .pt.oui::after { width: 3.5px; height: 7px; border-width: 0 1.8px 1.8px 0; }
.cmp-symboles .pt.non::before, .cmp-symboles .pt.non::after { width: 7px; height: 1.5px; }
.cmp-symboles .pt.cache::after { font-size: 9px; }
.pg-main .cmp-def { font-size: 0.86rem; color: var(--fp-encre-2); margin: 0.45rem 0 0; }
.pg-main .cmp-def b { color: var(--fp-titre); }

/* Le cadre d'un tableau : une carte au trait. Il ne glisse que si la fenêtre
   est trop étroite pour lui, ce qui n'arrive plus au téléphone (le tableau
   s'y range autrement, plus bas). */
.cmp-defile { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--fp-trait); border-radius: var(--fp-r-carte); background: var(--fp-carte); }
.cmp-defile:focus-visible { outline: 3px solid var(--fp-focus); outline-offset: 2px; }

/* L'action de la page : le bouton fort de la Copie, sans ombre. */
.pg-main a.cmp-go, .pg-main a.cmp-go:visited { color: var(--fp-sur-action); text-decoration: none; }
.cmp-go { display: flex; justify-content: center; align-items: center; text-align: center; min-height: 54px; margin: 1.1rem 0 0; padding: 0.8rem 1.2rem; border-radius: var(--fp-r-action); background: var(--fp-action); color: var(--fp-sur-action); font-weight: 700; font-size: 1.0625rem; text-decoration: none; box-shadow: none; }
.cmp-go:hover, .pg-main a.cmp-go:hover { background: var(--fp-action-survol); color: var(--fp-sur-action); }
@media (min-width: 720px) { .cmp-go { display: inline-flex; min-width: 22rem; } }

/* Les replis de la page : le repli de blocs.css (titre, résumé, rond), plus
   serré, rangés en grille à l'ordinateur ; ouvert, un repli ne pousse que sa
   colonne. */
.cmp-page .bl-repli { margin: 0; }
.cmp-page .bl-repli > summary { padding: 12px 14px; gap: 12px; min-height: 44px; }
.cmp-page .bl-repli-t b, .cmp-page .bl-repli-t h2, .cmp-page .bl-repli-t h3 { font-size: 16px; }
.pg-main.cmp-page .bl-repli-t h2 { margin: 0; line-height: 1.3; }
.cmp-page .bl-repli-t > span { font-size: 13.5px; }
.cmp-page .bl-repli .bl-rond { width: 30px; height: 30px; }
.cmp-page .bl-repli-d { padding: 0 14px 14px; font-size: 0.92rem; }
.cmp-page .bl-repli-d p, .cmp-page .bl-repli-d li { font-size: 0.92rem; line-height: 1.55; }
.cmp-page .bl-repli-d ul { margin: 0 0 0 1.1rem; }
.cmp-replis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; margin: 0.8rem 0 0; }
.pg-main .cmp-meth-pied .et-licence { margin-top: 0; }
.cmp-nt-repli { margin-top: 8px !important; background: var(--fp-creux) !important; }
.cmp-nt-repli .cmp-grille { margin-top: 0; }
.cmp-nt-repli .cmp-site.cmp-gris { background: var(--fp-carte); }
@media (min-width: 720px) { .cmp-replis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 840px) { .cmp-replis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-replis-3 { margin-top: 1.6rem; }

/* Les fiches repliées d'un site : une carte, le nom, l'état, le rond. */
.cmp-site { background: var(--fp-carte); border: 1px solid var(--fp-trait); border-radius: var(--fp-r-carte); min-width: 0; }
.cmp-site.nous { border: 1.5px solid var(--fp-prof); background: var(--fp-juste-voile); }
.cmp-site.cmp-gris { background: var(--fp-creux); }
.cmp-site > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; min-height: 44px; }
.cmp-site > summary .bl-rond { width: 28px; height: 28px; margin-left: auto; }
.cmp-site-t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.cmp-nom { min-width: 0; overflow-wrap: anywhere; font-weight: 700; color: var(--fp-titre); line-height: 1.3; }
.cmp-nom small { font-weight: 400; color: var(--fp-encre-2); font-size: 0.82rem; margin-left: 0.35rem; }
.cmp-etat { font-size: var(--fp-t-5); font-variant-numeric: tabular-nums; color: var(--fp-encre-2); line-height: 1.4; }
.cmp-site[open] > summary { border-bottom: 1px solid var(--border-soft); }
.cmp-corps { padding: 0.1rem 14px 14px; }
.pg-main .cmp-note { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.55; }
.pg-main .cmp-note b { color: var(--fp-titre); }
.cmp-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; margin: 0.6rem 0 0; }
@media (min-width: 720px) { .cmp-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* La capture en vignette, cliquable vers l'image pleine taille. */
.cmp-captures { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem 1rem; margin: 0.8rem 0 0; }
.cmp-vignette { display: inline-flex; flex-direction: column; gap: 0.3rem; width: 150px; font-size: 0.82rem; color: var(--fp-titre); }
.cmp-vignette img { display: block; width: 150px; height: 170px; object-fit: cover; object-position: top; border: 1px solid var(--fp-trait); border-radius: 10px; background: var(--fp-carte); }
.cmp-vignette:hover img { border-color: var(--fp-encre); }
.pg-main .cmp-captures .cmp-note { margin: 0; }

/* Des tuiles en grille, un picto par tuile (méthode, droit de réponse...). */
.pg-main ul.cmp-methode { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cmp-methode li { margin: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 12px; align-items: start; background: var(--fp-carte); border: 1px solid var(--fp-trait); border-radius: var(--fp-r-carte); padding: 12px 14px; font-size: 0.92rem; line-height: 1.5; }
.cmp-methode b { color: var(--fp-titre); }
@media (min-width: 720px) { .pg-main ul.cmp-methode { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 719px) { .cmp-methode li { grid-template-columns: 32px minmax(0, 1fr); padding: 10px 12px; } }
.pg-main .et-licence { font-size: 0.84rem; margin: 0.7rem 0 0; }
.pg-main .cmp-liens { font-size: 0.9rem; margin: 0.5rem 0 0; }

.cmp-trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 2.2rem 0 0; }
.cmp-trio > section { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 12px; align-content: start; background: var(--fp-carte); border: 1px solid var(--fp-trait); border-radius: var(--fp-r-carte); padding: 14px; }
.cmp-trio > section > :not(.cmp-ic) { grid-column: 2; }
.pg-main .cmp-trio h2 { font-size: 16px; margin: 0.35rem 0 0.4rem; }
.pg-main .cmp-trio p, .pg-main .cmp-trio li { font-size: 0.9rem; line-height: 1.55; margin: 0 0 0.5rem; }
.pg-main .cmp-trio ul { margin: 0 0 0 1rem; }
.pg-main .cmp-trio > section > :last-child { margin-bottom: 0; }
.pg-main .cmp-reponses { border-left: 3px solid var(--fp-trait); padding: 0.1rem 0 0.1rem 0.7rem; color: var(--fp-encre-2); }
@media (min-width: 720px) { .cmp-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 840px) { .cmp-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .cmp-trio > section { grid-template-columns: 32px minmax(0, 1fr); padding: 12px; } }
.cmp-page .related { margin-top: 2.2rem; }

/* ── Le comparatif des correcteurs ──────────────────────────────────────
   Le tableau, lu d'un coup d'oeil : une colonne par correcteur testé, une
   ligne par faute placée (coche, croix ou point d'interrogation), puis les
   mesures du relevé. Sur chaque ligne de mesure qui se compare, le meilleur
   chiffre est entouré (le plus de fautes trouvées, le moins de fausses
   corrections) : c'est le gagnant de la ligne, ex aequo compris. Notre
   colonne est en sauge, à sa place dans l'ordre. */
.pg-main .cmp-reponse { color: var(--fp-titre); font-weight: 600; font-size: 1.12rem; }
.pg-main .cmp-resume, .pg-main .cmp-transparence { color: var(--fp-encre-2); font-size: 0.92rem; margin: 0 0 0.5rem; text-wrap: pretty; }
.pg-main .cmp-transparence { margin-bottom: 1.1rem; }

.cmp-mat { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.cmp-mat caption { caption-side: top; text-align: left; padding: 12px 16px 8px; font-size: 0.85rem; line-height: 1.45; color: var(--fp-encre-2); }
.cmp-mat th, .cmp-mat td { padding: 7px 8px; border-top: 1px solid var(--border-soft); text-align: center; vertical-align: middle; line-height: 1.3; }
.cmp-mat thead th { border-top: 0; border-bottom: 1px solid var(--fp-trait); vertical-align: bottom; padding-top: 10px; padding-bottom: 10px; font-weight: 700; font-size: 0.86rem; color: var(--fp-titre); }
.cmp-mat thead th a { color: var(--fp-titre); text-decoration: underline; text-decoration-color: var(--fp-trait); text-underline-offset: 3px; overflow-wrap: anywhere; }
.cmp-mat thead th a:hover { text-decoration-color: currentColor; }
.cmp-mat thead th small { display: block; font-weight: 400; font-size: 0.76rem; color: var(--fp-encre-2); margin-top: 2px; }
.cmp-mat th[scope="row"] { text-align: left; padding-left: 16px; width: 39%; font-weight: 400; color: var(--fp-encre); font-size: 0.88rem; }
.cmp-mat .cmp-coin { text-align: left; padding-left: 16px; font-weight: 600; font-size: 0.8rem; color: var(--fp-encre-2); }
/* La faute : son numéro et sa forme barrée en terre cuite, la forme juste en sauge. */
.cmp-mat .n { display: inline-block; min-width: 1.9rem; font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 700; color: var(--fp-faute); }
.cmp-mat s { color: var(--fp-encre-2); text-decoration-color: var(--fp-faute); text-decoration-thickness: 1.5px; }
.cmp-mat em { font-style: normal; font-weight: 700; color: var(--fp-juste); }
/* Les mesures : un filet plus marqué au-dessus, le nom de la mesure en gras. */
.cmp-mat .cmp-bilan tr:first-child > * { border-top: 1px solid var(--fp-trait); }
.cmp-mat .cmp-bilan th[scope="row"] { font-weight: 700; color: var(--fp-titre); }
.cmp-mat .cmp-bilan td { font-size: 0.86rem; color: var(--fp-encre); font-variant-numeric: tabular-nums; }
.cmp-mat .cmp-bilan td small { display: block; font-size: 0.76rem; color: var(--fp-encre-2); margin-top: 2px; }
.cmp-mat .cmp-bilan b { font-size: 1rem; color: var(--fp-titre); }
/* Le gagnant de la ligne : le chiffre entouré à l'encre, ex aequo compris. */
.cmp-mat .v { display: inline-block; min-width: 46px; padding: 2px 9px; border-radius: 999px; }
.cmp-mat td.g .v { box-shadow: inset 0 0 0 1.5px var(--fp-encre); font-weight: 700; color: var(--fp-titre); }
.cmp-v-leg { display: inline-block; min-width: 26px; padding: 0 7px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--fp-encre); font-size: 0.78rem; font-weight: 700; line-height: 18px; text-align: center; color: var(--fp-titre); }
/* Notre colonne : la sauge, à sa place dans l'ordre. */
.cmp-mat .nous { background: var(--fp-juste-voile); }
.cmp-mat thead th.nous { box-shadow: inset 0 3px 0 var(--fp-prof); }

/* Les sept fautes et la phrase piège, dans leur repli. */
.pg-main ol.cmp-fautes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.4rem; }
.cmp-fautes li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 0.4rem; margin: 0; padding: 0.45rem 0; border-bottom: 1px solid var(--border-soft); font-size: 0.88rem; line-height: 1.5; }
.cmp-fautes .n { font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 700; color: var(--fp-faute); padding-top: 0.12rem; }
.cmp-fautes s { color: var(--fp-encre-2); text-decoration-color: var(--fp-faute); text-decoration-thickness: 1.5px; }
.cmp-fautes em { font-style: normal; font-weight: 700; color: var(--fp-juste); }
.cmp-fautes small { display: block; color: var(--fp-encre-2); font-size: 0.84rem; }
.cmp-fautes li.piege .n { color: var(--fp-juste); }

/* Le texte envoyé, dans son repli. */
.pg-main .cmp-sujet { font-size: 0.9rem; margin: 0 0 0.7rem; }
.cmp-sujet b { color: var(--fp-titre); }
.cmp-texte { background: var(--fp-creux); border-radius: 12px; padding: 0.9rem 1rem; margin: 0 0 0.6rem; }
.pg-main .cmp-texte p { font-style: italic; color: var(--fp-titre); margin: 0 0 0.7rem; line-height: 1.65; }
.pg-main .cmp-texte p:last-child { margin: 0; }
.pg-main .cmp-mots { margin: 0; font-size: var(--fp-t-5); font-weight: 600; color: var(--fp-encre-2); }

/* Au téléphone : le même tableau, rangé autrement. La ligne d'en-tête (les
   quatre correcteurs) reste collée sous le bandeau du site pendant qu'on
   descend ; chaque ligne dit d'abord sa faute ou sa mesure, sur toute la
   largeur, puis les quatre réponses en dessous, colonne par colonne. Les
   rôles ARIA posés dans la page gardent la lecture de tableau aux lecteurs
   d'écran malgré l'affichage en grille. */
@media (max-width: 699px) {
  .cmp-page .cmp-defile { overflow: visible; border: 0; background: none; border-radius: 0; }
  .cmp-mat, .cmp-mat > thead, .cmp-mat > tbody, .cmp-mat th, .cmp-mat td { display: block; }
  .cmp-mat > caption { display: block; padding: 0 0 8px; }
  .cmp-mat tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
  /* Le collant se pose sur le <thead> (son bloc parent est le tableau
     entier), pas sur la ligne : une ligne ne colle que dans son <thead>. */
  .cmp-mat > thead { position: sticky; top: var(--cmp-colle, 62px); z-index: 3; background: var(--fp-papier); }
  .cmp-mat > thead > tr { border-bottom: 1px solid var(--fp-trait); align-items: end; }
  .cmp-mat thead .cmp-coin { display: none; }
  .cmp-mat thead th { padding: 6px 3px 8px; font-size: 0.78rem; line-height: 1.25; text-align: center; }
  .cmp-mat thead th small { font-size: 0.7rem; }
  .cmp-mat thead th.nous { border-radius: 10px 10px 0 0; }
  .cmp-mat tbody th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 7px 2px 2px; font-size: 0.82rem; border-top: 1px solid var(--border-soft); }
  .cmp-mat tbody td { border-top: 0; padding: 2px 2px 7px; }
  .cmp-mat .cmp-bilan tr:first-child > th { border-top: 1px solid var(--fp-trait); }
  .cmp-mat .cmp-bilan tr:first-child > td { border-top: 0; }
  .cmp-mat .cmp-bilan td { font-size: 0.8rem; }
  .cmp-mat .cmp-bilan b { font-size: 0.95rem; }
  .cmp-mat .v { min-width: 40px; padding: 1px 7px; }
  .cmp-mat .pt { width: 24px; height: 24px; }
  .cmp-mat td.nous { border-radius: 0; }
}

/* ── Le comparatif des sites de préparation ─────────────────────────────
   Pas de classement : l'ordre alphabétique, notre ligne en sauge à sa
   place. Le tableau se lit d'un coup d'oeil : une coche ou une croix par
   point, le compte de chaque point dans les tuiles au-dessus, avec le même
   picto que la colonne. */
.pg-main .cs-declare { margin: 0 0 1rem; padding: 0.65rem 0.9rem; border-left: 3px solid var(--fp-repere); background: var(--fp-creux); border-radius: 0 12px 12px 0; color: var(--fp-encre); font-size: 0.9rem; line-height: 1.5; text-wrap: pretty; max-width: none; }
.pg-main .cs-declare b { color: var(--fp-titre); }

/* La réponse courte : la phrase, puis quatre tuiles (le picto de la colonne,
   le compte, ce qu'il compte). */
.cmp-page .reponse { padding: 1rem 1.1rem; margin: 0 0 1rem; }
.cmp-page .reponse .et-phrase { font-size: 1.05rem; font-weight: 600; line-height: 1.5; margin: 0 0 0.8rem !important; }
.cmp-page .cs-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cmp-page .cs-tuiles > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; align-items: center; background: var(--fp-creux); border-radius: 12px; padding: 10px; }
.cmp-page .cs-tuiles .cmp-ic { background: var(--fp-carte); grid-row: span 2; align-self: start; }
.cmp-page .cs-tuiles .cmp-ic.ep-ecrit { background: var(--fp-ep-ecrit-voile); }
.cmp-page .cs-tuiles .cmp-ic.ep-oral { background: var(--fp-ep-oral-voile); }
.cmp-page .cs-tuiles .n { font-weight: 700; font-size: 1.4rem; line-height: 1.05; color: var(--fp-titre); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
.cmp-page .cs-tuiles .n small { font-size: 0.62em; font-weight: 600; color: var(--fp-encre-2); letter-spacing: 0; }
.cmp-page .cs-tuiles .l { font-size: 0.82rem; color: var(--fp-encre-2); line-height: 1.3; }
.cmp-page .reponse .cs-dates { margin: 0.7rem 0 0 !important; font-size: var(--fp-t-5) !important; color: var(--fp-encre-2); }
@media (max-width: 719px) { .cmp-page .cs-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cmp-page .cs-tuiles .cmp-ic { grid-row: auto; } .cmp-page .cs-tuiles > div { grid-template-columns: 32px minmax(0, 1fr); } .cmp-page .cs-tuiles .l { grid-column: 1 / -1; } }
.cmp-page .byline { margin: 0 0 0.6rem; padding: 0.7rem 0; }

/* La grille, la même pour tous : les sept points en ligne, numérotés ; ce
   que chacun veut dire, dans le repli juste dessous, avant le tableau. */
.pg-main ol.cs-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: none; counter-reset: cs; }
.cs-points li { counter-increment: cs; margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--fp-carte); border: 1px solid var(--fp-trait); font-size: 0.84rem; font-weight: 600; color: var(--fp-titre); line-height: 1.3; }
.cs-points li::before { content: counter(cs); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fp-creux); font-size: 0.72rem; font-weight: 700; color: var(--fp-encre-2); font-variant-numeric: tabular-nums; }
.pg-main ol.cs-criteres { margin: 0; padding: 0; list-style: none; counter-reset: cs; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem 1.4rem; max-width: none; }
.cs-criteres li { counter-increment: cs; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0 0.3rem; font-size: 0.9rem; line-height: 1.5; margin: 0; }
.cs-criteres li::before { content: counter(cs); font-size: 0.78rem; font-weight: 700; color: var(--fp-encre-2); padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.cs-criteres b { color: var(--fp-titre); }
@media (min-width: 720px) { .pg-main ol.cs-criteres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-main .cs-regle { font-size: 0.86rem; color: var(--fp-encre-2); margin: 0.7rem 0 0; }
.pg-main .cs-regle b { color: var(--fp-titre); }

/* Le tableau des sites. */
.cs-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.86rem; }
.cs-tab caption { caption-side: top; text-align: left; padding: 12px 16px 8px; font-size: 0.85rem; line-height: 1.45; color: var(--fp-encre-2); }
.cs-tab th, .cs-tab td { padding: 8px 6px; border-top: 1px solid var(--border-soft); text-align: center; vertical-align: middle; line-height: 1.3; }
.cmp-page .cs-tab thead th { border-top: 0; border-bottom: 1px solid var(--fp-trait); vertical-align: bottom; font-size: 0.78rem; font-weight: 700; color: var(--fp-titre); line-height: 1.25; padding-top: 12px; padding-bottom: 10px; }
.cs-tab thead th .cmp-ic { display: grid; margin: 0 auto 6px; }
.cs-tab thead th .cs-court { display: none; }
.cmp-page .cs-tab thead th:first-child { text-align: left; padding-left: 16px; }
.cs-tab th[scope="row"] { text-align: left; padding-left: 16px; font-weight: 700; color: var(--fp-titre); font-size: 0.9rem; }
.cs-tab th[scope="row"] a { color: var(--fp-titre); text-decoration: underline; text-decoration-color: var(--fp-trait); text-underline-offset: 3px; }
.cs-tab th[scope="row"] a:hover { text-decoration-color: currentColor; }
.cs-tab th[scope="row"] small { display: block; font-weight: 400; font-size: 0.74rem; color: var(--fp-encre-2); margin-top: 2px; }
.cs-tab td .cs-l { display: block; font-size: 0.72rem; line-height: 1.25; color: var(--fp-encre-2); margin-top: 3px; }
.cs-tab .cs-court { display: none; }
.cs-tab td.cs-txt { font-size: 0.8rem; color: var(--fp-encre); }
.cs-tab td.cs-prix { font-size: 0.82rem; color: var(--fp-titre); font-variant-numeric: tabular-nums; }
.cs-tab tr.nous > * { background: var(--fp-juste-voile); }
.cs-tab tr.nous > th[scope="row"] { box-shadow: inset 3px 0 0 var(--fp-prof); }
.pg-main .cs-sous-tab { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; margin: 0.6rem 0 0; max-width: none; font-size: 0.84rem; color: var(--fp-encre-2); }
.cs-sous-tab .cmp-symboles { margin: 0; }
.cs-sous-tab .et-csv { font-weight: 600; }

/* Au téléphone : une ligne par site, le nom à gauche et les quatre marques
   à droite, sous les pictos de l'en-tête collé ; les langues et le premier
   prix en petit dessous. */
@media (max-width: 699px) {
  .cmp-page .cs-cadre .cmp-defile { overflow: visible; border: 0; background: none; border-radius: 0; }
  .cs-tab, .cs-tab > thead, .cs-tab > tbody, .cs-tab th, .cs-tab td { display: block; }
  .cs-tab > caption { display: block; padding: 0 0 8px; }
  .cs-tab tr { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 50px); grid-template-areas: "site c1 c2 c3 c4" "lang prix prix prix prix"; align-items: center; column-gap: 2px; }
  .cs-tab > thead { position: sticky; top: var(--cmp-colle, 62px); z-index: 3; background: var(--fp-papier); }
  .cs-tab > thead > tr { border-bottom: 1px solid var(--fp-trait); grid-template-areas: "site c1 c2 c3 c4"; align-items: start; }
  .cmp-page .cs-tab thead th:first-child { align-self: end; }
  .cmp-page .cs-tab thead th { padding: 6px 0 7px; font-size: 0.68rem; font-weight: 600; color: var(--fp-encre-2); }
  .cmp-page .cs-tab thead th:first-child { padding-left: 2px; font-size: 0.74rem; }
  .cs-tab thead th .cmp-ic { width: 30px; height: 30px; margin-bottom: 3px; }
  .cs-tab thead th .cmp-ic svg { width: 18px; height: 18px; }
  .cs-tab thead th .cs-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cs-tab thead th .cs-court { display: block; }
  .cs-tab thead th:nth-child(6), .cs-tab thead th:nth-child(7) { display: none; }
  .cs-tab tbody tr { padding: 9px 0 8px; border-top: 1px solid var(--border-soft); }
  .cs-tab tbody tr:first-child { border-top: 0; }
  .cs-tab th, .cs-tab td { border: 0 !important; padding: 0 !important; }
  .cs-tab th[scope="row"] { grid-area: site; padding: 0 0 0 2px !important; font-size: 0.92rem; line-height: 1.25; }
  .cs-tab th[scope="row"] a { text-decoration: none; }
  .cs-tab th[scope="row"] small { font-size: 0.72rem; }
  .cs-tab tbody td:nth-of-type(1) { grid-area: c1; } .cs-tab tbody td:nth-of-type(2) { grid-area: c2; }
  .cs-tab tbody td:nth-of-type(3) { grid-area: c3; } .cs-tab tbody td:nth-of-type(4) { grid-area: c4; }
  .cs-tab tbody td:nth-of-type(5) { grid-area: lang; } .cs-tab tbody td:nth-of-type(6) { grid-area: prix; }
  .cs-tab tbody td.cs-txt, .cs-tab tbody td.cs-prix { text-align: left; font-size: 0.76rem; color: var(--fp-encre-2); margin-top: 4px; padding-left: 2px !important; }
  .cs-tab tbody td.cs-prix { text-align: right; padding-right: 4px !important; color: var(--fp-titre); font-weight: 600; }
  .pg-main .cs-tab tbody td.cs-txt::before { content: none; }
  .pg-main .cs-tab tbody td.cs-prix::before { content: attr(data-c) " "; display: inline; font-size: inherit; font-weight: 400; color: var(--fp-encre-2); }
  .cs-tab td .pt { width: 24px; height: 24px; }
  .cs-tab td .cs-l { font-size: 0.66rem; margin-top: 2px; }
  .cs-tab td .cs-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cs-tab td .cs-court { display: inline; }
  .cs-tab tr.nous { background: var(--fp-juste-voile); border-radius: 12px; box-shadow: inset 3px 0 0 var(--fp-prof); padding-left: 8px; padding-right: 4px; }
  .cs-tab tr.nous > * { background: none; }
  .cs-tab tr.nous > th[scope="row"] { box-shadow: none; }
}

/* Les fiches, site par site : deux par rangée à l'ordinateur. Ouverte, ce
   que le site fait bien (sauge) et ce qui manque (creux), puis la grille. */
.cmp-site .cs-avis { margin: 0.7rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.pg-main .cs-avis p { margin: 0; padding: 0.55rem 0.75rem; border-radius: 10px; font-size: 0.88rem; line-height: 1.5; }
.pg-main .cs-avis .cs-bien { background: var(--fp-juste-voile); }
.pg-main .cs-avis .cs-manque { background: var(--fp-creux); }
.pg-main .cs-avis b { display: block; font-size: var(--fp-t-5); font-weight: 700; color: var(--fp-titre); margin-bottom: 0.1rem; }
.cmp-site.nous .cs-avis .cs-bien { background: var(--fp-carte); }
.pg-main dl.cs-mesures { margin: 0.7rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
.cs-mesures div { min-width: 0; }
.cs-mesures dt { font-size: var(--fp-t-5); font-weight: 700; color: var(--fp-encre-2); }
.cs-mesures dd { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--fp-encre); }

/* Vus, pas encore parcourus : la liste dans son repli, deux colonnes. */
.pg-main ul.cs-vus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.4rem; }
.cs-vus li { margin: 0; padding: 0.45rem 0; border-bottom: 1px solid var(--border-soft); font-size: 0.86rem; line-height: 1.5; }
.cs-vus b { color: var(--fp-titre); }
.cs-vus small { color: var(--fp-encre-2); font-size: 0.78rem; white-space: nowrap; }
@media (min-width: 720px) { .pg-main ul.cs-vus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-main .cs-non-releves { font-size: 0.84rem; color: var(--fp-encre-2); margin: 0.6rem 0 0; }

/* La citation de la page, repliée. */
.et-citer-repli { display: inline; }
.et-citer-repli summary { display: inline; cursor: pointer; color: var(--fp-encre-2); text-decoration: underline; text-decoration-color: var(--fp-trait-fort); text-underline-offset: 3px; }
.et-citer-repli summary:hover { color: var(--fp-encre); }
.et-citation { margin: 0.5rem 0 0; padding: 0.6rem 0.8rem; border-left: 3px solid var(--fp-trait); background: var(--fp-creux); border-radius: 0 10px 10px 0; user-select: all; overflow-wrap: anywhere; font-size: 0.84rem; color: var(--fp-encre); }
.et-citation cite { font-style: italic; }
