@layer legacy {
.community-anchor { scroll-margin-top: 84px; }
.comment[id^="comment-"], .reply[id^="comment-"] { scroll-margin-top: 80px; }

.social-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.social-comments-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.social-comments-iso {
  --green-primary: var(--color-success);
  --green-dark: var(--palette-green-800v);
  --green-hover: var(--palette-green-900d);
  --green-light: var(--palette-green-100i);
  --blue-primary: var(--palette-blue-600o);
  --blue-hover: var(--palette-blue-700q);
  --red-badge: var(--color-danger);
  --gray-50: var(--palette-gray-50);
  --gray-100: var(--palette-gray-100b);
  --gray-200: var(--palette-gray-100);
  --gray-300: var(--palette-gray-150b);
  --gray-400: var(--palette-gray-300b);
  --gray-600: var(--palette-gray-600c);
  --gray-700: var(--palette-gray-700d);
  --gray-900: var(--palette-gray-900g);
  --white: var(--palette-white);
  /* Rayons : ceux du site (tokens.css, 6 px « à peine arrondi ») — les valeurs
     locales 6/8 px qui les doublaient ont été retirées le 11/09/2026. */
  --shadow-sm: 0 1px 3px var(--palette-black-a5);
  --shadow-md: 0 4px 12px var(--palette-black-a8);
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  /* POLICE DU SITE, héritée (11/09/2026). « Outfit » était demandée ici sans
     jamais être chargée sur ces pages : le bloc tombait sur la police système
     (San Francisco sur Mac et iPhone, Segoe UI sur Windows), différente
     d'Arimo — sur le Direct, chaque carte mélangeait deux polices. */
  font-family: inherit;
  color: var(--gray-900);
}
.social-comments-iso .social-thread-flash {
  margin: 0 0 12px;
}
.social-comments-iso .comments-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--green-primary);
  padding: 12px 20px;
  margin: -20px -20px 20px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.social-comments-iso .comments-count {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-inverse);
}
.social-comments-iso .count-icon {
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.social-comments-iso .comments-toggle-btn {
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.social-comments-iso .comments-toggle-btn:hover {
  opacity: 0.7;
}
.social-comments-iso .comments-toggle-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.social-comments-closed-notice {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted, var(--palette-gray-700c));
  font-size: 15px;
  border: 1px dashed var(--border-color, var(--palette-gray-200));
  border-radius: var(--radius-md, 8px);
  margin-bottom: 20px;
}
.social-comments-closed-notice p {
  margin: 0;
}
.social-comments-iso .search-box {
  position: relative;
}
.social-comments-iso .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}
.social-comments-iso .search-input {
  width: 100%;
  padding: 10px 14px 10px 46px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--color-surface);
}
.social-comments-iso .search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--palette-white-a30);
}
.social-comments-iso .search-input::placeholder {
  color: var(--gray-400);
}
.social-comments-iso .sort-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-inverse);
}
.social-comments-iso .sort-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.social-comments-iso .sort-dropdown {
  padding: 9px 34px 9px 14px;
  border: 2px solid var(--palette-white);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23212121' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.social-comments-iso .sort-dropdown:hover {
  background-color: var(--gray-50);
}
.social-comments-iso .new-comment {
  background: var(--color-surface);
  padding: 16px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.social-comments-iso .new-comment-wrapper {
  display: flex;
  gap: 16px;
}
.social-comments-iso .new-comment-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.social-comments-iso .comment-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--palette-red-500h) 0%, var(--palette-green-600f) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: 18px;
  border: 3px solid var(--palette-white);
  box-shadow: 0 2px 8px var(--palette-black-a10);
  overflow: hidden;
}
.social-comments-iso .comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Sans photo : lettre grise sur rond gris clair, liseré fin, comme le Direct,
   l'accueil, le concours et l'app (Xavier 28/10/2026) — avant, une lettre
   blanche sur un dégradé rouge-vert. Une photo garde son cadre blanc et le
   dégradé derrière elle : seul le rond sans photo change. */
.social-comments-iso .comment-avatar:not(:has(img)) {
  background: var(--color-surface-soft, #f8fafc);
  border: 1px solid var(--color-border, #dce3ec);
  color: var(--color-text-muted, #5f6d82);
}
.social-comments-iso .comment-avatar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: 64px;
  position: relative;
  padding-bottom: 4px;
}
.social-comments-iso .comment-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--palette-yellow-400b) 0%, var(--palette-orange-500h) 100%);
  color: var(--palette-orange-900);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 10px var(--palette-orange-800-a16);
  white-space: nowrap;
  text-decoration: none;
  margin-top: -5px;
  position: relative;
  z-index: 2;
}
.social-comments-iso .comment-rank-badge sup {
  font-size: 0.72em;
  line-height: 1;
  vertical-align: super;
  position: relative;
  top: -0.32em;
}
/* L'INFOBULLE DE LA PASTILLE (Xavier, 16/09/2026 : « sinon les gens ne
   sauront pas à quoi ça correspond »). Elle remplace l'attribut `title` que
   portait le badge : celle du navigateur met deux secondes à s'ouvrir, ne se
   voit jamais sur téléphone, et ne ressemble à aucune autre infobulle du
   site. Même recette que celle des dates, juste au-dessus.

   ELLE S'OUVRE VERS LE BAS ET VERS LA DROITE : la pastille est en bas de la
   colonne de l'avatar, contre le bord gauche du commentaire — une bulle
   centrée ou ouverte vers le haut sortirait du bloc d'un côté ou recouvrirait
   la photo et le pseudo de l'autre. La flèche, elle, reste calée sur la
   pastille (14 px du bord). */
.social-comments-iso .comment-rank-bulle {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: max-content;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--palette-black);
  color: var(--color-text-inverse);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 24px var(--palette-black-a22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
}
.social-comments-iso .comment-rank-bulle::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 100%;
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent var(--palette-black) transparent;
}
.social-comments-iso .comment-rank-badge:hover .comment-rank-bulle,
.social-comments-iso .comment-rank-badge:focus-visible .comment-rank-bulle {
  opacity: 1;
  visibility: visible;
}
/* PAS D'INFOBULLE SANS SOURIS, comme les dates : sur un écran tactile un
   appui prolongé déclenche `:hover` et la bulle resterait collée sous le
   doigt. Le doigt sur la pastille ouvre /concours/, c'est l'explication. */
@media not all and (hover: hover) and (pointer: fine) {
  .social-comments-iso .comment-rank-bulle { display: none; }
}
.social-comments-iso .avatar-link {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.social-comments-iso .avatar-link:hover {
  text-decoration: underline;
}
.social-comments-iso .comment-charte-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
}
.social-comments-iso .comment-charte-modal.is-hidden {
  display: none;
}
.social-comments-iso .comment-charte-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--palette-blue-900-a56);
}
/* LARGEUR ET HAUTEUR MESURÉES SUR LE CADRE, PAS SUR L'ÉCRAN (18/09/2026).
   Avant : min(1120px, 100vw - 18px) et calc(100vh - 40px) ignoraient les 20 px
   de marge intérieure de .comment-charte-modal. Sur un téléphone de 390 px la
   fenêtre réclamait 372 px là où il n'en restait que 350 : elle partait du bord
   gauche de la marge et finissait 2 px DEHORS, ce qui la faisait paraître
   poussée vers la droite. Le 100% part de la case de la grille, marge déduite :
   sur ordinateur min(1120px, 1240px) vaut toujours 1120 px — rien ne bouge —
   et sur téléphone la fenêtre est centrée, 20 px de chaque côté. */
.social-comments-iso .comment-charte-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px 22px 18px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 54px var(--palette-black-a34);
  border: 1px solid var(--palette-blue-150w);
}
.social-comments-iso .comment-charte-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--palette-blue-150x);
  color: var(--palette-blue-700r);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.social-comments-iso .comment-charte-dialog h3 {
  margin: 0 44px 10px 0;
  font-size: 24px;
  line-height: 1.1;
  color: var(--palette-blue-900c);
}
.social-comments-iso .comment-charte-content {
  color: var(--palette-blue-900);
  font-size: 14px;
  line-height: 1.45;
}
.social-comments-iso .comment-charte-content p {
  margin: 0 0 10px;
}
.social-comments-iso .comment-charte-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.social-comments-iso .new-comment-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.social-comments-iso .comment-input-wrapper {
  flex: 1;
}
.social-comments-iso .comment-textarea {
  display: block; /* supprime l'espace fantôme de baseline sous le textarea */
  width: 100%;
  min-height: 70px;
  /* LA BOÎTE GRANDIT AVEC LE TEXTE (comments.js, 11/09/2026) jusqu'à ce
     plafond, puis le texte défile dedans — comme Facebook. La poignée reste
     ici pour le cas SANS JavaScript (une boîte figée sans poignée serait un
     recul) : c'est le script qui la retire quand il prend la main. Et la
     hauteur ne s'anime plus : animée, chaque nouvelle ligne faisait trembler
     le texte le temps de la transition. Sur téléphone : voir la fin de la
     couche. */
  max-height: 240px;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.social-comments-iso .comment-textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px var(--palette-green-800-a10);
}
.social-comments-iso .comment-textarea::placeholder {
  color: var(--gray-400);
}
.social-comments-iso .comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.social-comments-iso .notify-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray-700);
}
.social-comments-iso .notify-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-primary);
  cursor: pointer;
}
.social-comments-iso .btn-comment-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-comments-iso .comment-form-error {
  width: 100%;
  margin: 0;
  color: var(--palette-red-700b);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
/* Styles du picker emoji extraits vers assets/css/emoji-picker.css (PR M5bis)
 * sous @layer components avec scope neutre. Chargé à côté de social.css par
 * les modules consommateurs (quinte, programme/course_detail), et par les
 * modules messagerie (M5/M6) sur leurs propres vues. */

.social-comments-iso .btn-comment {
  padding: 8px 24px;
  background: var(--blue-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.social-comments-iso .btn-comment:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.social-comments-iso .comment {
  scroll-margin-top: 88px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.social-comments-iso .comment:target,
.social-comments-iso .reply:target {
  background: var(--palette-yellow-150-a55);
}
.social-comments-iso .comment-highlight {
  animation: commentHighlightFade 2.5s ease-out forwards;
}
@keyframes commentHighlightFade {
  0%   { background-color: var(--palette-yellow-300-a60); }
  100% { background-color: transparent; }
}
.social-comments-iso .comment:last-of-type {
  border-bottom: none;
}
.social-comments-iso .comment-header {
  display: flex;
  gap: 12px;
  margin-bottom: 5px;
}
.social-comments-iso .comment-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.social-comments-iso .comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.social-comments-iso .comment-time-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.social-comments-iso .comment-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.social-comments-iso .comment-author:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}
.social-comments-iso .comment-staff-badge {
  color: var(--palette-red-600n);
  font-size: inherit;
  margin-left: -8px;
  cursor: default;
}
.social-comments-iso .comment-prediction {
  position: relative;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--palette-green-700r);
  white-space: nowrap;
  cursor: default;
}
/* Le cheval de remplacement, en gris et sans gras : on le voit sans qu'il soit
   aussi visible que le pronostic (Xavier, 26/10/2026). */
.social-comments-iso .comment-prediction .pred-remplacant {
  font-weight: 400;
  color: var(--palette-gray-600c);
}
.social-comments-iso .comment-prediction .pred-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 200px;
  max-width: 300px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--palette-black);
  color: var(--color-text-inverse);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 10px 24px var(--palette-black-a22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
}
.social-comments-iso .comment-prediction .pred-tooltip::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 100%;
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: var(--palette-black) transparent transparent transparent;
}
.social-comments-iso .comment-prediction:hover .pred-tooltip {
  opacity: 1;
  visibility: visible;
}
/* LA LIGNE DU PSEUDO QUI PORTE UN PRONOSTIC NE PASSE JAMAIS À LA LIGNE
   (Xavier, 23/09/2026). Sur téléphone, « Turftuyaux★ · Il y a 9 h · 🏆 14-1-4-8-13-12-7-15 »
   ne tenait pas : l'heure se cassait en deux lignes (« Il y a / 9 h »). Quand la place manque, on
   sacrifie DANS CET ORDRE, et rien d'autre :
     1. « Il y a » — « Il y a 9 h » devient « 9 h » ;
     2. l'heure entière ;
     3. la fin du pseudo (« … »), pour un pseudo très long sur un petit téléphone.
   L'ordre tient aux facteurs de rétrécissement : l'heure en a un énorme, le pseudo 1, tout le
   reste 0 — l'heure absorbe donc tout le manque jusqu'à zéro, et le pseudo ne rétrécit qu'après
   (le moteur de flexbox gèle l'heure à son minimum et reverse le reste au pseudo). La part du
   pseudo AVANT ce gel vaut un millionième de pixel, arrondie à zéro par les navigateurs.
   Le « tout ou rien » des étapes 1 et 2 vit sur la balise <time> elle-même (`.comment-time--duo`,
   plus bas). Seules les lignes AVEC pronostic sont touchées : `:has()` les désigne, les autres
   commentaires ne bougent pas d'un pixel.
   ⚠️ `contain: inline-size` EST INDISPENSABLE (banc du 23/09/2026) : une ligne qui ne passe plus à
   la ligne annonce comme largeur minimale la SOMME de ses morceaux (pseudo + badge + pronostic…).
   Dans une grille dont la colonne est `auto` — c'est le cas du Direct sur téléphone — cette somme
   ÉLARGIT TOUTE LA PAGE : 438 px au lieu de 390 au banc, le même piège que l'accueil le 20/09.
   Contenue, la ligne n'annonce plus rien et prend simplement la largeur qu'on lui donne. D'où le
   `@supports` : un navigateur qui ne connaît pas cette règle garde la ligne d'avant, qui passe à
   la ligne mais n'élargit jamais la page. Même repli sans l'unité `lh` (l'heure « tout ou rien »
   en a besoin, plus bas) ni sans `:has()` (qui désigne la ligne) : c'est tout ou rien, les TROIS
   ensemble — en pratique les iPhone d'avant iOS 16.4 (mars 2023), Chrome d'avant la 109, Firefox
   d'avant la 121 (la 120 connaît `lh` mais pas `:has()` — revue Codex du 23/09/2026). */
@supports (contain: inline-size) and (height: 1lh) and selector(:has(a)) {
  .social-comments-iso .comment-meta:has(> .comment-prediction) {
    flex-wrap: nowrap;
    contain: inline-size;
  }
  .social-comments-iso .comment-meta:has(> .comment-prediction) > * {
    flex-shrink: 0;
  }
  .social-comments-iso .comment-meta:has(> .comment-prediction) > .comment-author {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .social-comments-iso .comment-meta:has(> .comment-prediction) > .comment-time-wrap {
    flex-shrink: 100000;
    min-width: 0;
  }
  .social-comments-iso .comment-meta:has(> .comment-prediction) > .comment-time-wrap > .comment-time {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
}
/* UNE TAILLE EN DESSOUS SUR TÉLÉPHONE (Xavier, 23/09/2026, sur maquette) : 11 px au lieu de 12.
   Le pronostic regagne une dizaine de pixels, assez pour que « 3 min » tienne à côté d'un pseudo
   de dix lettres sur un iPhone de 390 px. */
@media (max-width: 640px) {
  .social-comments-iso .comment-prediction {
    font-size: 11px;
  }
}

/* L'HEURE « TOUT OU RIEN » — commune aux pages courses et au Direct (ce fichier est chargé sur les
   deux). comments.js et direct.js n'écrivent cette forme QUE sur une ligne à pronostic :
     <time class="comment-time comment-time--duo"><span class="comment-time-ilya">Il y a</span>
       <span class="comment-time-duree">9 h</span></time>
   Une boîte d'UNE ligne de haut, qui cache ce qui déborde, dans laquelle les morceaux passent à la
   ligne s'ils ne tiennent pas — donc disparaissent entiers, jamais coupés au milieu d'un mot :
   - `row-reverse` + `order` : dans l'ordre de pose, la durée vient AVANT « Il y a », c'est donc
     « Il y a » qui part à la ligne le premier ; `row-reverse` les remet dans le bon sens à l'écran.
     Le HTML garde l'ordre de lecture (« Il y a 9 h ») pour les lecteurs d'écran et le `title` ;
   - `::before` est un ESPACE DE LARGEUR NULLE posé en tête : il reste seul sur la première ligne
     quand même la durée ne tient pas — l'heure s'efface alors entière. Comme c'est du texte de la
     même police, c'est lui qui donne la ligne de pied de la boîte : l'heure reste alignée sur le
     pseudo dans les trois états, et la ligne ne change pas de hauteur ;
   - `justify-content: flex-end` (la gauche, en row-reverse) : le texte colle au badge, le blanc
     éventuel va vers le pronostic, qui est poussé à droite de toute façon.
   `height: 1lh` = UNE ligne, celle du contexte, sans toucher à l'interligne. Un `line-height: 1.3`
   fixé remontait l'heure d'un pixel sur la page course (le texte se collait en haut d'une boîte
   plus haute — mesuré au banc, 23/09/2026). MÊME condition que la ligne, plus haut : sans elle,
   rien de tout ça — les deux morceaux s'affichent à la suite, « Il y a 9 h », comme du texte
   ordinaire, dans une ligne qui se comporte comme avant. */
@supports (contain: inline-size) and (height: 1lh) and selector(:has(a)) {
  .comment-time.comment-time--duo {
    display: inline-flex;
    flex-flow: row-reverse wrap;
    justify-content: flex-end;
    align-items: baseline;
    align-content: flex-start;
    height: 1lh;
    overflow: hidden;
    min-width: 0;
  }
  .comment-time.comment-time--duo::before {
    content: "\200B";
    order: -2;
  }
  .comment-time--duo > .comment-time-duree {
    order: -1;
    white-space: nowrap;
  }
  .comment-time--duo > .comment-time-ilya {
    margin-right: 0.28em;
    white-space: nowrap;
  }
}
.social-comments-iso .comment-time {
  font-size: 13px;
  color: var(--gray-600);
  cursor: default;
}
.social-comments-iso .comment-time-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--palette-black);
  color: var(--color-text-inverse);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 10px 24px var(--palette-black-a22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
}
.social-comments-iso .comment-time-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: var(--palette-black) transparent transparent transparent;
}
.social-comments-iso .comment-time-wrap:hover .comment-time-tooltip {
  opacity: 1;
  visibility: visible;
}
.social-comments-iso .comment-text {
  font-size: 14px;
  color: var(--gray-900);
  line-height: 1.5;
  margin-bottom: 8px;
  white-space: normal;
}
.social-comments-iso .comment-text a {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}
.social-comments-iso .comment-text a:hover,
.social-comments-iso .comment-text a:focus-visible {
  color: var(--palette-green-900e);
}
.social-comments-iso .comment-sponsored {
  background: linear-gradient(180deg, var(--palette-yellow-50) 0%, var(--color-surface) 100%);
  border: 1px solid var(--palette-orange-200b);
  border-bottom: 1px solid var(--palette-orange-200b);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px var(--palette-blue-900-a5);
}
.social-comments-iso .comment-sponsored-pinned {
  position: relative;
}
.social-comments-iso .comment-sponsored-pinned::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--color-success);
}
.social-comments-iso .comment-avatar-site {
  background: var(--color-surface);
  border-color: var(--palette-orange-200b);
}
.social-comments-iso .comment-avatar-site img {
  object-fit: contain;
  padding: 10px;
  background: var(--color-surface);
}
.social-comments-iso .comment-sponsored-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--palette-yellow-150b);
  color: var(--palette-orange-800b);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.social-comments-iso .comment-sponsored-text {
  margin-bottom: 4px;
}
.social-comments-iso .comment-sponsored-link-row,
.social-comments-iso .comment-sponsored-more-row {
  margin-top: 6px;
}
.social-comments-iso .comment-sponsored-link-row a,
.social-comments-iso .comment-sponsored-more-row a {
  color: var(--blue-primary);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}
.social-comments-iso .comment-sponsored-link-row a:hover,
.social-comments-iso .comment-sponsored-more-row a:hover {
  text-decoration: underline;
}
/* La pub entre les commentaires (17/11/2026) : la place [data-inline-comment-ad] reste vide et sans hauteur tant que
   comments.js n'y a pas posé le code de l'appareil ; la marge est donc portée par le cadre, qui n'existe qu'une fois
   la pub posée (et dans les places d'un fragment d'avant ce changement, où il est écrit directement). Une image plus
   large que la colonne est réduite à sa largeur, proportions gardées ; un cadre de régie l'est par comments.js
   (ajusterLargeurPub), depuis le coin haut gauche. */
.social-comments-iso .comment-inline-ad-inner {
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--palette-blue-900-a8b);
  background: var(--color-surface);
  box-shadow: 0 10px 28px var(--palette-blue-900-a6);
}
.social-comments-iso .comment-inline-ad-inner img {
  max-width: 100%;
  height: auto;
}
.social-comments-iso .comment-inline-ad-contenu {
  display: flow-root; /* tient les éléments flottants d'une pub : sa hauteur est mesurée par comments.js */
  transform-origin: 0 0;
}
.social-comments-iso .comment-mention {
  color: var(--blue-primary);
  font-style: italic;
  font-weight: 400;
}
.social-comments-iso .comment-text-full[hidden] {
  display: none !important;
}
.social-comments-iso .comment-more-ellipsis {
  color: inherit;
}
.social-comments-iso .comment-more-link {
  display: inline;
  padding: 0;
  margin: 0 0 0 4px;
  border: none;
  background: transparent;
  color: var(--palette-red-700e);
  font-size: inherit;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.social-comments-iso .comment-more-link:hover {
  text-decoration: underline;
}
.social-comments-iso .comment-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2px;
}
.social-comments-iso .comment-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 400;
  font-family: inherit;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}
.social-comments-iso a.comment-btn {
  text-decoration: none;
}
.social-comments-iso .comment-btn:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}
.social-comments-iso .comment-btn.liked {
  color: var(--blue-primary);
}
.social-comments-iso .comment-btn-icon {
  font-size: 13px;
}
.social-comments-iso .comment-mod-icons {
  display: inline-flex;
  gap: 10px; /* assez d'écart pour ne pas cliquer sur la voisine */
  margin-left: 4px;
}
.social-comments-iso .comment-btn-mod {
  color: var(--palette-red-600n) !important;
  font-size: 12px;
  padding: 2px 4px;
}
.social-comments-iso .comment-btn-mod:hover {
  background: var(--palette-red-600-a10);
  border-radius: 4px;
}
.social-comments-iso .comment-device {
  font-size: 12px;
  opacity: 0.6;
  margin-left: 4px;
  cursor: default;
}
/* « App TURF FR » : le logo de l'app à la place de l'émoji (social_device_html, comments.js — 16/11/2026). */
.social-comments-iso .comment-device--app img {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
}
.social-comments-iso .comment.is-moderated,
.social-comments-iso .reply.is-moderated {
  opacity: 0.4;
  pointer-events: none;
}
.social-comments-iso .comment-reply-form {
  margin-top: 12px;
  padding: 12px 0 0;
}
.social-comments-iso .comment-reply-form[hidden] {
  display: none !important;
}
/* « MODIFIER » À LA PLACE DU TEXTE (Xavier, 10/11/2026 : « OK vas-y, A ») — comme sur Le Direct et sur Facebook.
   comments.js pose le formulaire juste avant le texte du message (placerEditionSurPlace) ; tant qu'il est ouvert,
   le texte et la rangée d'actions s'effacent : plus de texte en double. `:has()` suit d'office chaque façon de le
   fermer (Annuler, Échap, enregistrement, un autre formulaire ouvert). Sans 2e photo ni « CHARTE » : la photo est
   déjà à gauche du message ; la case commence là où commençait le texte. Restent « Être averti par mail d'une
   réponse », le 😊, « Annuler » et « Enregistrer ». */
.social-comments-iso .comment-body:has(> [data-edit-form].is-open:not([hidden])) > .comment-text,
.social-comments-iso .comment-body:has(> [data-edit-form].is-open:not([hidden])) > .comment-footer {
  display: none;
}
.social-comments-iso .comment-body > .comment-reply-form[data-edit-form] {
  margin-top: 6px;
  padding-top: 0;
}
.social-comments-iso .comment-body > .comment-reply-form[data-edit-form] .comment-reply-shell {
  padding: 0;
  border: 0;
  background: none;
}
.social-comments-iso .comment-body > .comment-reply-form[data-edit-form] .comment-reply-side {
  display: none;
}
.social-comments-iso .comment-reply-shell {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--gray-300);
  background: var(--color-surface);
}
.social-comments-iso .comment-reply-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 74px;
}
.social-comments-iso .comment-reply-main {
  flex: 1;
  min-width: 0;
}
.social-comments-iso .comment-reply-textarea {
  width: 100%;
  min-height: 96px;
  max-height: 240px; /* grandit avec le texte, cf. .comment-textarea */
  padding: 12px 14px;
  border: 2px solid var(--palette-blue-300c);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.social-comments-iso .comment-reply-textarea:focus {
  outline: none;
  border-color: var(--palette-blue-400h);
  box-shadow: 0 0 0 3px var(--palette-blue-400-a12);
}
.social-comments-iso .comment-reply-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.social-comments-iso .comment-reply-cancel {
  padding: 10px 18px;
  border: 1px solid var(--palette-gray-200c);
  border-radius: var(--radius-sm);
  background: linear-gradient(var(--color-surface), var(--palette-gray-150c));
  color: var(--palette-gray-700b);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.social-comments-iso .comment-reply-cancel:hover {
  background: linear-gradient(var(--color-surface), var(--palette-gray-150d));
}
.social-comments-iso .replies {
  position: relative;
  margin-left: 2px;
  margin-top: 6px;
  margin-bottom: -2px;
  padding-left: 10px;
}
.social-comments-iso .replies::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 14px;
  border-left: 1px dotted var(--palette-gray-200d);
}
.social-comments-iso .reply {
  scroll-margin-top: 88px;
  padding: 5px 0 5px;
  border-bottom: 0;
}
.social-comments-iso .reply:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.social-comments-iso .comment-avatar-reply {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.social-comments-iso .replies-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
}
.social-comments-iso .replies-more:disabled {
  opacity: .7;
  cursor: default;
}
.social-comments-iso .replies-more-caret {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--palette-gray-400b);
}
.social-comments-iso .reply-more-row {
  padding-top: 2px;
}
/* ⚠️ L'ANIMATION D'ARRIVÉE NE LAISSE RIEN DERRIÈRE ELLE (Xavier 16/11/2026, captures de la course R1C1 de
   Vincennes : la bulle des badges de kalou59660 passait SOUS la réponse de Titi69, celle de Comta60 sous fr51).
   Avant, l'animation finissait en `forwards` sur un style de départ opacity 0 / translateY : sa dernière image
   (transform: translateY(0)) restait collée À VIE sur chaque réponse chargée par « Afficher N autres réponses ».
   Un transform, même nul, fait de la réponse une couche à part : la bulle (.pb-panneau, z-index 60) restait
   enfermée dans la couche de SA réponse, et la réponse suivante, couche elle aussi, se peignait par-dessus.
   `backwards` montre l'image de départ pendant le délai (animation-delay posé par comments.js), puis rend la
   main au style normal une fois l'animation finie : opacity 1, transform none, plus de contexte d'empilement
   créé par cette animation (les autres restent : l'isolation des cartes du Direct, voir direct-epure.css).
   À l'œil, rien ne change : la dernière image a la même position et la même opacité que le style normal —
   seul l'empilement diffère, translateY(0) n'étant pas none.
   ⛔ Ne pas remettre `forwards` ni un opacity / transform fixe sur cette classe (même chose pour
   .comment-thread-enter plus bas). */
.social-comments-iso .reply-enter {
  animation: socialReplyEnter .28s ease backwards;
}
@keyframes socialReplyEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.social-comments-iso .social-login-cta {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* LES DEUX BOUTONS RESTENT ENSEMBLE. Sans ce conteneur ils deviendraient deux
   enfants du flex, que `justify-content: space-between` enverrait chacun à un
   bout du rectangle — la phrase au milieu, un bouton à gauche, un à droite.
   Sur téléphone ils passent l'un sous l'autre, en pleine largeur : deux cibles
   côte à côte dans 340 px, on tape sur la mauvaise. */
.social-comments-iso .social-login-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 559px) {
  .social-comments-iso .social-login-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .social-comments-iso .social-login-cta-actions .btn { width: 100%; }
}
.social-comments-iso .social-empty-state {
  margin-top: 12px;
  padding: 14px 0 0;
  color: var(--gray-700);
}
.social-comments-iso .social-empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-900);
}
.social-comments-iso .social-empty-state p {
  margin: 0;
}
.social-comments-iso .social-filter-empty {
  padding: 14px 0 0;
  color: var(--gray-700);
}
.social-comments-iso .social-filter-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-900);
}
.social-comments-iso .social-filter-empty p {
  margin: 0;
}
.social-comments-iso .social-feed-nav {
  margin-top: 18px;
}
.social-comments-iso.is-infinite-ready .social-feed-nav {
  display: none;
}
.social-comments-iso .social-feed-loading {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--palette-gray-600d);
  opacity: 0.9;
  animation: socialFeedPulse 1.1s ease-in-out infinite;
}
.social-comments-iso .social-feed-sentinel {
  width: 100%;
  height: 1px;
}
.social-comments-iso .social-feed-batch-marker {
  margin: 16px 0 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--palette-green-100j);
  border: 1px solid var(--palette-green-200h);
  color: var(--palette-green-800w);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.social-comments-iso .social-feed-batch-marker.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Même règle que .reply-enter (voir plus haut, 16/11/2026) : `backwards`, jamais `forwards` — les messages chargés
   en descendant gardaient sinon leur transform à vie, et la bulle des badges de leur dernière réponse passait sous
   le message suivant. */
.social-comments-iso .comment-thread-enter {
  animation: socialCommentEnter 360ms ease backwards;
}
@keyframes socialCommentEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes socialFeedPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
.social-bookmakers-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}
.social-bookmakers-main {
  min-width: 0;
}
.social-bookmakers-side {
  min-width: 0;
}
.social-bookmakers-layout .social-comments-iso {
  max-width: none;
  margin: 0;
}
.social-bookmakers-layout .social-bookmakers-side > .card {
  margin: 0;
}
@media (max-width: 768px) {
  .social-comments-iso .comments-header {
    grid-template-columns: 1fr;
  }
  .social-comments-iso .search-box {
    max-width: 100%;
    margin: 0;
  }
  .social-comments-iso .new-comment-wrapper {
    gap: 12px;
  }
  .social-comments-iso .replies {
    margin-left: 0;
    padding-left: 9px;
  }
  .social-comments-iso .comment-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .social-comments-iso .comment-reply-shell {
    gap: 12px;
  }
  .social-comments-iso .comment-reply-actions {
    align-items: flex-start;
  }
}
@media (min-width: 1200px) {
  /* CINQUIÈME COLONNE DE DROITE DU SITE, alignée le 31/08/2026 sur les quatre
     autres : 300 px (et non 320) et collée à 100 px du haut (et non 96).
     Les 100 px = 92 px de barre bookmaker collante + 8 px d'air, la valeur
     unique du site (--rail-pinned-top dans layout.css). Cette colonne, à côté
     des commentaires du quinté et des pages course, était restée à l'écart des
     deux refontes — elle porte maintenant la même carte « Parier en ligne »
     que les autres, donc la même géométrie. */
  .social-bookmakers-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }
  .social-bookmakers-side {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}
/* ÉCRAN TROP COURT : la colonne reprend sa place dans le flux, comme la zone
   épinglée des quatre autres (layout.css, @media (max-height: 735px)) — un
   bouton « Parier » inatteignable serait pire qu'une colonne qui défile.
   Devenu nécessaire le 06/11/2026 : la carte « Parier en ligne » reprend les
   trois blocs du header (partials/blocks/parier-en-ligne.php) et fait 409 px
   ici avec la mention d'affiliation (367 sans). Mesuré (Chrome, 1360 de large) :
     - sans pub : 409 px → il faut 100 + 409 + 16 = 525 px de haut → seuil 540 ;
     - avec la pub « à côté des commentaires » (300×250 dans sa carte, 280 px) :
       689 px → il faut 805 px → seuil 810. Sans ce seuil, sur un portable
       1366×768 (~650 px utiles), Genybet et « Comparer les bookmakers » restaient
       sous le bord de l'écran pendant toute la lecture du fil (audit Codex).
   Puis les logos dans un même cadre de 130 × 36 px (Xavier, même jour) : +36 px.
   Puis, le 07/11/2026, les books en cartes séparées (Xavier, choix A) : mesuré
   479 px sans pub (il faut 100 + 479 + 16 = 595 px → seuil 600) et 759 px avec
   (il faut 875 px → seuil 880).
   :has() : un navigateur qui ne le connaît pas garde la colonne collée, comme
   avant (seul le seuil de 600 px s'applique). */
@media (min-width: 1200px) and (max-height: 600px) {
  .social-bookmakers-side {
    position: static;
  }
}
@media (min-width: 1200px) and (max-height: 880px) {
  .social-bookmakers-side:has(.course-comments-sidebar-ad) {
    position: static;
  }
}
@media (max-width: 640px) {
  .social-comments-iso {
    padding: 14px;
  }
  .social-comments-iso .comments-header {
    margin: -14px -14px 16px;
    padding: 12px 14px;
  }
  .social-comments-iso .comment-avatar {
    width: 52px;
    height: 52px;
  }
  .social-comments-iso .comment-avatar-stack {
    min-width: 52px;
  }
  .social-comments-iso .comment-avatar-reply {
    width: 36px;
    height: 36px;
  }
  .social-comments-iso .comment-rank-badge {
    min-width: 38px;
    padding: 3px 8px;
    font-size: 11px;
    margin-top: -4px;
  }
  .social-comments-iso .new-comment-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .social-comments-iso .new-comment-form {
    width: 100%;
  }
  .social-comments-iso .btn-comment-wrapper {
    align-self: flex-end;
    justify-content: flex-end;
    margin-left: auto;
  }
  .social-comments-iso .replies {
    margin-left: 0;
    padding-left: 8px;
  }
  .social-comments-iso .comment-reply-shell {
    flex-direction: column;
  }
  .social-comments-iso .comment-reply-side {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  .social-comments-iso .comment-reply-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive override (extracted from course media query) */
@media (max-width: 768px) {
  .social-comments-section {
    margin-top: 24px;
  }
}

/* SUR TÉLÉPHONE (≤ 979 px, le « mobile » du site), les zones de saisie :
   - passent à 16 px : en dessous, Safari iPhone zoome toute la page au focus
     du champ et elle « bouge sous le pouce » (même parade que le Direct et la
     messagerie ; l'ordinateur garde ses 15 px) ;
   - plafonnent plus bas : le clavier prend déjà la moitié de l'écran.
   Mêmes sélecteurs que plus haut, plus bas dans la même couche : ça gagne
   sans !important. */
@media (max-width: 979px) {
  .social-comments-iso .comment-textarea,
  .social-comments-iso .comment-reply-textarea {
    font-size: 16px;
    max-height: 160px;
  }
}

/* ── LES DEUX LIBELLÉS DE LA ZONE DE SAISIE DU HAUT ──────────────────────
   Le balisage (comment-composer.php, comments.js) pose les DEUX versions de
   chaque libellé ; l'ordinateur n'affiche que la longue. Le téléphone échange
   plus bas. Les deux sont aria-hidden : le nom accessible vient de
   l'aria-label du contrôle, donc échanger l'affichage ne le change jamais. */
.social-comments-iso .notify-label-court,
.social-comments-iso .concours-label-court {
  display: none;
}

/* ── TÉLÉPHONE (≤ 640 px) : LA ZONE DE SAISIE DU HAUT EN DEUX LIGNES ──────
   AVANT (18/09/2026) : l'avatar 52 px et CHARTE passaient AU-DESSUS du champ,
   puis « Être averti », puis le pronostic, puis emoji + Publier — chacun sur
   sa ligne. Environ 330 px avalés avant le premier commentaire : on arrivait
   sur la page course et on ne voyait AUCUN message.
   MAINTENANT : avatar à gauche (44 px, « Charte » en 10 px dessous), champ à
   droite, et tout le reste sur UNE ligne dessous, tirée sur toute la largeur.
   La marge négative de 56 px (44 d'avatar + 12 de gouttière) rattrape la
   colonne de l'avatar : sans elle, il manque ces 56 px et « Publier » sort du
   cadre.
   Ces règles sont PLUS BAS que le bloc 640 px d'origine et PLUS SPÉCIFIQUES
   (.new-comment) : elles gagnent sans !important, et les formulaires de
   réponse — même feuille, mêmes classes — ne bougent pas d'un pixel.
   LE DIRECT EST EXCLU, et ce n'est pas une précaution de principe : son fil et
   sa bannière de pied portent EUX AUSSI .social-comments-iso (feed.php) avec
   un .new-comment dedans, et son composer a son propre dessin « façon
   Facebook ». Sans les deux :not(), la ligne d'options du Direct partait
   56 px sur la gauche. Même parade que comments.js, qui exclut .direct-page. */
@media (max-width: 640px) {
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .new-comment-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .new-comment-avatar-wrapper {
    flex: 0 0 44px;
    width: 44px;
    gap: 3px;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .comment-avatar {
    width: 44px;
    height: 44px;
    border-width: 2px;
    font-size: 15px;
  }
  /* Sans photo, le liseré reste fin (28/10/2026). */
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .comment-avatar:not(:has(img)) {
    border-width: 1px;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .avatar-link {
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .comment-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-left: -56px;
  }
  /* Le panneau du concours suit la même largeur que la ligne d'options ; sans
     width:auto il garderait le width:100% de concours.css, calculé sur la
     colonne de droite, et s'arrêterait 56 px avant le bord. */
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .concours-composer-inline {
    margin-left: -56px;
    width: auto;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .btn-comment-wrapper {
    align-self: center;
    margin-left: auto;
    gap: 10px;
  }
  /* Les quatre valeurs qui font tenir la ligne sur un téléphone de 360 px
     (Android courant) : à 12 px de texte et 24 px de fond de bouton, elle se
     cassait en deux — vu au banc Chrome, pas en relecture. */
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .btn-comment {
    padding: 8px 16px;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .notify-checkbox {
    font-size: 11px;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .notify-label-long {
    display: none;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .notify-label-court {
    display: inline;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .concours-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .concours-label-long {
    display: none;
  }
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .concours-label-court {
    display: inline;
  }
  /* Pronostic DÉJÀ posé : pastille verte autour du cheval. C'est elle qui
     porte l'information que le ✅ portait avant — le cheval, lui, ne bouge
     plus. Le panneau est le frère PRÉCÉDENT de la ligne d'options dans le
     balisage (et reste dans le DOM même replié, d'où le « ~ » qui marche). */
  .social-comments-iso:not(.direct-fil):not(.direct-banniere-pied) .new-comment .concours-composer-inline[data-has-prediction="1"] ~ .comment-actions .concours-toggle-btn {
    padding: 3px 9px;
    border: 1px solid var(--palette-green-200g);
    border-radius: 999px;
    background: var(--palette-green-100i);
  }
}
}

/* Bouton emoji une taille en dessous dans les commentaires uniquement.
 * Le composant partagé (emoji-picker.css) vit en @layer components, qui
 * l'emporte sur legacy : l'override doit donc passer par une couche
 * postérieure (modules), scopé au module pour ne pas toucher la messagerie. */
@layer modules {
  .social-comments-iso .emoji-btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}
