  /* =========================================================
     JEU DES DIFFÉRENCES — CSS "classique"
     Toutes les classes sont préfixées "diff-game__" pour
     éviter les conflits avec le reste de votre site.
     ========================================================= */

  .diff-game {
    --diff-radius: 16px;
    --diff-red: #e6332a;
    --diff-green: #2fae4e;
    --diff-text: #1f2430;
    --diff-muted: #6b7280;
    --diff-bg-card: #f4f5f7;
    max-width: 960px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--diff-text);
    box-sizing: border-box;
  }
  .diff-game * { box-sizing: border-box; }

  /* --- Compteur "Défi x / n" --- */
  .diff-game__progress {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--diff-muted);
    margin-bottom: 12px;
  }

  /* --- Rangée des 2 images --- */
  .diff-game__images {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .diff-game__image-wrap {
    position: relative;
    flex: 1 1 280px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--diff-radius);
    background: #ddd;
  }
  .diff-game__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
  }

  /* --- Zone cliquable invisible (en %) --- */
  .diff-game__hotspot {
    position: absolute;
    /* left/top/width/height posés en JS, en % */
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: auto;
    -webkit-tap-highlight-color: transparent;
  }
  .diff-game__hotspot:disabled { cursor: default; }
  /* léger halo au survol / focus, pratique en phase de debug :
     à commenter si vous ne voulez aucun indice visuel */
  .diff-game__hotspot:not(:disabled):hover,
  .diff-game__hotspot:not(:disabled):focus-visible {
    /*background: rgba(255, 255, 255, .12);
    outline: 2px dashed rgba(255, 255, 255, .6);
    outline-offset: 2px;*/
  }

  /* --- Anneau vert qui entoure la différence, au clic ---
     taille/position posées en JS (en px, centrées sur le centre
     de la hotspot) pour rester parfaitement circulaire quel que
     soit le ratio de l'image. --- */
  .diff-game__ring {
    position: absolute;
    border-radius: 50%;
    border: 6px solid var(--diff-green);
    background: transparent;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
  }
  .diff-game__ring.is-visible {
    /* fill-mode "both" : applique l'état du 1er keyframe pendant le délai
       (évite tout clignotement au démarrage) ET garde l'état final après
       la fin de l'animation (évite toute disparition) */
    animation: diffRingPop .6s cubic-bezier(.34, 1.56, .64, 1) both;
  }
  @keyframes diffRingPop {
    0%   { opacity: 0; transform: scale(0); }
    60%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
  }

  /* --- Pastille "coche" qui apparaît au clic, en chevauchement
     de l'anneau (comme sur la maquette) --- */
  .diff-game__badge {
    position: absolute;
    /* left/top posés en JS (centre de la hotspot), en % */
    /* width/height/margin posés en JS (en px) */
    border-radius: 50%;
    background: var(--diff-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
  }
  .diff-game__badge svg { width: 55%; height: 55%; }
  .diff-game__badge.is-visible {
    /* même animation que le grand anneau, avec juste un léger décalage
       pour un effet "en deux temps" (voir remarque fill-mode ci-dessus) */
    animation: diffRingPop .6s cubic-bezier(.34, 1.56, .64, 1) .12s both;
  }

  /* --- Indice avant découverte --- */
  .diff-game__hint {
    text-align: center;
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--diff-muted);
  }

  /* --- Bloc d'explication (apparaît après le clic) --- */
  .diff-game__panel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 18px 20px;
    background: var(--diff-bg-card);
    border-radius: var(--diff-radius);
    opacity: 0;
    transform: translateY(14px);
    flex-direction: row;
    flex-wrap: wrap;
  }
  .diff-game__panel--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .4s ease, transform .4s ease;
  }
  /*.diff-game__panel-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--diff-red);
    border: 2px solid var(--diff-red);
    text-align: center;
    line-height: 1.1;
  }*/
  .diff-game__panel-text { flex: 1 1 auto; min-width: 0; text-align: left;}
  .diff-game__panel-kicker {
    margin: 0 0 2px;
    font-size: 14px;
    color: var(--diff-text);
  }
  .diff-game__panel-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--diff-red);
  }
  .diff-game__panel-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--diff-muted);
    flex: 0 0 100%;
    flex-wrap: wrap;
    display: flex;
    text-align: left;
  }
  .diff-game__next {
    flex: 0 0 auto;
    border: none;
    background: var(--diff-red);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease, background .15s ease;
  }
  .diff-game__next:hover { background: #c72a22; }
  .diff-game__next:active { transform: scale(.96); }

  /* --- Écran de fin --- */
  .diff-game__completion {
    text-align: center;
    padding: 40px 20px;
    background: var(--diff-bg-card);
    border-radius: var(--diff-radius);
  }
  .diff-game__completion h3 { margin: 0 0 8px; font-size: 20px; }
  .diff-game__completion p { margin: 0 0 18px; color: var(--diff-muted); }
  .diff-game__replay {
    border: none;
    background: var(--diff-red);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
  }

  /* --- Responsive --- */
  @media (max-width: 640px) {
    .diff-game__images { flex-direction: column; }
    .diff-game__image-wrap { aspect-ratio: 4 / 3; flex: 1 1 auto; }
  }
  @media (max-width: 520px) {
    /*.diff-game__panel { flex-direction: column; align-items: flex-start; text-align: left; }*/
    .diff-game__next { width: 100%; justify-content: center; }
  }


.indice-container{
  max-width: 580px;
  margin: 0 auto;
  background: var(--diff-bg-card);
  border-radius: 24px;
  padding: 12px 40px;
  text-align: center;
}

.indice-title{
  margin-bottom: 6px;
}
.indice-title label{
  font-family: Poppins;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 100%;
  gap: 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--diff-text);
}
.indice-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
  margin-right: -15px;
}

#indice{
    font-family: Poppins;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    color: var(--diff-muted);
}
/* la partie fixe "ON EST LÀ." doit être injectée dans un <strong>
   (ou toute balise avec la classe ci-dessous) pour ressortir en rouge gras */
#indice strong,
#indice .indice-highlight{
    font-family: Poppins;
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: uppercase;
    color: var(--diff-red);
}

/* =========================================================

Gestion du panel de la réponse associé à la différence 

========================================================= */
.diff-game__panel{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon text"
    "desc desc"
    "button button";
  column-gap: 16px;
  row-gap: 10px;
  align-items: start;
  margin-top: 16px;
  padding: 20px;
  background: var(--diff-bg-card);
  border-radius: var(--diff-radius);
  opacity: 0;
  transform: translateY(14px);
}
.diff-game__panel--visible{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease;
}

.diff-game__panel-icon{
  grid-area: icon;
  width: 52px;
  height: 52px;
  /*border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);*/
  display: flex;
  align-items: center;
  justify-content: center;
}
.diff-game__panel-icon svg,
.diff-game__panel-icon img{ width: 100%; height: auto; display: block; }

.diff-game__panel-text{ grid-area: text; min-width: 0; align-self: center; }
.diff-game__panel-kicker{ margin: 0 0 2px; font-size: 14px; color: var(--diff-text); }
.diff-game__panel-title{ margin: 0; font-size: 17px; font-weight: 700; color: var(--diff-red); }

.diff-game__panel-desc{
  grid-area: desc;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--diff-muted);
}

.diff-game__next{
  grid-area: button;
  justify-self: stretch;
  border: none;
  background: var(--diff-red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, background .15s ease;
}
.diff-game__next:hover{ background: #c72a22; }
.diff-game__next:active{ transform: scale(.96); }

/* ≥ 640px : icône / texte / bouton sur une ligne,
   description sur toute la largeur en dessous */
@media (min-width: 640px){
  .diff-game__panel{
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon text button"
      "desc desc desc";
    align-items: center;
    padding: 18px 24px;
  }
  .diff-game__next{
    justify-self: end;
    width: auto;
  }
}


.diff-game__panel-kicker{
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -2%;
    vertical-align: middle;
}


.diff-game__panel-title{
    font-family: Poppins;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: -2%;
    vertical-align: middle;
}

.diff-game__panel-desc {
    font-family: Poppins;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -2%;
    vertical-align: middle;
}

@media (min-width: 640px) {
    .diff-game__panel-desc {
        max-width: 85%;   
    }
}

#nextBtn.diff-game__next {
    font-family: Poppins;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.4px;
    text-align: center;
    vertical-align: middle;
}

#nextBtn.diff-game__next img {
    width: 24px;
}
