
  :root{
    --card-bg: rgba(255,255,255,0.95);
    --btn: #3a75c4;
    --accent: #6ec6ff;
    --text: #222;
  }
  *{box-sizing:border-box}
  body{
    margin:0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../img/bg.gif'); /* 🔸 remplace par le lien ou chemin de ton image */
    background-repeat: no-repeat;
    background-size: cover;     /* l'image remplit tout l'écran */
    background-attachment: fixed; /* 🔸 rend l'image statique */
    background-position: center; /* centrée */
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
  }
    body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(46, 44, 44, 0.7); /* change l’opacité selon le besoin */
    z-index: -1; /* reste derrière le contenu */
    }
  @keyframes bgMove{
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
  }
    .quiz-logos{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
  .wrap{
    width:100%;
    max-width:100%;
    border-radius:18px;
    padding:18px;
    margin-left:5%;
    margin-right:5%;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
    box-shadow: 0 12px 40px rgba(18,40,60,0.18);
    overflow:hidden;
  }

  header{
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:space-between;
  }
  h1{margin:6px 0;font-size:1.6rem;color:#004aad;}
  .small{font-size:0.9rem;color:#444}
/* Bouton cœur battant */
.heart-btn {
  background-color: #ff4081;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-size: 1.2em;
  cursor: pointer;
  animation: heartbeat 1.3s infinite;
  box-shadow: 0 4px 10px rgba(255, 64, 129, 0.4);
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

/* Popup */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  max-width: 700px;
  max-height: 80vh;     /* limite la hauteur visible */
  overflow-y: auto;      /* rend le contenu défilable */
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  scrollbar-width: thin; /* (optionnel) rend la scrollbar discrète */
}
.popup-content h3 {
  color: #ff4081;
  margin-bottom: 10px;
}
.popup-content button {
  background-color: #ff80ab;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 15px;
  cursor: pointer;
}
.hidden { display: none; }

  .grid{
    display:grid;
    grid-template-columns: 1fr 420px;
    gap:18px;
  }

  /* Left: game area */
  .card{
    background:var(--card-bg);
    border-radius:14px;
    padding:16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

/* Slider d'image */
.slides {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slideAnim 12s infinite; /* 3 images x 3s chacune */
}

.slides img:nth-child(1) { animation-delay: 0s; }
.slides img:nth-child(2) { animation-delay: 3s; }
.slides img:nth-child(3) { animation-delay: 6s; }
.slides img:nth-child(4) { animation-delay: 9s; }


@keyframes slideAnim {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}
  .center{display:flex;flex-direction:column;align-items:center;justify-content:center}
  label{display:block;margin:8px 0;font-weight:600}
  select,input,.textinput{
    width:100%;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid rgba(0,0,0,0.08);
    font-size:1rem;
  }
  button{
    background:var(--btn);
    color:white;
    border:none;
    padding:10px 14px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    box-shadow: 0 6px 18px rgba(255,111,145,0.18);
    transition:transform .12s ease;
  }
  button:active{transform:scale(.98)}
  .muted{background:#eee;color:#666;box-shadow:none}

  /* Question area */
  .quiz-box {
    background-color: #fff;
    text-align: center;
    border-radius: 20px;
    padding: 10px;
    margin: 2rem auto 2rem auto;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  .question-title{
      font-size:1.2rem;
      margin:8px 0;
      font-weight:800;
      color:#273c75;
      margin-bottom: 1.5rem;
  }
  .question-circle {
    background-color: #ffc800;
    color: #004aad;
    font-weight: 700;
    font-size: 3.5rem;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -80px auto 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }
  .question-box{padding:14px;border-radius:12px;background:linear-gradient(180deg, #fff,#f7fbff);width:100%}
  .answers{display:flex;flex-direction:column;gap:10px;margin-top:12px}
  .answer-btn{
    padding:12px 10px;border-radius:10px;border:none;font-weight:700;cursor:pointer;
    background-color : '#5aa9ff';
    color:white;text-align:left;
    box-shadow: 0 6px 14px rgba(30,120,200,0.12);
    transition:transform .08s ease, opacity .08s ease;
  }
  .answer-btn:hover{transform:translateY(-3px)}
  .answer-btn.lock{opacity:.6;pointer-events:none}

  .progress{
    margin-top:12px;display:flex;align-items:center;gap:10px;
  }
  .bar{
    height:10px;background:#eee;border-radius:20px;flex:1;overflow:hidden;
  }
  .bar > i{display:block;height:100%;background:linear-gradient(90deg,#ffd773,#ff8aa2);width:0%}

  /* Right: controls + scoreboard */
  .side{
    display:flex;flex-direction:column;gap:12px;
  }
  .scoreboard{padding:12px;border-radius:12px;background:linear-gradient(180deg,#fff,#fcffd9);min-height:120px}
  .team-row{display:flex;align-items:center;justify-content:space-between;padding:6px 0}
  .team-name{font-weight:800}
  .big-score{font-size:1.4rem;color:#2d3436;font-weight:900}

  /* Footer / results */
  .result{
    margin-top:14px;padding:12px;border-radius:12px;background:linear-gradient(180deg,#fff,#eafff0);
    display:flex;align-items:center;justify-content:space-between;gap:12px;
  }
  .emoji{font-size:2.6rem}
  .hidden{display:none !important}

  /* Kid friendly touches */
  .sparkle{
    position:absolute;right:16px;top:12px;width:120px;height:120px;pointer-events:none;
    background-image:radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6) 0 6px, transparent 7px),
                      radial-gradient(circle at 70% 70%, rgba(255,255,255,0.4) 0 6px, transparent 8px);
    opacity:.6;transform:rotate(8deg);
  }

  @media(max-width:920px){
    .grid{grid-template-columns:1fr; }
    .side{order:2}
  }
  .footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 10px 0;
  font-size: 0.9em;
  color: #444;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}
