:root {
  color-scheme: dark;
--hue:240;
  --bg: hsl(var(--hue), 12%,12%);
  --lbg: hsl(var(--hue), 12%, 6%);
--panel: hsl(var(--hue), 12%, 20%);
--item: hsl(var(--hue), 12%, 20%);
--item-alt:hsl(var(--hue), 12%, 16%);

   --border-subtle: hsl(var(--hue), 15%,12%);
  --border-strong: hsl(var(--hue), 15%, 17%);
  
  
  --std-radius:0.3em;
  --std-border: 0.35em;
  --text:hsl(var(--hue), 5%, 85%);
  --dim: hsl(var(--hue), 5%, 75%);
  --muted: hsl(var(--hue),5%, 65%);

  --blue: hsl(218, 60%, 70%);
  --purple:hsl(269, 60%, 70%);
  --green:  hsl(111, 60%, 70%);
  --yellow :  hsl(54, 60%, 70%);
  --orange:  hsl(31, 60%, 70%);
  --red:  hsl(0, 60%, 70%);

   --dark-blue: hsl(200, 50%, 60%);
  --dark-green: hsl(132, 50%,60%);
  --dark-yellow: hsl(54, 50%, 60%);
  --dark-orange: hsl(32, 50%, 60%);
  --dark-red: hsl(0, 50%, 60%);
  --dark-purple:hsl(282, 50%, 60%);
  
    --vdark-blue: hsl(218, 70%, 15%);
  --vdark-green: hsl(132, 70%, 15%);
  --vdark-yellow: hsl(54, 70%, 15%);
  --vdark-orange: hsl(32, 70%, 15%);
  --vdark-red: hsl(0, 70%, 15%);
    --vdark-purple:hsl(282, 70%, 15%);

  --diff-0: hsl(190,50%, 60%); /* vert doux */
  --diff-1: hsl(125, 40%, 60%);
  --diff-2: hsl(68, 40%, 60%);
  --diff-3: hsl(42, 40%, 60%);
  --diff-4: hsl(340, 40%, 60%);
  --diff-5: hsl(250, 40%, 75%); /* violet grisé */

  --diff-dark-0: hsl(170, 25%, 15%); /* vert doux */
  --diff-dark-1: hsl(132, 25%, 15%);
  --diff-dark-2: hsl(64, 25%, 15%);
  --diff-dark-3: hsl(32, 25%, 15%);
  --diff-dark-4: hsl(0, 25%, 15%);
  --diff-dark-5: hsl(268, 25%, 15%); /* violet grisé */
  
    --diff-vdark-0: hsl(230, 20%,24%); /* vert doux */
  --diff-vdark-1: hsl(100, 20%, 18%);
  --diff-vdark-2: hsl(48, 30%, 20%);
  --diff-vdark-3: hsl(24, 30%, 20%);
  --diff-vdark-4: hsl(0, 30%, 18%);
  --diff-vdark-5: hsl(310, 30%, 18%); /* violet grisé */
}

:root[data-theme="light"] {
  color-scheme: light;
  --hue:240;
  --bg: hsl(var(--hue), 12%, 88%);
  --lbg: hsl(var(--hue), 12%, 94%);

  --panel: hsl(var(--hue), 12%, 96%);
  --item: hsl(var(--hue), 12%, 86%);
  --item-alt: hsl(var(--hue), 12%, 82%);

  --border-subtle: hsl(var(--hue), 18%, 86%);
  --border-strong: hsl(var(--hue), 18%, 78%);

  --text: hsl(var(--hue), 5%, 20%);
  --dim: hsl(var(--hue),5%, 30%);
  --muted: hsl(var(--hue), 5%, 40%);

  --std-radius: 0.3em;
  --std-border: 0.35em;

  /* accents principaux */

  --blue: hsl(218, 75%, 30%);
  --purple: hsl(268, 75%, 30%);
  --green: hsl(132, 60%, 30%);
  --yellow: hsl(48, 65%, 30%);
  --orange: hsl(28, 75%, 30%);
  --red: hsl(0, 75%,30%);

  /* variantes dark */
  --dark-blue: hsl(218, 70%, 50%);
  --dark-green: hsl(132, 70%, 40%);
  --dark-yellow: hsl(54, 70%, 50%);
  --dark-orange: hsl(32, 70%, 50%);
  --dark-red: hsl(0, 70%, 50%);
  --dark-purple: hsl(282, 70%, 50%);

  /* variantes vdark */

  --vdark-blue: hsl(218, 60%, 80%);
  --vdark-green: hsl(132, 60%, 80%);
  --vdark-yellow: hsl(54, 60%, 80%);
  --vdark-orange: hsl(32, 60%, 80%);
  --vdark-red: hsl(0, 60%, 80%);
  --vdark-purple: hsl(282, 60%, 80%);



    --diff-0: hsl(210,70%, 40%); /* vert doux */
  --diff-1: hsl(125, 60%, 40%);
  --diff-2: hsl(32, 60%, 45%);
  --diff-3: hsl(12, 80%, 48%);
  --diff-4: hsl(320, 80%, 40%);
  --diff-5: hsl(260, 80%, 40%); /* violet grisé */

  --diff-dark-0: hsl(210, 25%, 15%); /* vert doux */
  --diff-dark-1: hsl(132, 25%, 15%);
  --diff-dark-2: hsl(64, 25%, 15%);
  --diff-dark-3: hsl(32, 25%, 15%);
  --diff-dark-4: hsl(0, 25%, 15%);
  --diff-dark-5: hsl(268, 25%, 15%); /* violet grisé */
  
    --diff-vdark-0: hsl(190, 25%,80%); /* vert doux */
  --diff-vdark-1: hsl(100, 30%, 80%);
  --diff-vdark-2: hsl(48, 35%, 80%);
  --diff-vdark-3: hsl(32, 30%, 80%);
  --diff-vdark-4: hsl(0, 35%, 80%);
  --diff-vdark-5: hsl(280, 30%, 80%); /* violet grisé */
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Permet d'afficher un texte de secours le temps du chargement */
}

/* Declaration de la version Bold (grasse) */
@font-face {
  font-family: 'Space Grotesk';
  src:  url('/static/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src:  url('/static/fonts/SpaceGrotesk-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@keyframes buttonBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scaleY(1.1) scaleX(0.95) translateY(-5px); }
  50% { transform: scale(1) translateY(0); }
  75% { transform: scaleY(1.03) translateY(-2px); }
}



@keyframes victoryPop {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  70% { transform: scale(0.9) translateY(-4px); }
  100% { transform: scale(1) translateY(0); }
}

html, body{
  min-height:100%
}

html {
  color-scheme: light dark;
  font-size:17px;
  font-size: clamp(16px, calc(12px + 1.8vw), 22px);
  line-height:1.4;
}
a{
  text-decoration: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

#app{
         width: min(95vw, max(512px,30%));
   padding: 0px;
}

#results{
         width: min(95vw, max(512px,30%));
   padding: 0px;
}

body {
font-family:space grotesk, sans-serif;
  background-color: var(--bg);
  background:
radial-gradient(
    circle at bottom,
   var(--lbg) ,
    var(--bg) 50%
);
  color: var(--text);
  display: flex;
  text-align:center;

  justify-content: center;
}

.game {
  display: grid;
  
  gap: 12px;
}

.board {
  display: grid;
  gap: 3%;
  border-radius:var(--std-radius);
  padding: 0%;
  border:0px solid var(--muted);
  margin-top:0%;
  margin-bottom:0%;
}

@media (min-width: 250px) {
  .board {
    grid-template-columns: 1fr 1fr;
  }
}

.top-bar {
  background:radial-gradient(circle at top, var(--diff-vdark-color) 0%, var(--diff-vdark-color) 70%);
  color:var(--dim);
  padding-top: 0%;
  padding-bottom:0%;
  padding-right:4%;
  padding-left:4%;
  text-align:center;
  border-radius:  var(--std-radius);
}

.game[data-diff="0"] { --diff-dark-color: var(--diff-dark-0); }
.game[data-diff="1"] { --diff-dark-color: var(--diff-dark-1); }
.game[data-diff="2"] { --diff-dark-color: var(--diff-dark-2); }
.game[data-diff="3"] { --diff-dark-color: var(--diff-dark-3); }
.game[data-diff="4"] { --diff-dark-color: var(--diff-dark-4); }
.game[data-diff="5"] { --diff-dark-color: var(--diff-dark-5); }

.game[data-diff="0"] { --diff-color: var(--diff-0); }
.game[data-diff="1"] { --diff-color: var(--diff-1); }
.game[data-diff="2"] { --diff-color: var(--diff-2); }
.game[data-diff="3"] { --diff-color: var(--diff-3); }
.game[data-diff="4"] { --diff-color: var(--diff-4); }
.game[data-diff="5"] { --diff-color: var(--diff-5); }

.game[data-diff="0"] { --diff-vdark-color: var(--diff-vdark-0); }
.game[data-diff="1"] { --diff-vdark-color: var(--diff-vdark-1); }
.game[data-diff="2"] { --diff-vdark-color: var(--diff-vdark-2); }
.game[data-diff="3"] { --diff-vdark-color: var(--diff-vdark-3); }
.game[data-diff="4"] { --diff-vdark-color: var(--diff-vdark-4); }
.game[data-diff="5"] { --diff-vdark-color: var(--diff-vdark-5); }


.dot{
  font-size:1em;
  font-weight:1000;
  color:var(--diff-color);
}

.word {
  font-size: 1.5em;
  font-weight: bold;
  text-align:center;
  color:var(--text);
background: var(--bg);
  border-radius: var(--std-radius);
  padding-top:.5%;
  padding-bottom:.5%;
  text-transform: uppercase;
}


.round{
  margin-bottom:0px;
  margin-top:4px;
  font-weight:100;
}


.themas{
  margin-top: -0.6em;
  margin-bottom: .0em;
  font-size: 0.5em;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-weight: 100;
}


.panel {
  background: var(--panel);
  padding:2%;
  border-radius: var(--std-radius);
}

.guesses{

}

.props{

}

.panel-title {
  color: var(--panel);
  font-size: 1em;
  font-weight: 100;
  margin-bottom:12px;
   margin-top:0%;
  text-align:center;
  border-radius: var(--std-radius);
  background:var(--muted);
}


.list {
  display: flex;
  flex-direction: column;
  gap: 0px;
    max-width:100%;
  min-width: 100%;
}

.item {
  font-size: 1.3em;
  padding:0px;
  margin-top:0.0em;
}

.item:nth-child(1){
    border-radius: var(--stds-radius);
}

.prop:nth-child(even),
.guess:nth-child(even) {
    background:var(--item-alt);
}

.prop:nth-last-child(1),
.guess:nth-last-child(1) {
      border-bottom-left-radius:  var(--std-radius);
   border-bottom-right-radius:  var(--std-radius);
}

.prop:nth-child(1),
.guess:nth-child(1) {
      border-top-left-radius:  var(--std-radius);
   border-top-right-radius:  var(--std-radius);
}

.guess{
    text-align:center;
    padding-right:0.0em;
    font-weight: 400;
  background:var(--item);
      animation: fade 1s ease;

}
.guess:hover{
  transform: scale(1);
}

.prop{
    text-align:center;
      padding-left:0.0em;
    font-weight: 400;
  background:var(--item);
    animation: fade 1s ease;
}
.prop:hover{
  transform: scale(1);
}

.semantic-dot{
  color:var(--text);
  opacity:var(--score);

}

.prop::before {
  content: "";
  width: 3px;
  
  background: var(--purple);
  position: absolute;
}

.guess[data-heat="0"] { background: #14532d; }
.guess[data-heat="3"] { background: #7f1d1d; }

.controls{
  text-align:center;
  align-content: center;
}
.chat-form {
  display: grid;
  gap: 8px;
  width: min(300px, 30vw);
  margin: 0 auto;
}
.chat-send {
  width: 100%;
  align-self: flex-end;
  padding: 0.3em 0.7em;
  font-size: 1rem;
  background: transparent;
  color: var(--muted);
  padding:0.3em;
  border:none;
  cursor: pointer;
  transition: all 0.15s ease;
  
}

.chat-input{
  outline:none;
  width: 100%;
  font-size:1em;
  margin-top:12px;
  border-radius:var(--std-radius);
  padding:0.3em;
  color:var(--text);
    background: var(--item);
  border:0px solid black;
}


/* hover léger */
.chat-send:hover:not(:disabled) {
  color: var(--text);
}

/* disabled */
.chat-send:disabled {
  opacity: 0.3;
  cursor: default;
}

.chat-input:disabled{
   background: var(--bg);
  color : var(--item);
}

.chat-input.sending {
  transform: scale(0.98);
  opacity: 0.8;
}

.btn:active {
  transform: scale(0.97);
}

.btn {
  padding: 1em;
  border: none;
  background: var(--panel);
  border-radius:  var(--std-radius);
  color: var(--blue);
  cursor: pointer;
  letter-spacing: -0.04em;
  font-weight: 700;
}





.progress {
  height: 2px;
background: var(--bg);
  border-radius: 999px;
  margin-top: 12px;  
  margin-bottom: 12px;  
}

.progress-inner {
  height: 100%;
  border-radius: 999px;
  transition: filter 0.3s ease, width 0.1s linear;
  background: var(--diff-color);
  box-shadow: 0 0 0px var(--diff-color);
}



.progress-inner[data-state="high"] { filter: brightness(1);}     /* safe */
.progress-inner[data-state="mid"] { filter: brightness(1.2) ;animation: pulse 3s infinite; }   /* mid */
.progress-inner[data-state="low"] { filter: brightness(1.4) ;animation: pulse 1s infinite; }   /* danger */

.result {
  border-radius: var(--std-radius);
  padding: 0px;
  animation: fade 0.3s ease ;
  margin-top:0%;
  margin-bottom:12px;
}



.result.win {
  border-color: var(--green);


}

.result.lost {
  border-color: var(--red);
}

.result-header {
  font-size: 1.3em;
  font-weight: 400;
  margin-bottom: 12px;
  margin-top: 0%;
  text-align:center;
  padding-right : 1%;
  padding-left : 1%;
    border-radius:  var(--std-radius);
}



.result-header.win{
  color: var(--green);
    background:var(--vdark-green);
  animation: buttonBounce 0.6s ease-in-out;
} 


.result-header.lost {
  color: var(--red);
    background: var(--vdark-red);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3%;

}

.label {
  color:var(--dim);
  font-weight: 100;
  line-height:1.2;
}


.value {
  font-weight: 400;
  line-height:1.2;
}

.diff{
  
    color:var(--diff-color);
background: var(--diff-vdark-color);
  border-radius: var(--std-radius);
}

.score {

  font-weight: bold;
}

.partner-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.replay {
  margin-top: 0em;
  display: flex;
  justify-content: center;
}

.replay-actions {
  display: flex;
  gap: 1em;
}

.finished{
  padding:0px;
  color:var(--dim)
}

/* base bouton */
.btn {
  padding: 0.8em 1.4em;
  border-radius: 0.3em;
  border: none;
  font-size: 1.05rem;
      text-decoration:none;
  cursor: pointer;
  transition: all 0.35s ease;
}

/* bouton principal */
.btn-primary {
  background: var(--accent, var(--vdark-blue));
  color: var(--blue);
}

.btn-orange {
  background: var(--accent, var(--vdark-orange));
  color: var(--orange);
}

.btn-yellow {
  background: var(--accent, var(--vdark-yellow));
  color: var(--yellow);
}

.btn-green {
  background: var(--accent, var(--vdark-green));
  color: var(--green);
}

.btn-purple {
  background: var(--accent, var(--vdark-purple));
  color: var(--purple);
}


.btn:hover {
  filter: brightness(1.2);
}

.btn-primary:active {
  filter: brightness(0.95);
}

/* bouton secondaire */
.btn-ghost {
  background: transparent;
  color: var(--dim, #9ca3af);
}

.btn-back{
  width:30%;
  margin:auto;
  padding-top:0.75em;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.typing {
  opacity: 0.6;
  font-style: italic;
  letter-spacing: 2px;
 
}

.forbidden_warning{
  border-radius:var(--std-radius);
  margin-top:0.3em;
  color:var(--red);
  background:var(--vdark-red); 
}

/* MM */
.matchmaking {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.mm-title {
  font-size: 1.1rem;
  color: var(--text);
}

.mm-stats {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.mm-loader {
  width: 2em;
  height: 2em;
  border: 0.3em solid var(--border-strong);
  border-top: 0.3em solid var(--red);
  border-radius:50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mm-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat .value {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.2;
}

.stat .label {
  font-size: 0.75rem;
  color: var(--dim);
}

/* INDEX */
.home{

    width:min(92vw, 512px);


}

/* ------------------------------------------------ */
/* HEADER */
/* ------------------------------------------------ */

.header{

    text-align:center;

    padding:
        0.5rem
        0.5rem
        0.5rem;
}

.title{
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subtitle{
    color:var(--muted);
    opacity:0.7;
    font-weight:100;
    font-size:0.75rem;
    line-height: 0.9;
    letter-spacing:0.2em;
    margin-top:-0.0em;
    margin-bottom:0.5rem;
}

/* ------------------------------------------------ */
/* PLAYER */
/* ------------------------------------------------ */

.player{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:0.7rem;

    flex-wrap:wrap;

    letter-spacing: -0.05em;

    opacity:0.82;

    font-size:1rem;
}

.player-name{

    font-weight:600;
}

.player-rank,
.player-elo{

    opacity:0.8;
}

.sep{

    font-size:0.7em;

    opacity:0.35;
}

/* ------------------------------------------------ */
/* PLAY BUTTON */
/* ------------------------------------------------ */

.btn-play{

    display:flex;

    justify-content:center;

    align-items:center;
    background:var(--vdark-red);
    color:var(--red);
    margin-top:1rem;

    padding:1.2rem;

    border-radius:var(--std-radius);

    text-decoration:none;

    font-size:2rem;

    font-weight:700;

    letter-spacing:-0.03em;
}

.btn-play:hover{
  animation: buttonBounce 0.6s ease-in-out;
}



/* ------------------------------------------------ */
/* NAV */
/* ------------------------------------------------ */

.nav{

    display:flex;

    justify-content:center;

    gap:0.6rem;

    margin-top:1.6rem;
    margin-bottom:1.6rem;

    flex-wrap:wrap;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Crée 2 colonnes d'égale largeur */
  gap: 12px; /* Espace entre les boutons */
  text-decoration: none;
  max-width: 450px; /* Optionnel : limite la largeur du bloc */

  margin: 0 auto; /* Optionnel : centre le bloc */
      margin-top:1.2rem;
    margin-bottom:1.2rem;
}

.nav-link{

    text-decoration:none;

    color:var(--text);

    opacity:0.72;

    font-size:1rem;

letter-spacing: -0.05em;

    transition:
        opacity 120ms ease,
        transform 120ms ease;
}

.nav-link:hover{

    opacity:1;

    transform:translateY(-1px);
}

/* ------------------------------------------------ */
/* STATS */
/* ------------------------------------------------ */

.stats{

    margin-top:0rem;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:1.2rem;

    padding:0.5rem;
}

.stat{

    display:flex;

    flex-direction:column;

    align-items:center;

    min-width:90px;
}



.divider{

    width:1px;

    height:24px;

    background:rgba(128,128,128,0.5);
}



/* RANKING */

#ranking{
      width: min(95vw, max(512px,30%));
   padding: 0px;
}

.rank-header,
.rank-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;

}

.rank-row > a {
  min-width: 0; 
  text-decoration: none;
  color: inherit;
}

.rank-row {
  margin-left:1%;
  margin-right:1%;
}

.rank-header {

    display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
    font-size: 1rem;
  text-align:left;
border-left:var(--std-border) solid transparent;
  margin-bottom:12px;
}

.rank-item {
  background: var(--item);
  padding-left: 1%;
  padding-right:1%;
  transition: background 0.2s;
  border-left:var(--std-border) solid transparent;
}


.rank-item:nth-child(even){
  background:var(--item-alt);
}

.rank-item:nth-last-child(1){
      border-bottom-left-radius:  var(--std-radius);
   border-bottom-right-radius:  var(--std-radius);
}

.rank-item:nth-child(1) {
      border-top-left-radius:  var(--std-radius);
   border-top-right-radius:  var(--std-radius);
}

.rank-item:hover {
 filter:brightness(1.2);
  background: var(--item-alt);
}

.rank-row {
  font-size: 0.9rem;
  text-align:left;
}

.rank {
  color: var(--dim);
}

.name {
  text-align: center;
  white-space: nowrap;
  overflow:hidden;
  text-decoration: none;
  color:var(--text);
  border:none;
      overflow: hidden;
    text-overflow: ellipsis;
}

.elo {
  text-align: right;
   color:var(--dim);
    font-variant-numeric: tabular-nums;
}

/* description */
.desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1;
  margin-top: 4px;
  display: none;
}

.rank-item:hover .desc {
  display: block;
}

/* états */
.rank-item.self {
  border-left-color: var(--purple);
}

.rank-item.online {
  border-left-color: var(--blue);
}

.rank-item.blacklisted {
  border-left-color: var(--red);
  opacity: 0.6;
}

/* partenariat */
.rank-item.good {
  border-left-color: var(--dark-green);
}

.rank-item.average {
  border-left-color: var(--dark-yellow);
}

.rank-item.bad {
  border-left-color: var(--dark-orange);
}

.rank-item.verybad {
  border-left-color: var(--dark-red);
}

/* pagination */
.pag-btn {
  padding: 0.1em 0.5em;
  border-radius: var(--std-radius);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.35s ease;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 0px;
  margin-top: 12px;
  margin-bottom:12px;
}
/* SIGNAL */
.signal-bar {
  display: flex;
  justify-content: center;
  margin-top:8px;
  margin-bottom:4px;
}
/*
.signal {
  font-size:1em;
  font-weight:bold;
  background: var(--item);
  border: 0px solid var(--border-subtle);
  border-radius: var(--std-radius);
  padding: 0.2em 1em;
  margin-left:1em;
  margin-right:1em;
  cursor: pointer;
  color: var(--dim);
  transition: all 0.15s ease;
}*/

.signal {
  width:20%;
  height: 8px;
  position:relative;
  border: none;
  cursor: pointer;
  margin-left: 5%;
  margin-right:5%;
  clip-path: rect(0% 100% 100% 0% round var(--std-radius));
transition-property: background;
  transition:
    transform 1s,
    filter 1s;
}

.signal::before{

    content:"";

    position:absolute;

    left:0;
    right:0;

    top:-14px;
    bottom:-14px;
}

.pos{
  text-align:left;
}
.signal.pos{
  background: var(--bg);
}
.signal.neu{
  background: var(--bg);
}
.signal.neg{
  background: var(--bg)
}
/* état actif */
.signal.active.pos { background: var(--dark-green);box-shadow: 0 0 4px var(--dark-green);}
.signal.active.neu { background: var(--dark-orange);box-shadow: 0 0 4px var(--dark-orange);}
.signal.active.neg { background: var(--dark-red);box-shadow: 0 0 4px var(--dark-red);}

/* hover */
/*@media (hover: hover) {

  .signal.pos:hover {
    background: var(--green);
  }
  .signal.neu:hover {
    background: var(--orange);
  }
  .signal.neg:hover {
    background: var(--red);
  }
}*/

.theme-toggle {
  position: fixed;
  top: 12px;
  left: 12px;

  width: 40px;
  height: 40px;

  border: 1px solid var(--border-strong);
  border-radius: 10px;

  background: var(--item);
  color: var(--text);

  cursor: pointer;

  display: grid;
  place-items: center;

  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
}

.ach{

  background-color:var(--bg);
  color: transparent;
  text-shadow: 2px 2px 3px rgba(255,255,255,0.3);

          background-clip: text;
}

/* COLLECTION */

/* Grille d'album */
    .album-grid {
 
      display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center; /* ou flex-start */
    }

    /* Vignette de mot */
    .word-card {
      background: var(--panel);
      border-radius: var(--std-radius);
      padding: 0px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
     font-size:0.8em;
      position: relative;
 
    }

    .word-card:hover{
      transform:scale(1.4);
      z-index: 10;
      text-shadow:  0px 0px 6px var(--bg);
    }

    .left-card{
           border-left: var(--std-border) solid transparent;
           border-left-color: var(--diff-color);
    }

    .right-card{
           border-right: var(--std-border) solid transparent;
           border-right-color: var(--diff-color);
    }

    /* États : Débloqué vs Non Débloqué */
    .word-card.unlocked {
      border-left-color: var(--diff-color);
    }

    .word-card.locked {
      opacity: 0.3;
      filter: grayscale(1);
    }

    .word-title {
      font-weight: 700;
      font-size: 1rem;
      margin-bottom:-0.1em;
      margin-top:-0.1em;
      text-transform: uppercase;
      letter-spacing: -0.06em;
    }